Select to view content in your preferred language

How to use FCSubtypes in Maptips in Pro?

787
4
01-06-2020 12:13 PM
ThomasColson
MVP Frequent Contributor

In Pro 2.4, when setting a (Long Integer) Subype as the Display Field -> Map Tip, on mouse-over, the Map Tip is displayed as the code, not the description. In Arc Map this works correctly, why not in Pro? 

Tags (1)
0 Kudos
4 Replies
KoryKramer
Esri Community Moderator

I don't have any subtyped data at hand, but I did a quick test with domains.  With no manipulation, you're right that the map tip displays the coded value.

I used the DomainName function to have the map tip display the description Data Functions | ArcGIS for Developers 

Maybe try the subtype option of the Arcade function:

0 Kudos
ThomasColson
MVP Frequent Contributor

It doesn't appear, from that help page, that the same capability exists for subtype codes and values. I tried DomainCode($feature, 'FCSUBTYPE') and got invalid expression.

0 Kudos
KoryKramer
Esri Community Moderator

There is this: Subtype functions in Arcade 

I realize this would be a workaround, but would you be able to create a domain to apply to the FCSUBTYPE field using the same codes and descriptions used for the subtype?  Then, by using the arcade DomainName function, the map tip would return the description (of the domain, not the subtype, but it would be the same description as the subtype)...

ThomasColson
MVP Frequent Contributor

Unfortunately not in this case. We have a few feature classes that depend on subtypes, and a fewer that use the subtype as the primary display/symbology attribute. Flipping those to domains removes the ability to use subtypes to manage different editing workflows, and duplicating the subtype as a domain isn't in the cards. I'll probably open a case on this.