Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
amitkar1980
Frequent Visitor

Custom Data Connector - Icons

Hi All,

 

I have created a Custom Data connector which works fine for my current needs, but I am unable to update the icon for the connector. It always shows the default icon rather than any of the icons  (added in the project) that I put in the ICONS list in the .pq file.

 

I have checked tha the publish function has the sourceimage property set like this:

 

PBI_Connector.Publish = [
Beta = true,
Category = "Other",
ButtonText = { Extension.LoadString("ButtonTitle"), Extension.LoadString("ButtonHelp")},
SourceImage = PBI_Connector.Icons,
SourceTypeImage = PBI_Connector.Icons
];

PBI_Connector.Icons = [
Icon32 = { Extension.Contents("PBI_Connector24.png")}
];

 

Is there a setting , I am missing? It does not pickup the icon "PBI_Connector24.png"

 

Thanks in Advance

 

Cheers,

AK

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

I stumbled onto the same problem myself this morning when I was rebuilding a connector I was having troubles with.

 

The solution I found was ensuring the properties of each icon was set to a 'build action' of 'compile' instead of 'content'

 

Hope this works for you.

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

I could be wrong on this, but is it as the format you have should be in the Icon16 batch?

 

My icons object tends to look like this, which works for me.

 

My .....20.png slots into the Icon16 set and not the Icon32 set that you hve.

FacebookForBusiness.Icons = [
    Icon16 = { Extension.Contents("FacebookForBusiness16.png"), Extension.Contents("FacebookForBusiness20.png"), Extension.Contents("FacebookForBusiness24.png"), Extension.Contents("FacebookForBusiness32.png") },
    Icon32 = { Extension.Contents("FacebookForBusiness32.png"), Extension.Contents("FacebookForBusiness40.png"), Extension.Contents("FacebookForBusiness48.png"), Extension.Contents("FacebookForBusiness64.png") }
];

I updated the list to this , but still not joy

 


PBI_Connector.Icons = [
Icon32 = { Extension.Contents("PBI_Connector40.png"), Extension.Contents("PBI_Connector64.png"), Extension.Contents("PBI_Connector80.png") },
Icon16 = { Extension.Contents("PBI_Connector16.png"), Extension.Contents("PBI_Connector20.png"), Extension.Contents("PBI_Connector24.png")}
];

Anonymous
Not applicable

I stumbled onto the same problem myself this morning when I was rebuilding a connector I was having troubles with.

 

The solution I found was ensuring the properties of each icon was set to a 'build action' of 'compile' instead of 'content'

 

Hope this works for you.

Thanks @Anonymous . It worked, but I am still not sure on what basis the icons in the list are picked up and what type/size of custom icons I have to use if I choose not to use the default ones

Anonymous
Not applicable

Brilliant - Glad it worked for you.

 

I too are completely confused on which icon size is used where, so I just populate against the defaults.

 

I guess you could test it by putting completely different icons into each size and test to see where they will show up if you can be bothered finding out the answer.

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors