|
POST
|
We have looked at it but we were put off as you are limited by a maximum length of the resulting URL. So lines with a certain number of vertices cannot be passed to survey123. I can share the methodology next time I m at my desktop.
... View more
08-27-2021
02:59 PM
|
1
|
0
|
1258
|
|
POST
|
hi @jcarlson Thanks for your response i managed ot get it to work although its not exactly as per your instructions for example to get it to recognise the HTML tags I had to use OIDS += "<p style=\u0022font-size:8px\u0022>\n\u2022 ...................... but unfortunately it appears the HTML formatting is not working on my android device. The windows version of the field app supports it but my android device does not. is this expected ? Regards Paul
... View more
07-29-2021
08:26 AM
|
0
|
0
|
4082
|
|
POST
|
Hi All After Much toing and frowing i have manage to create this JavaScript function that shows a list of equipment and weather or not it has been inspected in the last week, indicated by a green tick box or red cross. My problem is while it looks great on the desktop version of Connect when I publish it ,it looks a mess on some smaller android devices. I was thinking if I could reduced the size of the font it might look better on devices with a smaller screen. I cannot figure out how to do this though. is it possible? or is there another solution I could use to help it look better on smaller devices Kind regards Paul Sweeney xmlhttp.open("GET",url,false);
xmlhttp.send();
var responseJSON=JSON.parse(xmlhttp.responseText);
var OIDS = "Serial Number "+ "- Description -"+ "- Last Inspection Date -"+"\n"+"\n";
var outputdatecheck = " "
var i;
for (i in responseJSON.features) {
var date = new Date();
date.setDate(date.getDate() - 7);
if(new Date(responseJSON.features[i].attributes.HSF_051_Inspection_Date) > date) {
outputdatecheck = "\u2705";
} else {
outputdatecheck = "\u274C";
}
OIDS += "\n\u2022 ("+((JSON.stringify(responseJSON.features[i].attributes.SERIAL_NUMBER)+") - "+JSON.stringify(responseJSON.features[i].attributes.DESCRIPTION)+" - "+ outputdatecheck+" "+new Date(responseJSON.features[i].attributes.HSF_051_Inspection_Date).toLocaleDateString("en-UK")+"\n").replace(/"/g, '').replace("01/01/1999", " (no weekly inspection record)").replace("01/01/1970", " (no weekly inspection record)"));
}
return OIDS
}
... View more
07-29-2021
04:28 AM
|
0
|
2
|
4115
|
|
POST
|
Hi @JamesTedrick Thanks for your response on this, thats great that there is a fix coming. It's interesting about the user putting the app into background manually causing the webhookto fail, it's very likely to happen especially considering how busy users can be . I will inform all users that best practice is to wait until they see the survey Sent successfully before moving on .
... View more
06-15-2021
01:38 PM
|
0
|
0
|
2642
|
|
POST
|
The Http module along with the REST API Can be used to query a feature service with a typical query eg where objectid > 100 and return the json which you can parse and use in more modules in your scenario. You can schedule it to run at certain intervals. I think the intervals depend on your subscription. It's pretty useful once you pick it up.
... View more
06-14-2021
03:05 PM
|
0
|
1
|
3204
|
|
POST
|
Hi @TylerBragg2 Really is that something you know for definite. I was always under the impression the app submits the webhook once it recieved a response from the server. That's why you had all the additional info on the user, survey information etc. I know you can generate webhooks from the feature service layer but I thought this was a separate process. I will admit I am no expert on this stuff so happy to be wrong on it.
... View more
06-14-2021
03:01 PM
|
0
|
0
|
3204
|
|
POST
|
Also what I intend to do is set up a Scenario in power automate and add the webhook to one of my existing forms in an integromat scenario. That way I can test if both Webhooks trigger or fail. My gut feeling it's the s123 app or an operating system issue due to connectivity I.e poor mobile data service
... View more
06-14-2021
12:44 PM
|
0
|
3
|
3212
|
|
POST
|
I think it's fair to say there is an issue so we re not all imagining it. Id imagine given the scale and number of requests its likely from time to time a webhook would fail . It would be great if someone could just confirm that , at least then we could work with it. As a precaution on some of my more important scenarios I have started creating round up scenarios that basically search the layer and process everything in the day again. It's extra executions but it gives piece of mind . I appreciate its not ideal for all scenarios but it does work well polling layers is defo more reliable if it suits the work flow.
... View more
06-14-2021
12:35 PM
|
0
|
7
|
3216
|
|
POST
|
Hi All I am trying to get the extract data function to work using integromat and the Rest API however i am running into the following error message and i cant figure out what the issue is , The same scenario worked before just fine but now it wont. The job ID is created but when it I use the Job id to extract it I get the following error "java.lang.IllegalArgumentException: The specified blob does not exist" Can anyone offer insight happy to share my blue print if needed . Thanks Paul
... View more
06-14-2021
01:45 AM
|
0
|
0
|
880
|
|
POST
|
hI @Jose_FranciscoSánchez_Díaz1 My bad I was posting from memory which was obviously wrong , what I had actually done is set up the filter to filter a table and when that feature in the table is selected it then triggers a filter on the other widgets using the methods I described above Regards Paul
... View more
06-09-2021
07:47 AM
|
1
|
0
|
14086
|
|
POST
|
On your filter widget add an action to filter the frame work , select the other layer you want to filter then below that specify the field u want to filter with and the field you want to filter by on the target layer. You can add multiple layers this way.
... View more
06-05-2021
01:44 PM
|
0
|
3
|
14122
|
|
POST
|
Hi @JamesTedrick I have a form with repeats populated based on the main form so basically if someone answers "no" to a Question its flagged as a deviation and it must be addressed via the repeat. Each repeat has several required fields and some have relavancies. Howver since the most recent update The user is only prompted to complete the first repeat and the other repeats are being skipped. As a work around I ve used a constraint on a field outside the repeat to ensure all the repeats are answered but it's not very clear to the user what they need to do.Could this possibly be a bug ? Happy to share a form Regards Paul
... View more
06-01-2021
12:43 PM
|
0
|
0
|
2617
|
|
POST
|
Hi @XanderBakker The union tool seems like it does the trick, i ve pieced together this code thanks for that var mainTable= xxx
var Job = $feature.Job
var SQL1 = "Job='" + Job+"'"
var Fibre_Job = OrderBy(filter(mainTable,SQL1),'Segment')
var i = 0
var geom = []
for (var f in Fibre_Job) {
geom[i++] = Geometry(f);
}
var merge = Union(geom)
var i = 0
var outparts = []
for(var f in merge.paths[i]) {
var e= 0
var ptstr=Concatenate(merge.paths[e][i].y," ",merge.paths[e][i].x)
TotalPoly[i++]= ptstr;
}
return Concatenate(TotalPoly, ";"); for my own education id love to see how you would have managed the second option you mentioned above. You can see from my code I used ordered by and I have a 'segment' field for the end user to populate to specify the order he polyline would follow. This will help to get the lines in the right order. The lines are already captured in the correct direction. Also is there a limit to how long a URL can be? as some of these segments are quite long . if its the case that they are very long and i cant use them have you any advice on how to minimise the length of the URL while still maintaining the general location of the line maybe only use vertices at a regular defined interval or something along those lines. Regards Paul
... View more
05-31-2021
01:32 PM
|
0
|
1
|
2028
|
|
POST
|
Hi All I am trying to create an arcade expression that returns a URL to populate a survey123 form with a single path from numerous polylines with a common attribute, ordered by a segment id field. so basically I have multiple polylines to be converted into one long polyline and to be passed it into the survey123 form. var mainTable= OrderBy(FeatureSetByPortalItem(Portal('https://tlilimerick.maps.arcgis.com/'),'xxxxxxxxx', 0),'Segment')
var Job = $feature.Job
var SQL1 = "Job='" + Job+"'"
var Polylines_in_Job = OrderBy(filter(Fibre,SQL1),'Segment')
var i = 0
for (var f in Fibre_Job) {
geom[i++] = Geometry(f);
}
return geom the code above returns an array with the exact number of polyline objects required in it and normally I have no problem passing a single polyline in on it s own I just can t figure out how to access every vertex in each polyline and generating a new string to include in the URL. I got it to work for start and end points but that's not exactly what I want. I also realised i needed the order to be correct or else it would be a nonsensical line ,so I added a segment id to be prepopulated by the user to inform the desired route. 1,2,3 etc @XanderBakker would you be able to assist with this one?
... View more
05-31-2021
09:19 AM
|
0
|
3
|
2084
|
|
POST
|
You can do it by adding to the definition . You need to build the relationship in json and the layer you want to add to the feature service and add it to your feature service definition. I have done it before but you need to be careful as it's not a supported workflow . I have a document describing it in more detail I ll share it with you next time i am at my desktop. Some links below as well https://developers.arcgis.com/rest/services-reference/online/add-to-definition-feature-service-.htm https://community.esri.com/t5/arcgis-rest-api-questions/how-to-modify-relationships-of-hosted-services/td-p/423783
... View more
05-28-2021
12:22 PM
|
2
|
2
|
2027
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 08-27-2025 09:54 AM | |
| 2 | 08-27-2025 09:46 AM | |
| 11 | 05-06-2025 03:32 AM | |
| 1 | 03-30-2022 03:21 AM | |
| 1 | 05-03-2022 03:29 AM |
| Online Status |
Online
|
| Date Last Visited |
2 hours ago
|