BLOG
|
Hi Larci, In the Hosted Item ID you only need to insert the 32-character code, not the entire URL. Cheers, Uri
... View more
03-20-2022
04:24 PM
|
1
|
0
|
11504
|
POST
|
Hi @AyeletGreenberg, Have a look at this post: https://community.esri.com/t5/arcgis-survey123-questions/survey-123-problem/td-p/801585 Try to publish again and if that works check what's the difference. Also, as mentioned in the post above, moving the survey out of the folder in which it was published often causes errors. Hope this helps, Uri If this answer solved your question or if you found it helpful please mark it accordingly to help others who have the same question.
... View more
09-30-2021
07:09 PM
|
0
|
3
|
1609
|
POST
|
Hi @markross, The GDB's domains have a code and a description. The calculator is grabbing the code instead of the description. In the field calculator, using Python 3 as Expression Type, use the following code (replace the values in red with the relevant values): new_labels = getDomain(!SourceField1!, !SourceField2!, 'DomainName') In the Code Block: def getDomain(source1FieldCode,source2FieldCode,DomainName): gdb = r"yourGDB.gdb" dom_desc = [d.codedValues for d in arcpy.da.ListDomains(gdb) if d.name == DomainName][0] for code in dom_desc.items(): if code[0]==source1FieldCode: domDescription1 = code[1] if code[0]==source2FieldCode: domDescription2 = code[1] Concat = domDescription1+domDescription2 return Concat You can find the domain name in the GDB's domain table. Hope this helps, Uri If this answer solved your question or if you found it helpful please mark it accordingly to help others who have the same question.
... View more
09-30-2021
06:22 PM
|
2
|
1
|
1253
|
POST
|
Hi @PaulGardiner, If it's any help, here's a little ArcGIS toolbox that grabs all the photos from the folders, moves them up a level and deletes the folders. The tool input should be the folder where you exported all your photos to. It'll work only on jpg and png file types. To add more types open the script and add types extension type in 'file_type' parameter. Any folder that had photos in it and remained empty after the export will be deleted. Cheers, Uri If this answer solved your question or if you found it helpful please mark it accordingly to help others who have the same question.
... View more
09-29-2021
10:46 PM
|
1
|
2
|
2048
|
POST
|
Hi @DavidWilliams7, The first thing that comes to mind if a survey is published and working fine but doesn't appear in Connect is that you don't own it (has anyone changed the ownership on it?) and that the survey folder is not on your local drive. Can you see both old and new survey folders in your My Survey Design folder (usually under C:\Users\your_username\ArcGIS\My Survey Designs)? If you do see both folder, try to hit the refresh button on Connect (top right) or shut it down and restart. Make sure the folders have all the relevant files in it (survey.xlsx etc). Another thing you can do is change the folder name, and restart/refresh Connect - sometime it takes it a bit to register name changes. If you can't see the old folder on your local drive then somehow you deleted it. If you own the survey and it is published but it's not on your local drive you should actually see it in Connect with a Download option (assuming you're connected to your organization). Otherwise I'm not sure what it could be. Uri If this answer solved your question or if you found it helpful please mark it accordingly to help others who have the same question.
... View more
09-28-2021
05:58 PM
|
0
|
0
|
1213
|
POST
|
Hi @PaulGardiner, You can achieve this doing the following workflow: 1. Use the Export Attachments toolbox to export the photos to different folders by field value. 2. In windows explorer, search for the photos (e.g., "ext: jpg") in the folder containing all the exported folders. You will get a list of all the photos from all the folders. 3. Select all the photos, cut and paste into one folder 4. Delete all the empty folders The other replies to your post are using the base script provided by Esri (which is also found in my toolbox as Export Attachments From Table). That script doesn't and can't access the field value because that value is not stored in the photo attachment table, but only in the parent Feature Class. To access this value the script needs to match each photo's REL_GLOBALID to the parent's feature class GLOBALID, which is what the Export Attachments toolbox does. Hope this helps, Uri If this answer solved your question or if you found it helpful please mark it accordingly to help others who have the same question.
... View more
09-28-2021
04:46 PM
|
1
|
1
|
2064
|
POST
|
Hi @BenWan, Use the substring function: substr(${Site_Name},0,10). If it doesn't work in the instance_name create a new question in the main form and feed it to the instance_name. Hope this helps, Uri If this answer solved your question or if you found it helpful please mark it accordingly to help others who have the same question.
... View more
08-01-2021
05:31 PM
|
1
|
0
|
869
|
POST
|
Hi @PrachiPatel, If you know your reviewers' usernames you can apply the solutions above, where you 'lock/read only' the survey to the public, but keep it editable to those on your permitted csv list. If all your reviewers have something in common, e.g. the same email suffix or an xxx_yourcompany format at the end of their Esri username, you can set a read only calculation that limits editing based on that. For example, if email field has @yourcompany.com then readonly = 'no', otherwise readonly='yes'. Public can then still open submitted surveys but won't be able to edit (use the trick with the dateCreated field as shown above). Note that this will only work on the mobile app, not the web version. Another solution which I think will be easier to manage is to just create a new, duplicate survey (submitting to the same layer or a view layer), where you can define completely different Inbox/Sent, submission, and viewing rules. If this answer solved your question or if you found it helpful please mark it accordingly to help others who have the same question.
... View more
08-01-2021
05:04 PM
|
1
|
0
|
3150
|
POST
|
Hi @PrachiPatel, Yes, I'm not sure this trick works with Sent folder. I'd disable the Sent folder and let the survey go to Inbox. Then, if you want to limit what users can see in their inbox, you can add a Query expression on the Inbox (in Survey123 Connect) to show records where the username record = user, or, in the Collaborate tab (in Survey123.com) allow viewers to view only their own submitted records. If this answer solved your question or if you found it helpful please mark it accordingly to help others who have the same question.
... View more
07-29-2021
04:56 PM
|
0
|
2
|
3167
|
POST
|
Hi @cschooley Have a look at this tool I created - might be helpful: https://community.esri.com/t5/arcgis-pro-blog/export-attachments-toolbox/ba-p/1022018 If this answer solved your question or if you found it helpful please mark it accordingly to help others who have the same question.
... View more
07-05-2021
11:12 PM
|
0
|
0
|
3605
|
BLOG
|
Hi @DougBrowning, I tired to have a look but it's not as straight forward as the pop-ups. I'm not sure how to hack it in the web map layer level (unless you use arcpy in Pro and re-publish but that might be an overkill). If you have standardized symbology throughout your web maps you can apply the symbology at the feature service level: https://community.esri.com/t5/arcgis-api-for-python-blog/methods-for-updating-layer-symbology-with-the-arcgis-api-for/ba-p/902923 Might be worth posting a question to the community.
... View more
06-29-2021
05:22 PM
|
0
|
0
|
1590
|
POST
|
Hi @JenMcRuer, @DougBrowning, I wrote this quick script to copy pop-ups between web map layers. It's published here: https://community.esri.com/t5/arcgis-online-blog/copy-pop-up-between-web-map-layers/ba-p/1073105 Hope you find this helpful, Uri
... View more
06-28-2021
01:11 AM
|
1
|
1
|
1919
|
BLOG
|
The attached Python script assigns a pop-up from one web map layer (source) to another web map layer (target). If you like it I'd appreciate if you give a Kudos. Thanks! 👍 To use the script: Download and extract the attached zip file. Open the script file in a python editor (e.g., IDLE. This should be installed by default on any machine with ArcGIS Pro). Change the following details under the USER INPUTS section: Source web map 32-character id Target web map 32-character id (if same as source web map enter the same id in both) Exact name of pop-up source layer in source web map Exact name of pop-up target layer in target web map ArcGIS Online credentials: url, username & password (make sure you have permissions to edit the target web map). Save and Run the script. The script will: remove and replace the pop-up of the target layer with the pop-up of the source layer. not remove/add layers from/to your web map. not modify the pop-up of the source layer. produce an error if you have more than one layer with the same name as the source or target name within the same web map. produce an error if the layer name you provided cannot be found in the source or target web map. This script is not an official Esri product and is therefore not supported or updated. Written by Uri Gilad 28 June 2021
... View more
06-28-2021
01:07 AM
|
4
|
4
|
2415
|
BLOG
|
The Export Attachments Toolbox provides an easy solution for exporting attachments from a feature service on AGOL/Portal or from a local Geodatabase to a local folder. The Toolbox offers various export options such as distributing the exported attachments into multiple folders according to attachment attributes, adding a prefix to attachment name, and downloading the feature service from AGOL/Portal as a File Geodatabase. If you like this toolbox I'd appreciate if you give a Kudos. Thanks! 👍 Background Attachments, in particular photos, are a common component in spatial data capture and management. As such, Esri’s feature classes (in Desktop environment) and hosted feature services (in AGOL/Portal environment) can be enabled to store attachments relating to individual features. The attachments are saved as Blobs in a related table, pointing to the parent feature class through a Relationship Class. While it is possible to batch upload attachments to a feature class by using the Add Attachments Tool, the management of existing attachments in a feature class is limited: Individual attachments can only be viewed in dedicated applications, for example Survey123 Online data viewer, or configured pop-ups in web maps, apps, and ArcGIS Pro. Batch downloading of attachments is possible though external software such as FME, or setting up a limited script which has to be applied separately to each attachment table relating to the feature class. Manual downloading of the data is required if the layer is on AGOL. Large or multiple attachments increase the feature class size quickly making it bulky and less responsive. Backup and sharing of attachments are cumbersome as attachments are ‘hidden’ in a feature class, and easy access is only possible through GIS platforms. Consequently, many users request a dedicated tool that will allow the easy export of attachments from the feature service to a local folder where they can be managed independently. Export Attachments Toolbox The Export Attachments Toolbox facilitates the exporting of attachments from Geodatabases or AGOL/Portal hosted feature services. Tools The toolbox has three tools: Export All Attachments from Database Extracts all attachments from a FGDB or EGDB into a local folder. Attachments can be assigned with various file name prefix options such as parent feature class name, related field value, or a text prefix provided by the user. Export Attachments from Local Table Based on this Esri support page, this tool extracts all attachments from a single attachment table to a local folder. It is similar to the first tool but applies only to one table at a time and does not include advanced options. Export Hosted Feature Layer & Attachments This tool offers several options: Only FGDB: Download a hosted feature service from AGOL/Portal to a local folder as a File Geodatabase. Only Attachments: Extract all attachments from an AGOL/Portal hosted feature service to a local folder without downloading the hosted feature service. FGDB + Attachments: Download a hosted feature service from AGOL/Portal and extract all its attachments to a local folder. Grouping Attachments When downloading attachments from a geodatabase or a hosted feature service, the user can group the attachment in separate folders based on the related feature attributes. For example, in an asset feature class with asset type associated to each attachment, the tool will download all attachments related to asset x in folder x and all attachments related to asset y in folder y, etc. The specified group name must be entered by the user in the exact way it appears in the feature class. If the group name is not found as a field in the feature class, the attachments will be downloaded to a folder named ‘No Group Assigned’. Prefix Options When downloading attachments, the user can specify an attachment prefix that will be added to the attachment’s name. The prefix can be one of the following: No Prefix – No prefix will be added to attachment name Type Prefix – A prefix added by the user to the attachment name. For example, images that only have a date in their name can be added a fieldwork_ prefix to be named fieldwork_imagedate.jpg. Group Name (only available for grouped attachments, see Grouping Attachments section for more info) – The group name will be added as prefix to attachment name. For example, if the attachments are grouped by asset type, an attachment named 2020101.jpg related to a Streetlight asset type will be saved as Streetlight_20200101.jpg. Group Name + Type Prefix (only available for grouped attachments, see Grouping Attachments section for more info). The group name will be added as prefix to attachment name, and the user’s prefix will follow. For example, an attachment named 2020101.jpg related to a Streetlight asset type with a user prefix of _fieldwork_ will be saved as Streetlight_fieldwork_20200101.jpg. Related Feature Class Name – The name of the feature class that holds the attachment will be added as a prefix. For example, if the parent layer name is Brisbane_Assets and the attachment is 20200101.jpg the attachment will be saved as Brisbane_Assets_20200101.jpg. Toolbox and Scripts Attached in this blog is a version of the toolbox with the scripts embedded ('imported'). To view the script, right click on the script in Pro and click 'Edit'. Technical Considerations AGOL/Portal Access To use the Export Hosted Feature Layer & Attachments tool make sure you have the appropriate permissions to download hosted feature services or attachments from AGOL/Portal. If you cannot see the ‘Export’ button in the service’s overview page in your AGOL you will not be able to download it with the tool. If your Portal has a proxy you will need to provide the tool with proxy host name and port number. Environments The toolbox was created in an ArcGIS Pro 2.6.3 / Python 3.6.10 environment. For best results, run the tools in a similar or upgraded environment. Using previous versions, especially Python 2 versions, is likely to cause the toolbox to encounter errors. Terms of Use Support and Upgrades This toolbox is not an official Esri toolbox. It is therefore not supported or updated. Published by Uri Gilad, 25 June 2021
... View more
06-25-2021
02:33 AM
|
47
|
23
|
17366
|
POST
|
Hi @JenMcRuer, Did you try to add the layer again to the map after adding the questions? A map layer schema doesn't change if you modify the schema after you added the layer to the map. Try to add the layer again and see if the new fields are visible. You might have to remove the old layer and configure the pop-up on the new layer. Hope this helps, Uri If this answer solved your question or if you found it helpful please mark it accordingly to help others who have the same question.
... View more
06-24-2021
10:12 PM
|
2
|
2
|
1960
|
Title | Kudos | Posted |
---|---|---|
1 | 03-20-2022 04:24 PM | |
1 | 02-12-2020 03:12 PM | |
1 | 08-01-2021 05:04 PM | |
2 | 09-30-2021 06:22 PM | |
1 | 09-29-2021 10:46 PM |
Online Status |
Offline
|
Date Last Visited |
06-05-2022
05:38 PM
|