|
POST
|
Hello, I'd like to provide more information what I have been today, but it still does not work. I used a query page to get the accurate url pattern that I'd like to apply. I noticed that there was '+' for space, so I applied that in the url scheme in the Javascript file. After I fixed, it will look like this (Project_Name = 'Sample Project-Phase1'). To confirm, I coped and pasted the url in the browser, and I could see the json return, just like shown in my mobile app and Connect. However, it still shows nothing in the webform. https://services1.arcgis.com/../FeatureServer/0/query?where=Project_Name+%3D+%27Sample+Project-Phase1%27&outFields=*&returnGeometry=false&&f=pjson&token= Should I pass x, y to get the json return in web form like the featureByLocation code sample in the Connect? I am still not clear what makes different in my javascript pulldata. When I checked the development tool, it shows the error below. Does it indicate the error that I have,,? "DevTools failed to load SourceMap: Could not load content for chrome-extension://.../sourceMap/chrome/content.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME"
... View more
04-26-2021
10:06 PM
|
0
|
0
|
2831
|
|
POST
|
Hi Chelsea, I usually create a view layer from the survey feature layer’s overview page directly. Then this case any changes applied in the survey layer can be inherited to the view layer and hardly need to reconfigure any associated apps. make sure to share the view layer with the group you have for stakeholders. Hope it helps. cheers, kerry
... View more
04-25-2021
10:41 PM
|
1
|
0
|
2597
|
|
POST
|
Hello all, I used to check our web apps' usage since the app was created in the mid april in 2020 . Last week, I realized that the usage search only offers up to 1 year range, and had to some manual calculation to get the cumulated total and average usage per day. It was quite inconvenient and I hope to get the number using Python API. I searched some resources but I don't see any example which actually used a custom range. Has anyone done it? What all I need is total cumulated number and daily average. Even if I cannot do over 1 year, if I can apply custom date range with Python API, I can probably skip manual calculation work. Cheers, Kerry
... View more
04-25-2021
05:24 PM
|
0
|
3
|
3077
|
|
POST
|
If you are using a point to create a survey point within polygon areas, and what you want to get is the overlapping polygon's name, you can use pulldata @javascript. There are sample codes in the Sruvey123 connector. Cheers, Kerry
... View more
04-25-2021
11:31 AM
|
1
|
0
|
1242
|
|
POST
|
Hi Julian, To me, it sounds like Arcade was applied within a web map or dashboard to replace '_' to ' '. I will be interested in finding a solution if there is a way to do it within Survey123 directly. Cheers, Kerry
... View more
04-24-2021
04:44 PM
|
0
|
0
|
1650
|
|
POST
|
I have not tried this, but it sounds like the survey on webform can be saved? Hope it hleps. Cheers, Kerry Draft mode If enabled in the Share survey section, the Draft mode option saves a user's answers in the Survey123 web app locally as they progress through the survey. The user can resume the survey in the same browser at any time. https://doc.arcgis.com/en/survey123/browser/create-surveys/sharesurvey.htm
... View more
04-24-2021
12:16 PM
|
1
|
0
|
1182
|
|
POST
|
Hello Esri Survey123 team, @JamesTedrick , @Anonymous User or @IsmaelChivite could you please help me,,,? I am creating a web form that will use the pulldata function to retrieve the attributes from another feature layer. This is how I'd like to set up. - Survey1 is used to create a project list and its detail information such as year, client, and team members. - Survey2 is used to track hours per each project created in Survey1. I hope to use 'dynamic dropdown' for the project list but I am aware that it's not implemented yet. So the project list is coming from another CSV table hosted on AGOL. - In Survey2, when user select a project name, the project name will be used to query the attributes in Survey1 feature layer, and pullout its relevant information. This will be done using pulldata javascript as it will access the feature layer directly which will be consistently updated by managers rather than using pulldata csv. To do that, I created a JavaScript functions that query the record with 'where clause' only (not using x, y location), and I am supposed to get the attributes in json. It worked perfect when I tested in Connect and Survey123 app on mobile device, but in web form I can confirm that json result area is empty where I used pulldata @javascript, and therefore pulldata@json questions that I am using to get each attribute value are empty, too. When I tested using with 'featureByLocation' from the sample form, it worked fine on the web form. So I am not sure why my function does not work on web form, assuming that something must be wrong with my code. I used something that may not recognized by web browser?? The images below show the reusult of my javascript request in the mobile app vs. web browser. pulldata("@javascript", "getProjectDetail.js", "featureByAttribute", ${Project_Name}, ${Token})) Result in the mobile app Result in the web form (empty) This is what I did for scripting,.. sorry for poor coding. I hope to get some advice. function featureByAttribute(projectName, token) { // Output value. Initially set to an empty string (XLSForm null) let outValue = ""; // Check to make sure both layerURL and location are provided if (projectName == null || projectName == "") { // The function can't go forward; exit with the empty value return projectName; } // I used these variables to replace '=' and ''' in url let newEqual = "%3D" let sgQuote = "%27" // Set up query parameters let parameter1 = "where=Project_Name" let parameter2 = [parameter1, newEqual,sgQuote,projectName,sgQuote].join('') let parameter3 = "f=pjson&outFields=*&returnGeometry=false" let parameters = [parameter2, parameter3].join("&"); let layerURL = 'https://services1.arcgis.com/..../FeatureServer/0' if (token) { parameters = parameters + `&token=${token}`; } let url = `${layerURL}/query?${parameters}`;
... View more
04-23-2021
09:35 PM
|
3
|
3
|
3338
|
|
POST
|
Hi Jose, You can get the feature layer url on the layer's overview page. At the bottom right, there is a url you can copy. Kerry
... View more
04-23-2021
08:54 AM
|
0
|
0
|
4195
|
|
POST
|
You can extract token in the survey form. Use this in calculation..maybe set the type as hidden and esri type null. pulldata(‘@property’,’token’) kerry
... View more
04-22-2021
11:02 PM
|
1
|
0
|
4208
|
|
POST
|
Hello all, I am quite new to JavaScript and ArcGIS REST API and looking for some help on creating JavaScript that works for querying attribute with feature services. I hope to pull out relevant information through hosted feature layer instead of CSV pull data function. I tried the sample with intersect with geometry, but I'd like to achieve this by using attribute values. For example, there is a store database which has store names, address, operating hours and type of store. Once I select store name from the dropdown in the survey, store address, hours, type in the feature layer would be entered automatically. Kerry
... View more
04-19-2021
04:25 PM
|
0
|
1
|
2001
|
|
POST
|
Hi @ZacharySutherby I reposted the question last week and I was advised to try with v3.12 mobile apps. It works fine while I have the csv downloaded in the media folder (even if it's not the latest one). But once I remove the csv from the media folder, I don't see new list from the update csv. This is what I tried today. 1. Removed csv in the media folder. 2. Updated CSV on AGOL (let's say A.csv) 3. Refreshed Survey123 mobile app, there is no notification on csv update. 4. Re-published Survey123 through Suvey123 Connect. 5. Refreshed Survey123 mobile app, there is no notification on csv update. 6. Downloaded A.csv linked content . 7. Refreshed Survey123 mobile app, it asks to update. I could see the list from A.csv. 8. Updated A.csv to B.csv on AGOL 9. Refreshed Survey123 mobile app, there is a notification on csv update. I could see the list from B.csv. As mentioned, I hope to get this work with web forms. However it looks like I need to go through download linked in content and republish all the time to apply updated list in web form. I saw that there is a new solution coming in May that uses feature tables to generate dynamic list. Would it work for web forms, too? Cheers, Kerry
... View more
04-13-2021
03:52 PM
|
0
|
0
|
6230
|
|
POST
|
Hi, How did you update your csv? when I tested by updating values from data table it did not work. But when I tried overwrite the entire csv it worked. kerry
... View more
04-12-2021
10:53 PM
|
0
|
1
|
5747
|
|
POST
|
What version of mobile app are you using?? When I tried this with 3.12 version on the mobile app it worked fine. There will be a notification window saying that csv has been updated and will redownload it automatically after the csv on agol is updated. I need to use it on the web browser though and haven’t figure it out how I can make it work. kerry
... View more
04-12-2021
10:46 PM
|
0
|
2
|
6246
|
|
POST
|
Hello @IsmaelChivite Thank you for your response. I forgot to mention that we are actually using this survey as a web form mainly. Is this approach not supposed to work with the web form? My Survey123 Connector is v 3.12.230. Just tested with 3.12 Survey123 app and it works fine, but we really need to get this work on a web form. Please advise. 🙂 Cheers, Kerry
... View more
04-08-2021
09:40 AM
|
0
|
0
|
5803
|
|
POST
|
Hello all, Last week I asked a question regarding 'auto updating choice list' and got some directions using 'select_one_from_file' which I was not aware of. This was great! (https://community.esri.com/t5/arcgis-survey123-questions/update-choice-list-with-python-api-in-notebook/m-p/1042263#M33537) My main goal of using this approach is automating choice list update process through Python or overwrite csv on AGOL (added as Linked content in the Connect), not necessarily going through Survey123 Connect. Based on the comment I received, it sounded like updating CSV on AGOL will automatically update the choice list, but I do not see the expected result. 1. Survey has been published. 2. Created a csv file for external choice and uploaded on AGOL. 3. Downloaded csv within Linked Content and republished the survey. --> I can see the new list from csv. ------- 4. Overwrite csv manually with new file on AGOL. 5. Checked the survey. The selection list has not been changed. It shows the original choice list. ------- 6. Updated some values (name/ label) in the csv table on AGOL Data page directly. 7. Checked the survey. The selection list has not been changed. It shows the original choice list. ------- 8. Overwrite csv automatically using the sample Python script. 9. Checked the survey. The selection list has not been changed. It shows the original choice list. ------- 10. Republished the survey. The selection list has not been changed. ------- 11. Downloaded csv in Linked Content (updated from previous steps) in the media folder and republished the survey. Then the list has been updated. So this is a summary. - Connecting CSV in Linked Content first time populated expected choice list. - Any changes in CSV is not reflected since then. - If I download the CSV in media folder, then hit 'refresh' in Survey123 Connect I can see the new list.
... View more
04-08-2021
09:02 AM
|
0
|
7
|
5841
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-14-2020 02:08 PM | |
| 1 | 04-22-2021 11:02 PM | |
| 1 | 01-15-2024 05:16 PM | |
| 1 | 04-18-2024 08:25 AM | |
| 2 | 03-01-2024 11:09 AM |
| Online Status |
Offline
|
| Date Last Visited |
2 weeks ago
|