POST
|
Using pulldata("@layer") works well to solve this issue, however I still think this could use some finessing from the Survey123 team to make this work without pulldata... Some cleaning up needed, but as a proof of concept, this supports Workflow A above, which is what I was hoping for as I need to support reinspection of assets with extremely long inspection forms.
... View more
08-28-2023
08:21 AM
|
0
|
0
|
510
|
POST
|
Hi Josh, We use the Field Maps solution for many of our inspection workflows, and it's great, however this survey is extremely long and detailed. It would just not be possible to use this for this situation. I actually thought of pulldata last Friday and plan on trying it this week. I think that will work and might be the best option for grabbing the proper GlobalID and writing it to my "dam_guid" field to solidify the relationship. @IsmaelChivite It would be great if it was possible, within a repeat, to view the most recent repeat record and just copy that to a new/editable repeat record and use that to edit the inspection form (Workflow B above).
... View more
08-28-2023
06:48 AM
|
0
|
0
|
514
|
IDEA
|
I agree that if the data is shared with you in a group, any group member regardless of user type, should be able to download the data to use locally. This should NEVER require a Creator-level account.
... View more
08-28-2023
06:42 AM
|
0
|
0
|
536
|
POST
|
Hi - Hoping for some help in resolving a workflow issue. We are building a new dam inspection form. We have a dam inventory (point) with a 1:M relationship to an Inspection table. Because the inspection form is very long and does not change much from inspection to inspection, we want users to be able to easily copy the previous inspection into a new form, make updates and submit. The relationship between the Dam points & inspection table is based on GlobalID/GUID; this has already been published as a hosted feature layer (AGOL). I've tested two workflows which both have benefits and drawbacks. I am hoping for some advice on how to accomplish my goal. GOAL: Easily copy previous inspection to a new form AND maintain the relationship to the Dam point. Workflow A: Use Survey123 Inbox w/ the following settings - inbox surveys to be viewed (no editing of previously submitted inspections), allow inbox surveys to be copied to a new survey. THIS DOES NOT MAINTAIN RELATIONSHIP -- when I tested, the GUID is not populated with the Dam's GlobalID, hence relationship is broken. This is ideal because the entire form is copied and the user can make updates and submit a new inspection. Workflow B: Use Survey123 form that contains dam information and all inspections conducted. Allow editing via Inbox. Can view previous inspections, but not edit them. Can add new inspections. Can not copy past inspection into new repeat. MAINTAINS RELATIONSHIP -- when I tested, the GUID is populated with the Dam's GlobalID and relationship is maintained. This is not ideal because while I can view the previous inspections, I can not select the most recent and copy it to a new repeat. Potential Workaround: Use Workflow A to trigger Power Automate on submission. Power Automate grabs the GlobalID of the dam using another unique identifier and writes the GlobalID to the inspection's GUID field. This would work, however I am wondering if I am missing something obvious that would be a better solution. Thank you,
... View more
08-25-2023
08:49 AM
|
0
|
4
|
600
|
POST
|
I did not ever get this figured out. Each time my flow is triggered, it runs through all related records for the parent record.
... View more
07-20-2023
10:42 AM
|
0
|
1
|
288
|
POST
|
Hi - I have formatted pop-ups in my map using Arcade and they're working well, however I am hoping someone can help me figure out how to add 'alt text' to the icons in my pop-ups. The thought here is, if the icon (for some reason) doesn't load, then the user could still see if some activity was allowed or not allowed. Currently, if the icons do not load, the right side of the table appears empty, which is confusing. We've experienced issues when users access this from our work network - sometimes the icons are blocked/don't load and other times they work fine. Any suggestions would be welcome. Example of pop-up: Here is the Arcade used to return the icons: var passIcon = "https://x123x";
var failIcon = "https://x123x";
function makeFlexItem(HTML) {
return '<div style="flex:1 1 auto; font-size:12px; font-weight:200; opacity:0.8">' + HTML + '</div>';
}
var AppStatusIcon = When($feature["Hunting_Allowed"] == "N", failIcon,
$feature["Hunting_Allowed"] == "Y", passIcon,
failIcon);
var flexItems = '';
flexItems += makeFlexItem(AppStatusIcon);
Return(AppStatusIcon); Here is the HTML used to build the table: <p>
<span style="color:#912c21;font-family:Verdana;font-size:24px;"><i><strong>{Permit_Type} </strong></i></span>
</p>
<p>
<span style="font-size:18px;"><strong>Game Allowed: </strong>{Game_Allowed} </span>
</p>
<figure>
<figure>
<figure class="table">
<table cellspacing="3px" cellpadding="0px">
<tbody>
<tr valign="top">
<td style="background-color:#e6e5e5;padding:3px;text-align:center;width:150px;">
<span style="font-size:medium;"><font><strong>Hunting</strong></font></span>
</td>
<td style="background-color:#e6e5e5;padding:3px;text-align:center;width:150px;">
<img src="{expression/expr0}" alt="" width="25">
</td>
</tr>
<tr valign="top">
<td style="background-color:#e6e5e5;padding:3px;text-align:center;width:150px;">
<span style="font-size:medium;"><font><strong>Trapping</strong></font></span>
</td>
<td style="background-color:#e6e5e5;padding:3px;text-align:center;width:150px;">
<img src="{expression/expr1}" alt="" width="25">
</td>
</tr>
<tr valign="top">
<td style="background-color:#e6e5e5;padding:3px;text-align:center;width:150px;">
<span style="font-size:medium;"><font><strong>Dogs</strong></font></span>
</td>
<td style="background-color:#e6e5e5;padding:3px;text-align:center;width:150px;">
<img src="{expression/expr2}" alt="" width="25">
</td>
</tr>
</tbody>
</table>
</figure>
</figure>
</figure> Thank you!
... View more
06-23-2023
10:55 AM
|
0
|
1
|
406
|
POST
|
Hi Josh - That modified code snippet worked perfectly and now is returning the proper values. Thank you so much!
... View more
06-13-2023
11:47 AM
|
1
|
0
|
1041
|
POST
|
Ah yes! That is exactly what's happening. My select_multiple field is a string w/ length of 2. This was an exercise in bringing to region's data together - one region used numeric codes 1 to 90 and the other used two-letter abbreviations. When I look at an example that has comma separated two-letter abbreviations, the code appears to work properly. The correct subbasin names are returned and there are no odd duplicates. Any idea how to get around this? Thank you!
... View more
06-12-2023
10:25 AM
|
0
|
2
|
1053
|
POST
|
Hi @jcarlson - I know this is a few years old, but hoping you might be able to assist. I came across this solution and it looked like it would fit the bill for my problem, however I am experiencing a strange output and am baffled. Problem: I have a hosted feature layer that is managed via Survey123. One of the select_multiple questions stores codes for each selected subbasin. These codes are not helpful in a pop-up, so I wanted to use Arcade to replace the code with the subbasin name. I am not getting an error, but the returned values are incorrect when I compare the stored subbasin codes with the reported subbasin names in the pop-up. My code is: var basinNames = {
'1': 'Asnebumskit (Mill St)',
'2': 'Asnebumskit (Princeton)',
'3': 'Asnebumskit Pond',
'4': 'Babcock Brook',
}
// and so on - this is a sample of code list, which contains 212 values
var splits = Split($feature.Subbasin, ',')
for(var a in splits){
for(var k in basinNames){
splits[a] = Replace(splits[a], k, basinNames[k])
}
}
return Concatenate(splits, ', ') For example, one record has stored values in the Subbasin attribute field of: 23,40,44,65. These codes correspond with: But instead, my returned value in the pop-up is: Even in a situation where only one subbasin was selected the returned subbasin from the Arcade script is incorrect. In this example, there was only one subbasin selected so the name (from domain label) shows up for "Subbasin(s)" in bottom row (65 = this option) and you can see the incorrect name returned in the first row: Do you have any suggestions? I will keep working on this, but if you see something please let me know! Thank you,
... View more
06-09-2023
10:16 AM
|
0
|
4
|
1061
|
POST
|
Hi Josh, Thanks for sharing that example - I'll give it a try. I was actually going to try it out this morning, but when I open the Map Viewer (in Chrome or Firefox) and select the layer, there is no longer a "transparency by attribute" option under the symbology settings. I'm mystified.
... View more
06-09-2023
05:26 AM
|
0
|
0
|
728
|
IDEA
|
We are testing a new public-facing app and have received this question from many people - "Why can't you just add a scroll bar? I didn't know I could scroll to see more". Scroll bars are pretty basic elements when something "overruns" the current view. It would be nice to have a scroll bar option when configuring ExB widgets. We are using a grid layout to house a nice combination of photos and text; in instances where the text overruns, the jumping arrows are either a) not always there, or b) not an obvious indicator to users that they can scroll.
... View more
05-25-2023
05:35 AM
|
0
|
0
|
695
|
IDEA
|
I've recently used @jcarlson's custom "Memorize" function within one of my Data Expressions at the behest of @JohannesLindner and it significantly improved the performance of my dashboard - user load times went from ~2 minutes to ~5-10 seconds. It would be nice if something like this was built into Arcade to help users improve performance.
... View more
05-19-2023
12:14 PM
|
0
|
0
|
478
|
POST
|
Hi @TonghuiMing - would this behavior also explain this? https://community.esri.com/t5/arcgis-experience-builder-questions/image-position-not-honored-in-tablet-or-mobile/m-p/1291233#M7010
... View more
05-19-2023
12:06 PM
|
0
|
1
|
983
|
POST
|
Hi - I am designing the tablet and mobile layouts for my Experience. In all of my designs, I am using the same background image for my apps home page. I've got the image position set to "fill" and this is honored within the Experience designer, however when I view the published version on my tablet and mobile device, this is no longer honored. On my iPhone, I have tested this in both Safari and Chrome with the same results. Please see both sets of examples below. Is this expected behavior? Any ideas to make this work as shown in the designer? Thank you! Mobile preview in designer: Published mobile version on iPhone: Tablet preview in designer: Published tablet version on iPad:
... View more
05-19-2023
12:04 PM
|
1
|
9
|
802
|
Title | Kudos | Posted |
---|---|---|
1 | 01-17-2024 05:18 AM | |
1 | 08-08-2022 12:50 PM | |
4 | 02-08-2024 12:57 PM | |
1 | 02-08-2024 01:00 PM | |
1 | 05-15-2023 05:58 AM |
Online Status |
Offline
|
Date Last Visited |
a week ago
|