Restrict fields in a Map tip based on whether they are null
I use the following (thanks to help from the Community!) in my report to concatenate fields and restrict the fields from showing if they are null. This works wonderful for the mailing address given that usually the 3rd field is null.
(MAILING1 == System.DBNull.Value ? " " : MAILING1 + "\n") + (MAILING2 == System.DBNull.Value ? " " : MAILING2 + "\n") + (MAILING3 == System.DBNull.Value ? " " : MAILING3+"\n") + (CITY_PROV == System.DBNull.Value ? " " : CITY_PROV+" ") + (POSTCODE == System.DBNull.Value ? " " : POSTCODE)
Is it possible to do something similar in the Map Tip? I want to do something similar with other fields and add comma separators but I don't want the commas to show if the other fields, after the first one, are null (which they often are).
0
-
Hi Kristine,
Unfortunatley you cannot do the same thing with the feature description. This is a feature improvement request and it is being tracked as GE-2380. I have added you as a stakeholder to the case.
Thanks,
Wayne Richard
Latitude Geographics Group Ltd.
Head Office: 300 – 1117 Wharf Street Victoria, BC Canada V8W 1T7
Tel: (250) 381-8130 | Fax: (250) 381-8132 | wrichard@latitudegeo.com
Developers of Geocortex web-based mapping software | www.geocortex.com
An Esri Platinum Business Partner0 -
Thanks for letting me know! 0 -
I'm trying to do the same thing. I'd like be notified when this functionality is working in the HMTL5 viewer.
Cheers!0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
3 Kommentare