POST
|
Hello! I have two point feature layers, one is for Mine Sites and the second is for Mine Features. What I want to do is write an arcade expression to be used in the pop-up which displays the count of Mine Features for each Mine Site. They do not have a relate to connect them but I assumed it would be possible to pull the data through FeatureSetByPortalItem. Both feature layers contain the matching fields such as "OFFICIAL_N". I have it written two ways but I'm sure I'm missing a step somewhere to make it work in the pop-up. As neither are giving me the result I want. This option gives me the counts based on the Official Name which is the same between both feature layers. but when I try to use this expression in the pop-up it returns [object Object] instead of the numbered Counts. But when I run it in the Arcade Window it does give me the total counts for each Name. var fs = FeatureSetByPortalItem(Portal('https://www.arcgis.com'), 'ID', 0, ['OFFICIAL_N'], False); var counts = Groupby(fs,['OFFICIAL_N'], [{name:'Total', expression: 'OFFICIAL_N', statistic: 'COUNT'} ]); return counts Or this code which has an additional for loop but in the pop-up it says that there are 3 features a every site which is incorrect. var fs = FeatureSetByPortalItem(Portal('https://www.arcgis.com'), 'ID', 0, ['OFFICIAL_N'], False); var counts = Groupby(fs,['OFFICIAL_N'], [{name:'Total', expression: 'OFFICIAL_N', statistic: 'COUNT'} ]); for (var item in counts){ var totalcount = item['Total'] var result = TextFormatting.NewLine + 'Total Number of Features at Mine Site: ' + totalcount } return result I know I am probably missing something somewhere in the code but can't figure it out so any help would be greatly appreciated as I am new to Arcade!
... View more
03-23-2023
10:39 AM
|
0
|
2
|
1226
|
POST
|
Morning James, I've found the same issue, seems to only happen when you apply a filter to the records. If you export the entire database there is no issue. I've been able to export from ArcOnline and Survey123.
... View more
10-01-2021
09:23 AM
|
0
|
0
|
551
|
POST
|
Good Morning, We are experiencing the same issue as above, the surveys are being filled in over a couple of days. The person filling out the reports says when they open the report the next time some but not all of the pictures are missing. The pictures are required however he is still able to submit the report. I believe the program has recognized the pictures have been taken however they are not showing up. In the typical work flow the report shouldn't be able to be submitted if no pictures were taken. Are we able to recover the missing pictures from the device? Thanks,
... View more
07-11-2018
06:56 AM
|
0
|
0
|
1101
|
Online Status |
Offline
|
Date Last Visited |
03-06-2024
11:05 PM
|