POST
|
When clicking on a point that does not have a unit id, the url shows collector passing the correct "next value" on my desktop, but Survey123 does not populate the field if the value if it is calculated from the FeatureSet function. Thanks for the help and confirmation Peter Klingman andPeter Dalrymple I will be excited when this functionality works in 2020 !!!
... View more
10-01-2019
07:08 AM
|
0
|
1
|
1522
|
POST
|
Thanks for the reply, Peter. Yes, I can pass other expressions successfully. And, I actually have 2 links for the user to select if they want to collect the survey using the app or the web browser. I did this before I realized there is a setting to give the user the choice. I'm not sure if this is the reason....I can test if you think that will fix. app url <a href="arcgis-survey123://?itemID=a9b85207d13247218d3bb3eb575919f3&field:UNITID={UNITID}&field:XCOORD={XCOORD}&field:YCOORD={YCOORD}&center={expression/expr0}, {expression/expr1}"> browser url <<edit 9/22/2019, updated &quest >>no effect on correctly passing the next uid <a href="https://survey123.arcgis.com/share/a9b85207d13247218d3bb3eb575919f3?field:UNITID={UNITID}&field:XCOORD={XCOORD}&field:YCOORD={YCOORD}&center={expression/expr0}, {expression/expr1}"> The url opens the survey and centers correctly using a lat/long expression. I can also pass an expression that converts CR12345 to a number 12345 and that passes correctly using this Number(Right($feature.UNITID, 5)) If I click on a point that has a UNITID, the url has the correct UNITID (yay! I did not check this before). However, if I click on a point that doesn't have a UNITID, the field is blank. CR12345 https://survey123.arcgis.com/share/a9b85207d13247218d3bb3eb575919f3?field:UNITID=CR12345&field:XCOORD=&field:YCOORD=¢er=45.61480209609923,%20-122.61995657293565 NO UNITID https://survey123.arcgis.com/share/a9b85207d13247218d3bb3eb575919f3?field:UNITID=&field:XCOORD=&field:YCOORD=¢er=45.614874112327165,%20-122.62004615155709 Thank you for your help!
... View more
09-20-2019
05:56 PM
|
1
|
0
|
1522
|
POST
|
I have a webmap that displays existing curb ramp points intended for use on an iPad with the Collector app. The popups have a custom url to open Survey123 for the user to fill out an inspection for this curb ramp. However, if the user is inspecting a NEW curb ramp, they collect the point in collector and the popup displays what the asset id (UNITID) should be as the last UNITID value +1 by using an expression (code attached). I want to pass this expression to Survey123....is this possible? In testing, the popup works correctly showing the ID if it exists, and calculates the next ID if it doesn't. (This does not work if there are multiple assets with no ID, since they would have the same ID, but this is an experiment) UID Calc Expression {expression/expr7} var exist_uid = $feature.UNITID //grab the highest number asset id var curbramps = Top(OrderBy((FeatureSetByName($map,'Curb Ramps', ['UNITID'], false)), 'UNITID DESC'), 1) //calculate the last id+1 for (var cr in curbramps) var max_uid = Number(Right(cr.UNITID, 5))+1 } //curb ramp is tagged as CR12345 var new_uid = Concatenate("CR", max_uid, '') //if the unit id exists, pass the value. if not, pass the last value+1 iif(isEmpty($feature.UNITID), new_uid, $feature.UNITID) ; Hyperlink to send ID to Survey123 arcgis-survey123://?itemID=a9b85207d13247218d3bb3eb575919f3&field:UNITID={expression/expr7} Many thanks for your help!!!
... View more
09-19-2019
10:30 AM
|
0
|
6
|
1943
|
Title | Kudos | Posted |
---|---|---|
1 | 09-20-2019 05:56 PM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|