|
POST
|
Hi @HussainMalik1 , You can use a direct message here inside GeoNet or mail me using "xbakker [at] esri.co" (and yes it is "co" for Colombia).
... View more
01-29-2021
11:25 AM
|
0
|
1
|
4447
|
|
POST
|
Hi @KhemAryal , The symbology is probably limited to reading 1000 features for performance reasons. Do you need the correct statistics for the entire layer?
... View more
01-29-2021
09:19 AM
|
0
|
3
|
3856
|
|
POST
|
Hi @HussainMalik1 , Would it be possible to share a sample of your data? This would help to write a snippet of code to show how you can do this.
... View more
01-29-2021
05:39 AM
|
1
|
3
|
4456
|
|
POST
|
Hi @AdrianWelsh , The TOC will probably represent the symbology defined in the code, but as far as I can see it will only set a single symbol to all the features. You will need to create a unique value renderer and define the symbols reading the rgb values from the attributes.
... View more
01-28-2021
02:00 PM
|
0
|
0
|
5644
|
|
POST
|
Hi @KhemAryal , If I look at your expression and the explanation it seems that you inverted debris and invert in the conditional statement. var A = 2.50; // rim to Invert (A)
var B = 1.60; // rim to Debris (B)
var C = 3.50; // rim to Bottom (C)
var debris = C-A; // rim to Bottom (C) - rim to Debris (A)
var invert = C-B; // rim to Bottom (C) - rim to Invert (B)
Console("debris: " + debris);
Console("invert: " + invert);
// If (C-B)>(C-A)/3 'Need Cleaning'
// Else 'No Cleaning Needed'
Console("debris/3: " + debris/3);
if (invert>debris/3) {
return 'Need Cleaning';
} else {
return 'No Cleaning Needed';
} This returns "Need Cleaning" and it writes the following to the console: debris: 1
invert: 1.9
debris/3: 0.3333333333333333
... View more
01-28-2021
01:54 PM
|
1
|
7
|
3876
|
|
POST
|
Hi @DeniseBeckham , The only reason I can come up with to have this type of selection behavior would be multi point features. If possible could you export a selection of the SQL database point to a local FGDB and try if it provides the same selection result?
... View more
01-28-2021
01:28 PM
|
1
|
3
|
4619
|
|
POST
|
Hi @AdrianWelsh , The behavior is as I expected. Maybe @KoryKramer knows when we may expect that the symbology is correctly represented in the TOC... Hopefully, there will be support soon in the Map Viewer Beta to support this type of symbology.
... View more
01-28-2021
10:50 AM
|
1
|
3
|
5658
|
|
POST
|
Hi @AdrianWelsh , In the post I shared the case was a little more complex. Ignore the white and green points and focus on the orange points. The color is based on an attribute value and scaled over a color range. In your case, you will just use the rgb attribute and construct the correct string to return. You can use the RGB values you have stored as attributes and assign them to the symbology. I have noticed that the Arcade based symbology does not get reflected correctly in the TOC (although I haven't checked this in 2.7) and I don't think AGOL will take that symbology once published. There are some nice enhancements in the Map Viewer beta for symbology based on SVG (https://www.esri.com/arcgis-blog/products/arcgis-online/mapping/do-more-with-symbols-in-map-viewer-beta/) but this is based on point geometry as far as I can see.
... View more
01-28-2021
08:06 AM
|
0
|
5
|
5661
|
|
POST
|
Hi @AdrianWelsh , I wrote something explaining the procedure a while ago because it is possible to do this for a couple of versions now. https://community.esri.com/t5/arcgis-pro-questions/color-green-for-type-a-scale-of-yellow-red-for-type-b-white-for/m-p/342527 Let me know if this helps.
... View more
01-28-2021
06:22 AM
|
1
|
8
|
9604
|
|
POST
|
Hi @AmyRoust , I agree that it would be great to be able to return HTML from an Arcade expression in AGOL. You don't need a button to enable a hyperlink (this can be a normal anchor "<a href...>"). If you have any problems getting the result you want, just let me know and I will try and help.
... View more
01-25-2021
03:02 PM
|
0
|
1
|
5137
|
|
POST
|
Hi @AmyRoust , I notice that you are trying to return HTML from the Arcade expression. This does not work in ArcGIS Online (it does in Pro). When you return HTML from an Arcade expression it will interpret it as plain text and not as HTML. What you need to do is use a different approach. Have a look at this post: https://community.esri.com/t5/arcgis-online-documents/conditional-field-display-with-arcade-in-pop-ups-revisited/ta-p/920869 Here you will see that you can conditionally display part of your content. So, your HTML should include both cases (link available and link not available), but depending on the situation you will hide or show each part. This will multiple expressions, but it is not very complex to achieve this.
... View more
01-25-2021
11:13 AM
|
0
|
3
|
5144
|
|
POST
|
Hi @utenalarosa , There is a great example here: https://community.esri.com/t5/arcgis-pro-blog/using-arcgis-pro-and-arcade-expressions-to-create-shortlist/ba-p/885102 by @MarkBockenhauer
... View more
01-22-2021
01:27 PM
|
1
|
0
|
1234
|
|
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
01-22-2021
05:14 AM
|
1
|
2
|
3790
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 01-09-2020 09:26 AM | |
| 6 | 12-20-2019 08:41 AM | |
| 1 | 01-21-2020 07:21 AM | |
| 2 | 01-30-2020 12:46 PM | |
| 1 | 05-30-2019 08:24 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-26-2025
02:43 PM
|