I have a requirement to show the labels in ArcGIS Collector app and Portal Web Maps.
I have a published a Feature Service by Configuring the below label expression which is working fine in ArcGIS Pro Desktop. but after publishing to ArcGIS Server, The web map is showing the Domain Codes instead of Domain Description in Portal web maps and in ArcGIS Collector App.
code I'm using for label: DomainName($feature, 'Diameter') + "-" + DomainName($feature, 'Material').
Any Quick help is much appreciated,
Thank You in Advance.
Solved! Go to Solution.
That was the clue I needed. It took some time to figure out, but I changed my code from DomainName($feature, 'diameter') to DomainName($feature, 'diameter', $feature.diameter, $feature.assetgroup) and that worked.