POST
|
Hi Sara, Would you be wanting to have the URL differ for each value by appending the RegID value on the end? I would recommend having an arcade expression that concatenates a base url with the RegID value and has that as a field in the features popup, something like: var RegID = $feature.RegID
var BaseURL = "yourUrl"
return BaseURL + Text(RegID) Or you can have custom text in the popup with a hyperlink, so it displays the RegID with the hyperlink being "yoururl{RegID}"
... View more
04-21-2023
05:51 PM
|
0
|
5
|
1267
|
POST
|
Hi, I've wanted to do this in the past and the best solution I found was to have an integer field outside of the repeat with a calculation set to count(${question_in_repeat}), and a constraint set to .<7. This means the user can do as many repeats as they want, but if they try to submit and they've completed more than 6 repeats it will stop them due to the calculated field being more than the number of repeats you want to limit them to. You can also set the integer field to bind::esri:fieldType = null to prevent it from being created as a field in the resulting feature class for tidiness.
... View more
04-21-2023
03:08 PM
|
2
|
0
|
1775
|
POST
|
Hi Rach, I'm assuming there are points being captured with the images? These should be appearing as attachments at the bottom of the popup when you click on points on the map (if configured in the web map) - you could also have a "details" pane in your dashboard with your feature info that you can configure to show the images too. Josh
... View more
04-21-2023
02:36 PM
|
0
|
2
|
618
|
POST
|
No worries 🙂 glad I could help out! Do you want to mark this as solved so people know we've got a resolution?
... View more
04-20-2023
10:18 PM
|
0
|
1
|
682
|
POST
|
The code is what's stored in the db and the description is what's shown. If you try to enter the description into the database it won't recognise it as a valid option. When digitising information in pro it will present you the description in the drop down but store the code behind the scenes. You can see that in action by switching off "show domain and subtype descriptions" check box in the attribute table. So to successfully populate that data over you will have to find a way of converting those "description" values to their respective codes, I'd personally use a dictionary as a lookup table.
... View more
04-20-2023
03:53 PM
|
0
|
3
|
1995
|
POST
|
Hi, It needs to match the 'code' not the 'description', as the code is what's stored in the database and the description is what it's shown as. That'll be why it's failing for you.
... View more
04-20-2023
03:07 PM
|
0
|
5
|
717
|
POST
|
Can you post a picture of the domain as well as some of the input data that should match the domain?
... View more
04-20-2023
02:48 PM
|
0
|
7
|
1333
|
POST
|
Hi Daniel, There's an arcade function called "FromJSON" which will turn the data into the relevant arcade data type, in this case a dictionary. I think that should do what you need!
... View more
04-20-2023
02:46 PM
|
1
|
1
|
915
|
POST
|
Oh I thought the calculate field was failing, not completing with warnings. And it's not working for any of the records, even ones that look like they should work? Does your input data match the codes or the descriptions in the domain?
... View more
04-20-2023
02:27 PM
|
0
|
10
|
1339
|
POST
|
Hi, I've tested it on my end and it seems to work - have you set "allow null values" to no on your field with the domain? If so then it would be trying to set non-domain values to Null and then stop working as it's not allowed. If not, can you post a screenshot of the error message?
... View more
04-20-2023
01:52 PM
|
0
|
12
|
1347
|
POST
|
Hi, I've gone for a slightly different approach to the problem as I think with that many if/else if clauses it can be tricky to work out what's going on. var RESF1Score = $feature.PR_RESF1_SCORE
var RESF2Score = $feature.PR_RESF2ENG_SCORE + $feature.PR_RESF2NAT_SCORE
var RESF3Score = $feature.PR_RESF3_SCORE
function isTwenty(i) { return i == 20 }
var num20s = Count(Filter([RESF1Score, RESF2Score, RESF3Score], isTwenty)
When(num20s==3,20,num20s==2, 10, num20s==1, 5, 0) To summarise what this is doing: Adds ENG/NAT together as one is filled in each time and the other is 0, for the purposes of this calculation I believe they can be lumped together because ENG and NAT are treated equally Assigns a variable for the above plus the RESF1 and RESF3 score Create a function that returns true if the input is equal to 20 Uses the Arcade Filter function with the list of scores from above, to get rid of any that aren't 20, and returns the count of the number of 20s Uses the When function to return the 20 if there are 3 20s, 10 if there are 2, 5 if there's 1 and 0 if there are none Hope this works for you! Seemed to be working fine in the Arcade playground for me. Cheers, Josh
... View more
04-20-2023
03:14 AM
|
0
|
6
|
855
|
POST
|
Hi Daniel, You should be able to just take the json that's shown in your screenshot, grab the "results" and take the first result in the list doing something like this: Just un-nesting the json response essentially. Josh
... View more
04-20-2023
02:27 AM
|
0
|
3
|
918
|
POST
|
Hi LT, I don't believe that's possible when creating features in ArcGIS Pro. I think the only "select multiple" available in the ArcGIS Platform is via Survey123 - not sure if that's possible or useful in your situation though! Otherwise you may have to split it into multiple fields as you suggested.
... View more
04-20-2023
12:05 AM
|
1
|
0
|
1372
|
POST
|
Hi, There's a button at the bottom of the "Field Calculator" dialogue box called "Enforce Domains" - your problems should be solved by ensuring it's checked before running your calculation https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/calculate-field.htm
... View more
04-19-2023
11:59 PM
|
0
|
14
|
1362
|
Title | Kudos | Posted |
---|---|---|
1 | 04-05-2023 11:09 PM | |
1 | 05-21-2024 10:26 PM | |
1 | 04-20-2023 12:05 AM | |
1 | 05-21-2023 10:47 PM | |
1 | 07-28-2020 10:24 AM |
Online Status |
Offline
|
Date Last Visited |
05-22-2024
01:23 AM
|