Select to view content in your preferred language

ExB Search Widget URL Parameters

835
6
06-28-2024 02:11 PM
bdoventures
Occasional Contributor

Does anyone know how to determine the search widget ID as referenced in Use URL parameters—ArcGIS Experience Builder | Documentation?  The page seems to indicate that it can be viewed after being enabled in Manage URL Status, but even though I have a search widget added to my app, Manage URL Status doesn't recognize the widget to allow me to view the relevant parameter data in the URL.

I'm trying to see if there's a workaround to place a marker through the URL by enabling markers in the search widget and then executing a search through the URL, since it may be several months before ESRI adds a marker parameter.

0 Kudos
6 Replies
bdoventures
Occasional Contributor

Looks like the problem I was having is that the Manage URL Status doesn't recognize widgets in the header.  For some reason, they have to be in the body.  I was able to configure a search through the URL, but there's no parameter that allows for replication of the marker that the widget uses.

0 Kudos
Shen_Zhang
Esri Contributor

Hi @bdoventures 

Manage URL status only recognizes widgets in the body. We are working on those in header and footer, it will come. 

As for finding widgetId, there's no way to find it in the builder. You can find it by going to the developer tool console. Just run _appState.appConfig.widgets, you will see the list of widgets printed:

Screenshot 2024-07-01 at 10.46.04.png

I have two search widgets here, with different labels and ids. It's easy to tell which one is in the header, just check your TOC:

Screenshot 2024-07-01 at 10.47.22.png

Shen Zhang
0 Kudos
Matthew_Deveney
Occasional Contributor

Hi Shen, Is developer tool console that you are referring to the same as the console under "Inspect" in Google Chrome? I'm having trouble finding where to run _appState.appConfig.widgets. I greatly appreciate your help!

0 Kudos
Shen_Zhang
Esri Contributor

Yes, but please go to the "Console" tab and enter _appState.appConfig.widgets. When inspecting something on the page the DevTools should open "Elements" by default. The "Console" tab is just next to it.

Screenshot 2025-01-16 at 13.37.05.png

 

 

Shen Zhang
0 Kudos
Matthew_Deveney
Occasional Contributor

Thanks Shen, I was able to find it. Much Appreciated!

v1ebba
by
Deactivated User

I'm just now getting into experience builder and I've not done charts yet. But I was thinking that if you cannot get the search to work, a filter might work. You should be able to set the filter up work on user input.

0 Kudos