Inbox Filter Popup works Online but not Offline

1290
17
Jump to solution
04-25-2023 07:14 AM
Adam_Bourque
Occasional Contributor

Hello everybody, 

Background info: My popup button is a code to open and edit the existing point with inbox method they click on and will pass over / filter by address. It works no problem online, but the filter function does not seem to work with the inbox offline, after I click the popup button offline it opens survey123 form without the exact feature from field maps and then generates "error 0". Here is my code , any thoughts? I definitely need this workflow to work offline..  Both my web map is offline downloadable, no issues and the survey itself with feature layer. Full editing access with update, add, and delete.

------------

TESTING THIS FOR OFFLINE

 

Currently instructing them to "Refresh inbox" and solely use S123 for offline usage, but limits them from using the map pop up method like online..

<p><a href="arcgis-survey123://?itemID=14505fc4d195405aa06de1ee200a8e9e&action=edit&folder=inbox&update=true&filter={address}"><img class="image_resized" style="width:54.83%;" src="https://dabuttonfactory.com/button.png?t=Service+Line+Survey&amp;f=Roboto-Bold&amp;ts=22&amp;tc=fff&..." alt="Service Line Survey"></a> <span style="color:#ffffff;font-size:large;"><font style="background-color:rgb(220, 20, 60);"><strong>{expression/expr3}</strong></font></span><span style="color:#000000;font-size:large;"><font style="background-color:rgb(255, 215, 0);"><strong>{expression/expr5}</strong></font></span><span style="color:#ffffff;font-size:large;"><font style="background-color:rgb(128, 128, 128);"><strong>{expression/expr4}</strong></font></span><span style="background-color:rgb(65,105,225);color:#ffffff;font-size:large;"><strong>{expression/expr6}</strong></span></p>

---------------------

NOTE: I am currently relying on the q:GlobalID={GlobalID} passover for online workflow, trying to update with offline workflow with the filter and refresh inbox option.. explained by @JamesTedrick https://community.esri.com/t5/arcgis-survey123-questions/open-specific-survey-in-survey123-inbox-fro... 

My working online code... using q:Global IS BELOW

 

<p>

<a href="arcgis-survey123://?itemID=14505fc4d195405aa06de1ee200a8e9e&action=edit&folder=inbox&update=true&q:GlobalID={GlobalID}"><img class="image_resized" style="width:54.83%;" src=" https://dabuttonfactory.com/button.png?t=Service+Line+Survey&amp;f=Roboto-Bold&amp;ts=22&amp;tc=fff&..." alt="Service Line Survey"></a> <span style="color:#ffffff;font-size:large;"><font style="background-color:rgb(220, 20, 60);"><strong>{expression/expr3}</strong></font></span><span style="color:#000000;font-size:large;"><font style="background-color:rgb(255, 215, 0);"><strong>{expression/expr5}</strong></font></span><span style="color:#ffffff;font-size:large;"><font style="background-color:rgb(128, 128, 128);"><strong>{expression/expr4}</strong></font></span><span style="background-color:rgb(65,105,225);color:#ffffff;font-size:large;"><strong>{expression/expr6}</strong></span></p>

 

------------

 

0 Kudos
17 Replies
Adam_Bourque
Occasional Contributor

This is great news and I tested it, does indeed work now! Thank you @BarbaraWebster1 and whoever updated this on S123 team.

Adam_Bourque
Occasional Contributor

Hey @BarbaraWebster1 I thought I had this working last year, I have a survey 3.19 update version that I can't get to work offline.. I have refreshed inbox before going airplane mode test offline and it shows the full list, but the filter / update=true still isn't working? I have to manually type search find the survey rather than using popup button. If you could tell me what I am doing wrong with code below, thanks so much.

 

<p>
<a href="arcgis-survey123://?itemID=642981b1dc66468890b14e87b2b5f345&amp;&amp;action=edit&amp;folder=inbox&amp;update=true&amp;filter={SLAddr1}&amp;field:SLAddr1={SLAddr1}" target="_blank"><img class="image_resized" style="width:54.83%;" src="https://dabuttonfactory.com/button.png?t=Service+Line+Survey&amp;f=Roboto-Bold&amp;ts=22&amp;tc=fff&..." alt="Service Line Survey"></a> &nbsp;
</p>

 

Note: Works online but not offline

0 Kudos
Adam_Bourque
Occasional Contributor

Also forgot to add, what happens is I have my inbox refreshed while online then go to airplane mode to troubleshoot. It will go to the inbox and show the full list, but no text is entered in from the filter. I have tried to put the filter code before and after folder=inbox and update=true; would appreciate if ESRI can get back to me on this.

0 Kudos
BarbaraWebster1
Esri Regular Contributor

Hi @Adam_Bourque , I just tested using the filter and update parameters in airplane mode (after refreshing the inbox) and it looks like it's working in 3.19. Is it possible the dyamic filter value isn't populating as expected? You could try replacing it with a hardcoded filter value to test whether that's  the issue. 

0 Kudos
Adam_Bourque
Occasional Contributor

@BarbaraWebster1 I tried to use hardcoded filter value, 

here is the address "85 BRIDGE ST" and field "{SLAddr1}" I tried using. Tried using filter example found here filter=field:SLAddr1:85 BRIDGE ST but did not work in my code. Could I schedule a time to screenshare or share my web map with you to do troubleshooting? Would really help to figure this out for multiple communities working with this workflow. -- Seem to not work, when in airplane mode offline my inbox will refresh for a second but not generate the values. I have update=true in code as seen above. 

 

Thank you so much for helping

0 Kudos
BarbaraWebster1
Esri Regular Contributor

Hi @Adam_Bourque, yes if you don't mind sharing your web app that would help with troubleshooting. Feel free to direct message it to me or email at bwebster@esri.com. Happy to set up a screenshare too if needed.

-Barbara

0 Kudos
Adam_Bourque
Occasional Contributor

Awesome thanks Barabara I just emailed you, if you didn't receive that I will direct message. Looking forward to getting this resolved.

0 Kudos
Adam_Bourque
Occasional Contributor

Was able to get this problem resolved, I noticed one of my phones worked and the other didn't. So I tried to sync offline area, no resolution. However, once I removed the offline area and downloaded it entirely again, the inbox filtering started to work in offline mode. Special thanks to @BarbaraWebster1 and her team following up on this as I was stressed. Survey123 is the best 🙂 

0 Kudos