I would like to change the display text in a table. Currently, my values have underscores. I would like to remove those underscores so it is cleaner on the table. I am new to arcade but I believe I need to assign a variable and change the text values there and then call that variable in the displayText line?
@JenniferAcunto
@IssyAmis
@AdrianWelsh
Yes. You are on the right track. You will want to use the Replace function to search for _ and replace it with a space.
var prettytext = Replace($datapoint.core_capability, '_', ' ')
In the below example, my data has commas instead of an underscore, but the basic principle is the same.
I have used the Replace function in Arcade to replace my underscores for spaces (at least in a popup window). I think it should work for a table too. Here is an example:
https://support.esri.com/en-us/knowledge-base/how-to-replace-values-of-a-field-using-an-arcade-expres-000022951
And this is the developer site for the function itself: https://developers.arcgis.com/arcade/function-reference/text_functions/#replace
@JenniferAcunto thank you!!!!
@AdrianWelsh thanks for the tip!!
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.