|
POST
|
Hi @JaredTaylor , Unfortunately, currently this is still not possible to do. I don't know when this issue will be resolved, but I don't see any mention of in the new AGOL to be released on Dec 8. However, I haven't checked this in the Early Adoptors version...
... View more
11-26-2020
05:26 AM
|
0
|
1
|
5182
|
|
POST
|
Hi @NoahLeimgruber , I could write some code to do this, but it would be easier to have some (dummy) data with the same schema to test with. Any chance that you could share some (dummy) data for this?
... View more
11-25-2020
03:24 PM
|
0
|
13
|
5110
|
|
POST
|
Hi @NoahLeimgruber , I probably would advise you to use Python for this one and use a dictionary to store the values and easy access, although I wouldn't do this using a Field Calculation (preferably, I would use a standalone script). With Arcade you would probably end up using multiple requests on the data which would result in longer processing times. However, is this "static" data or is this data dynamic and requires an update of this logic when data is edited? In that case I would probably go for an attribute rule using Arcade. Just to be clear... when you calculate the catchment area for ID 1 you don't include the area of ID 1 in the result, right?
... View more
11-25-2020
10:44 AM
|
0
|
15
|
5119
|
|
POST
|
Hi @CPoynter , You are right, the comment I made is not a solution for you the way that I mentioned it. However, I notice that in the advanced tap of the hosted feature layer item properties when you have editor tracking enabled you can switch on the option that an editor can only see the features he or she created. It is worth a shot to see if that would solve this. Maybe you should create a single hosted feature layer view (with the configuration I just mentioned) and use that in the map of the dashboard and see if that works.
... View more
11-24-2020
04:08 PM
|
0
|
0
|
2159
|
|
POST
|
Hi @Anonymous User , Just a follow-up question... how do you define the code language (Python, JavaScript, etc...)? It may also be good to update the community help document since it is still referring to the "old" way: https://community.esri.com/t5/community-help-documents/how-to-insert-code-in-your-post/ta-p/914552
... View more
11-24-2020
01:27 PM
|
1
|
2
|
3469
|
|
POST
|
Hi @Anonymous User , Thanks for clarifying! You mention that you want to retrieve multiple hyperlinks since there can be multiple resources stacked on one another. A couple of things to keep in mind: To return multiple results from a single expression, you can use the same logic as for the list of references (in each loop add a value to the result) However, if a single text contains multiple URLs, it will not appear as valid URL in the pop-up If each feature provides a single URL in the pop-up the fact that they are stacked does not yield any problems. On the other hand, you mentioned earlier that you obtain the same URL for different features. I don't see a reason for this in the Arcade expression and I would first look at the data and try some different URL's manually in the browser to see what happens and that there is no redirect causing this behavior.
... View more
11-24-2020
01:20 PM
|
0
|
0
|
2146
|
|
POST
|
Hi @Anonymous User , A couple of comments/questions on what you are trying to achieve: I assume that the first expression creates the text (comma separated list of "References") and the second the hyperlink. Is that correct? You should not use a return statement in a loop in case you want to return only the first item. Return inside a loop will return with the first element. You can use the "First" function to get the first feature from the intersection results and simply read out the attribute you need. The hyperlink that is returned will be something like "http://pw.lacounty.gov/sur/nas/landrecords/parcel/PM345/123456789.pdf" if the reference value is "123456789". Is that the correct URL you are looking for?
... View more
11-24-2020
12:41 PM
|
0
|
2
|
2149
|
|
POST
|
Hi @CPoynter , This is not something that you can do with Arcade. It is something that is possible by using Hosted Feature Layer Views (https://doc.arcgis.com/en/arcgis-online/manage-data/create-hosted-views.htm) but would require some work and the amount of work would increment with the number of users that should have their own dashboard.
... View more
11-24-2020
12:30 PM
|
0
|
0
|
2165
|
|
POST
|
Hi @DianaWilson1 , Related to the first part of your response, I guess this should also be possible to achieve using the condo complex. Let me know if you want to explore that option. To learn Arcade I think the book should be a very good resource, although I haven't seen the content in detail. Arcade in for instance a web map is something that is not very advanced. However, using arcade in attribute rules is a topic that can be advanced depending on what you want to achieve. There is a community in GeoNet focussed on attribute rules: https://community.esri.com/t5/attribute-rules/ct-p/attribute-rules Also, the examples in the help documentation are very helpful: https://pro.arcgis.com/en/pro-app/help/data/geodatabases/overview/attribute-rule-script-expression.htm I would also recommend the various blogs published by Esri: https://www.esri.com/arcgis-blog/?s=#arcade There are also learn lessons for Arcade: https://learn.arcgis.com/en/gallery/#?q=arcade And last but not least all the blogs and documents published here at GeoNet that can provide insight in how to do something: https://community.esri.com/t5/forums/searchpage/tab/message?filter=includeBlogs,includeTkbs&q=arcade&include_tkbs=true&collapse_discussion=true&include_blogs=true
... View more
11-24-2020
09:09 AM
|
1
|
0
|
7047
|
|
POST
|
Hi @AlfonsoDodero , A couple of years ago I published a document on GeoNet that shows how to create a hyperlink that opens a new tab with Street View at the location of the feature (Spanish): https://community.esri.com/t5/comunidad-esri-colombia-ecuador/crear-un-enlace-a-streetview-en-la-ventana-emergente-con-arcade/ta-p/904929 You mention that the coordinates are stored in a field with a decimal value (I assume that the field is numeric and not text). The comma as a decimal is a way of showing the numeric value but internally it will be stored as a point. When you access the value with Arcade I assume that the value will be retrieved with a decimal point or to be sure you can use a Replace to replace any decimal comma by a point. Some examples: // Streetview var lat = Replace(Text($feature["Latitude Field Name"], "#.#######"), ",", "."); var lon = Replace(Text($feature["Longitude Field Name"], "#.#######"), ",", "."); var url = "http://maps.google.com/?cbll=" + lat + "," + lon + "&cbp=12,90,0,0,5&layer=c"; return url; // Google maps search var lat = Replace(Text($feature["Latitude Field Name"], "#.#######"), ",", "."); var lon = Replace(Text($feature["Longitude Field Name"], "#.#######"), ",", "."); var url = "https://www.google.com/maps/search/?api=1&query=" + lat + "," + lon; return url; // Google maps @ location (zoom level 19) var lat = Replace(Text($feature["Latitude Field Name"], "#.#######"), ",", "."); var lon = Replace(Text($feature["Longitude Field Name"], "#.#######"), ",", "."); var url = "https://www.google.com/maps/@" + lat + "," + lon + ",19z"; return url;
... View more
11-24-2020
08:51 AM
|
2
|
0
|
7870
|
|
POST
|
Hi @DianaWilson1 , When you do an intersect, you that with a featureset and a feature. Once you specify "$feature.NBHD" or "$feature.PARID" you don't have a feature (geometry) anymore but only the value contained in either the field NBHD or PARID. So, just try this: // access the layer that contains the permits
var fs = FeatureSetByName($map, 'PAPermits_Y0');
// intersect with the neighborhood feature and count the number of permits
var permits = Count(Intersects(fs, $feature));
// return the number of permits
return permits;
... View more
11-23-2020
02:56 PM
|
1
|
2
|
7062
|
|
POST
|
Hi @DianaWilson1 , In the pop-up you can create an Arcade expression on the neighborhood layer and find all the permits that spatially intersect the neighborhood and do a count on that and return the number of permits. It can be something as simple as this: // access the layer that contains the permits
var fs = FeatureSetByName($map, 'Name of the permits layer in the TOC');
// intersect with the neighborhood feature and count the number of permits
var permits = Count(Intersects(fs, $feature));
// return the number of permits
return permits; However, the solution depends on how your permits are stored.
... View more
11-23-2020
12:43 PM
|
0
|
4
|
7071
|
|
POST
|
Hi @DianaWilson1 , If your goal is to label features (sorry I had not noticed that when I replied previously), you will need to create a field and store the result of an análisis in that field (you could use Arcade with a field calculation). The label profile is very limited and does not allow you to access other features and do these types of aggregations. You can include it in the pop-up using Arcade without creating the field. So if you can indicate if you really need labels and are able to add another field, or are open to showing the information dynamically in the pop-up then we can have a look at t he options.
... View more
11-23-2020
11:53 AM
|
0
|
6
|
7076
|
|
POST
|
Hi @AlfonsoDodero , As far as I know, you can use Arcade to extract the coordinates of a geometry or the values if stored in numeric decimal field and the decimal will always be a point as required in the URL. There is no need to create a new field, this can be done on the fly and when you return a valid URL the pop-up will automatically show it as a URL. Do you extract the coordinates from the geometry or do you have lat/lon fields with the decimal values in them?
... View more
11-23-2020
08:17 AM
|
0
|
2
|
7886
|
|
POST
|
Hi @DianaWilson1 , The reason that you obtain the value 1 is this: $feature.PARID is a single value and when you "count" a single value you get 1 and when you do a sum of 1 you also get 1. What you want to do to either read out the neighborhood id or obtain it using Intersects and filter the data using the id to get all the permits in the neighborhood. Is the permits information spatial or just a table. If it is spatial and represented using the parcels you can use a spatial operation to get all the permits if you both have the permit locations and the neighborhood polygons. If not, you would probably have to use some attribute to know how to filter the data and get the amount of permits in the area. Can you explain a little more what your situation is?
... View more
11-23-2020
08:02 AM
|
1
|
8
|
7096
|
| 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 |
2 weeks ago
|