POST
|
Hi @CMcDonald , Your code would look like this: var test1 = $feature.PROPBREAKDOWN;
var test2 = Replace(test1, "; ", ";");
var list = Split(test2, ";");
var result = Concatenate(list, TextFormatting.NewLine);
return result; The value in the text that follows Amenty Accommodation does not affect the expressión It is just part of the text. The initial text is separated by the semicolon. It does not matter much what comes before or after the semicolon. Let me know if it works or if you need any further explanation.
... View more
4 hours ago
|
0
|
0
|
2
|
POST
|
Hi @CMcDonald , This can be done with Arcade. Have a look at the example below: // var test1 = $feature["Name of your Field goes here"];
var test1 = "Amenity Accommodation - 14; Flat - 65; Four in a Block - 60; House - 66; Sheltered Accommodation - 38";
var test2 = Replace(test1, "; ", ";");
var list = Split(test2, ";");
var result = Concatenate(list, TextFormatting.NewLine);
return result; The first line is commented ("//"), but explains how you could connect to the field that contains the list. The second line is just to create a variable with the list that you used in your example. On the third line I first replace all the "; " (including the space) for just the ";" to avoid having redundant spaces and the start of each element. On line 4 I use Split to split the text into a list of 5 elements On line 5 the Concatenate function helps to create a text and we combine the elements with a new line. Ths will result in a multililine text:
... View more
yesterday
|
2
|
2
|
19
|
POST
|
Hi @NoahLeimgruber , It looks like you have None (null) values in your Q347 field. You can put an additional validation in the function: def SumAreaInRangeH(oidcurr, dct):
# function to determine catchment area
sumarea = -1
if oidcurr in dct:
# set reference values
h1 = dct[oidcurr][0]
h2 = dct[oidcurr][1]
sumarea = 0
for oid, lst in dct.items():
if oid != oidcurr and lst[0] > h1 and lst[1] < h2:
if lst[2] is not None:
sumarea += lst[2]
return sumarea
... View more
Monday
|
0
|
0
|
27
|
POST
|
Hi @NoahLeimgruber , As far as I can see you should only have to change the line... flds1 = ("OID@", "H1", "H2", "SHAPE@AREA") into: flds1 = ("OID@", "H1", "H2", "Q347")
... View more
Monday
|
0
|
3
|
35
|
POST
|
Hi @NathanMichalewicz , You probably have to aggregate the data (on Place, sum the Duration and average the Lat and Long coords) and visualize the resulting table (display XY events) using the coordinates in the table.
... View more
Monday
|
0
|
0
|
21
|
POST
|
Hi @Alexandra_Reid and @JohnBrodnicki , Please have a look at the post by @HusseinNasser2 explaining new functionality released in Arcade version 1.12 (available in ArcGIS Pro 2.7) https://community.esri.com/t5/attribute-rules-videos/use-the-getuser-arcade-function-to-return-the-current-user-name/m-p/1016599#M17
... View more
a week ago
|
0
|
1
|
35
|
POST
|
Hi @MiguelFernandez4 , I agree that only sampling a part of the data makes it hard to symbolize all possibilities. Arcade in the symbology profile will not scan the entire database either. If you are able to analyze the data and deduce the possible combinations, you could use https://ago-assistant.esri.com/ to edit the json of the web map and add the missing possibilities in the json. This is a tricky option. Make a copy of the web map before the edit.
... View more
a week ago
|
0
|
0
|
19
|
POST
|
Hi @LaurenMiller78 and @DavidMurray1 , If the data is truly related you can have a look at the FeatureSetByRelationshipName function that allows a more direct access to related data. https://developers.arcgis.com/arcade/function-reference/data_functions/#featuresetbyrelationshipname
... View more
a week ago
|
0
|
0
|
42
|
POST
|
Hi @GretaParis , For future references, it is important to check at what version a functionality was released. If you look at the NextSequenceValue: https://developers.arcgis.com/arcade/function-reference/data_functions/#nextsequencevalue you will see that it was released in version 1.4 of Arcade. In the version matrix: https://developers.arcgis.com/arcade/guide/version-matrix/ you can see that it became available in the next version of Enterprise (10.7 with Arcade version 1.5). It often happens that ArcGIS Pro is updated earlier and easier than ArcGIS Enterprise and that both components are no longer "in sync". This does not have to be a problem but it takes some more time to validate that things configured in Pro will work with once published in Enterprise.
... View more
a week ago
|
1
|
0
|
56
|
POST
|
Hi @BillHeigh , Can you share what data you have (data) and what you are trying? The example I posted should be changed in order to include the field with the phone number. It just represents what the resulting HTML should look like. Not sure if it will show up as a link in the Map Viewer Beta.
... View more
a week ago
|
0
|
1
|
60
|
Online Status |
Online
|
Date Last Visited |
7 seconds ago
|