I have created a ProCustomItem to support a new data format by applying a plugin data source.
Now, if the file extension is in lower case, the icon is visible for the file, but if the file is in upper case, the icon is not visible for the file with the same extension.
I've included both working and non-working cases for the same file extension having lower and upper cases resp.
Hi,
Just a few questions to clarify the issue -
1. Does your custom item have a file extension of gsi?
2. On disk, if the file is .GSI, then it doesn't show up in Pro with the corresponding file image. If on disk, the file is .gsi, then it shows up in Pro with the corresponding image. Is that correct?
3. In config.daml file of your add-in, can you please send me the fileExtension attribute value?
Thanks!
Uma
1. Yes extension is gsi
2. Yes
3. <categories>
<updateCategory refID="esri_customItems">
<insertComponent id="GsiProCustomItem" className="GsiProCustomItem">
<content displayName="GsiProCustomItem" fileExtension="gsi" isContainer="false" keywords="GsiProCustomItem" contextMenuID="GsiProCustomItem_ContextMenu">
<filterFlags>
<type id="File" />
</filterFlags>
</content>
</insertComponent>
</updateCategory>
</categories>
@UmaHarano wrote:Hi,
Just a few questions to clarify the issue -
1. Does your custom item have a file extension of gsi?
2. On disk, if the file is .GSI, then it doesn't show up in Pro with the corresponding file image. If on disk, the file is .gsi, then it shows up in Pro with the corresponding image. Is that correct?
3. In config.daml file of your add-in, can you please send me the fileExtension attribute value?
Thanks!
Uma
@UmaHarano wrote:Hi,
Just a few questions to clarify the issue -
1. Does your custom item have a file extension of gsi?
2. On disk, if the file is .GSI, then it doesn't show up in Pro with the corresponding file image. If on disk, the file is .gsi, then it shows up in Pro with the corresponding image. Is that correct?
3. In config.daml file of your add-in, can you please send me the fileExtension attribute value?
Thanks!
Uma
According to the ProConcept document for Pro SDK Custom Items this appears to be 'by design'.
ProConcepts Custom Items · Esri/arcgis-pro-sdk Wiki (github.com)
I am not sure of the reasons behind the reasons behind this limitation.
Any workaround for this?
Hi
I am able to reproduce this issue too. It sounds like a bug - I will report this to the dev team. Thanks for reporting this.
In the meantime, can you please try this by matching the extension name (case) with what you have in the config.daml fileExtension attribute value?
Thanks!
Uma
Ya so whatever case (for me mostly lowercase) and same in config.daml that is working fine. Its just now upper case scenario not working.
@UmaHarano One more that I think is related to this if adding your own context menus on the custom item that is also not working on the file with upper case extension