|
POST
|
Hi le-ax , At this moment there is no support for using FeatureSetBy* and accessing other data for use in charts in ArcGIS Dashboards or ArcGIS Dashboards Beta. The beta version has support in some of the elements but not to do what you are aiming for. The pop-up will show however and list elements will be able to access the attribute of the data point, but there is no access to data from other features or featuresets. You can however create an additional field, and use ArcGIS Pro and a scheduled GP task to update the content and have that reflected in a Dashboard. Not sure if that is an option for you in this case.
... View more
10-28-2020
07:18 AM
|
0
|
0
|
1705
|
|
POST
|
Hi Paul Sweeney , This type of error is bound to happen if you don't include validations to see if you have a result to work with. It probably refers to the count executed on line 6 or 7. Make sure that you have access to the two layers you retrieve using FeatureSetByPortalItem on lines 1 and 2 and that you actually have valid poles and chambers. In the pop-up it will execute only 1 example to show the result, but maybe somewhere in your data you may have an invalid feature that causes the error.
... View more
10-28-2020
07:13 AM
|
1
|
4
|
4958
|
|
POST
|
Hi Andrew Quee , To add to what Dan Patterson is suggesting, in GeoNet I always use JavaScript as syntax highlighting. In Mediawiki in the past (a long time ago) when I was coding with ArcObjects we creating our own highlighting language including all the objects from ArcObjects. I don't know Pygments but maybe it has a an option to define a customized language and use JavaScript as basis and include the Arcade functions.
... View more
10-28-2020
06:56 AM
|
2
|
1
|
3568
|
|
POST
|
Hi Travis Anderson , Great to see that the pop-up has the information you ware looking for and that you were able to resolve it. I do wonder a bit about the performance of using multiple Arcade expression to may result in multiple requests to the server for the same information. It is possible to do this with a single expression. However, the resulting pop-up would look different since all information will be returned in a single text.
... View more
10-27-2020
05:08 PM
|
0
|
0
|
1805
|
|
POST
|
Hi Christal Higdon , Unfortunately, I have no access to any information regarding a possible ETA. I will try to tag Kelly Gerrow, maybe she has some information she can share and I am also tagging the ArcGIS Dashboards Beta group.
... View more
10-27-2020
05:03 PM
|
1
|
0
|
2028
|
|
POST
|
Hi Travis Anderson , I am glad that you detected what was going wrong. I think I made a remark earlier about if the information was indeed numeric. When working with GIS and with databases, it is not good to mix different data types (text and numeric data), since things will break in the process. The screenshot you included to show the RollOver if from Excel and Excel is not a database and this often happens. About the other question, if the data you shared contains such a specific example, can you indicate how to get to it? Having access to the data and seeing the actual situation would help me a lot to come up with a solution.
... View more
10-26-2020
11:55 AM
|
0
|
2
|
1805
|
|
BLOG
|
Hi santamaa , Can you provide a bit more detail about what you want to achieve? Do you want to apply this symbology to other layers? Are they of the same geometry type?
... View more
10-26-2020
11:46 AM
|
0
|
0
|
11134
|
|
POST
|
Hi Shahriar Rahman , Once you share some more insight (screenshot or video) on what you have are what you need, I can help you better and perhaps share some examples.
... View more
10-26-2020
11:42 AM
|
0
|
0
|
5667
|
|
POST
|
Hi Travis Anderson , It seems that for some reason the consumption field in the services featureclass was renamed to "consumptio" (without the "n"). If you change that twice in the code (lines 2 and 17) it should work: // access the meters featureset, limiting the fields to Consumption
var meters = FeatureSetByName($map, "Services", ["Consumptio"], False);
// intersect the meters or services with the DMA
var fs = Intersects(meters, $feature);
// count the meters
var CountMeters = Count(fs);
// Calculate consumption
var consumption = 0;
var result = "";
// check to see if there are meters in the zone
if (CountMeters > 0) {
// calculate the sum of the consumption
consumption = Sum(fs , "Consumptio");
result = consumption + " gallon (" + CountMeters + " meters in zone)";
} else {
result = "0 gallons (no meters in zone)";
}
// return the result
return result; Result:
... View more
10-23-2020
12:10 PM
|
0
|
4
|
12253
|
|
POST
|
Hi Shahriar Rahman , So, location can be the way of retrieving the information that you are after. Intersects could be an option, but not is you are comparing for instance points and lines. In that case there are other things we can do like first buffering the features with a tolerance distance and then use Intersects or use the distance to establish the relation. In this case a screenshot of some specific cases you want to solve would help here. What if a features crosses multiples street locations or none, what should happen in these situations. Do you need to find out if the feature (and is this a point a line or a polygon) is nearest or more similar to the street locations? I do think it is possible with what you have mentioned, but some more information like a screenshot would help understand what is exactly needed.
... View more
10-23-2020
10:30 AM
|
1
|
2
|
5667
|
|
POST
|
Hi Shahriar Rahman , If the process is that you have another source featureclass and you need to append it to two output featureclasses, you can simply use modelbuilder and append the single source featureclass to the two output featureclasses and use it in a single tool. If you update featureclass one by manual editing and want the changes to be reflected in the Roads_All, this would require the new features to be identified and add the selection to the Roads_All featureclass. In case you also want to account for updates of deletes of existing features and have those changes reflected in the Roads_All featureclass, it will become more complicated.
... View more
10-23-2020
10:24 AM
|
1
|
2
|
1602
|
|
POST
|
Hi Travis Anderson , Is there some way that you share a portion of the data with me? Perhaps send it to "xbakker [at] esri [dot] co" I just did something similar on some local data and it all seems to work. This might be data related. I can assume that the Consumption field is numeric, right? As far as I can see it does not matter if you use uppercase or lowercase for the field name.
... View more
10-23-2020
10:18 AM
|
0
|
5
|
12253
|
|
POST
|
Hi Shawn Lanning , In ArcGIS Pro you can do this using HTML. Let's have a look what happens under the hood. In the configuration of the pop-up you will need to use the Text option: When you configure the text options, you can switch on the HTML mode and you can see that the last line refers to the Arcade expression: In the Arcade expression you loop through your species and add html tags around the field name to make them bold and use line breaks to create new lines. Something like this:
... View more
10-23-2020
10:10 AM
|
0
|
0
|
6390
|
|
POST
|
Hi Shahriar Rahman , If you want to filter the Street_Locations based on some attribute of the current feature, it will need some information to have in common otherwise it is impossible to filter the Street Locations. If there is no common identifier shared among the two layers, maybe you need to use a spatial relationship. Does that exist between the two layers? Maybe you can expand a little about what each layer represents and how the relation between the two should be established and what you are trying to achieve. Based on your initial code in the question the common identifier "Street_ID" was implied, but I understand now that that is not the case.
... View more
10-23-2020
07:43 AM
|
2
|
4
|
5667
|
|
POST
|
Hi Travis Anderson , You are absolutely right about your observation that the sum is not taking the intersected features but all the features (meters). My bad. Sorry. The code should have been like this (creating a featureset "fs" with the intersected features and use that featureset on line 17 to sum the consumption): // access the meters featureset, limiting the fields to Consumption
var meters = FeatureSetByName($map, "Services", ["Consumption"], False);
// intersect the meters or services with the DMA
var fs = Intersects(meters, $feature);
// count the meters
var CountMeters = Count(fs);
// Calculate consumption
var consumption = 0;
var result = "";
// check to see if there are meters in the zone
if (CountMeters > 0) {
// calculate the sum of the consumption
consumption = Sum(fs , "Consumption");
result = consumption + " gallon (" + CountMeters + " meters in zone)";
} else {
result = "0 gallons (no meters in zone)";
}
// return the result
return result;
What I don't understand is why in the code you shared, it results in an execution error. Is there any additional information available? The reason why the other snippet is resulting in an error is the missing "var" at the beginning of line 2: var meters = FeatureSetByName($map, "Services", ["Consumption"], False);
var consumption = Sum(meters , "Consumption");
Return consumption; Please always include the actual error message, since this contains important information in order to understand the error. It may also be good to validate if there are any invalid values in the Consumption field that are causing the expression to fail.
... View more
10-23-2020
07:01 AM
|
0
|
0
|
12253
|
| 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 |
Friday
|