Select to view content in your preferred language

URL parameters

202
3
08-12-2024 02:19 PM
Labels (1)
KevincFox_bia
New Contributor

I found the documentation below on URL Parameters.

https://doc.arcgis.com/en/experience-builder/11.2/build-apps/url-parameters.htm#

How can you use Data Filter in enterprise? 

The documentation says:

https://experience.arcgis.com/experience/<AppId>/?data_filter=dataSource_1:st=%27HI%27

however in enterprise the url look like

 https;//yourportalsite.com/portal/apps/experiencebuilder/experience/?id=<appid>

adding ?data_filter=dataSource_1:st=%27HI%27 this doesn't because there are two url ?

 

https;//yourportalsite.com/portal/apps/experiencebuilder/experience/?id=<appid>?data_filter=dataSource_1:st=%27HI%27

 

 

Any help?

 

 

0 Kudos
3 Replies
Ke_Xu
by Esri Contributor
Esri Contributor

Hi KevincFox_bia,

The help doc gave an example of ArcGIS Online, this needs to be modified. 

You could use portal url instead. Just like you provided above: 

https://yourportalsite.com/portal/apps/experiencebuilder/experience/?id=<appid>?data_filter=dataSour...

 

Thanks,

Ke

0 Kudos
KevincFox_bia
New Contributor

I'm tying to learn the correct format for portal. In AGOL the format is

https://experience.arcgis.com/experience/<appid>/?data_filter=dataSour

where you can include the url query string after the appid.

With portal you have the use the query string ?id=<appid> and it doesn't seem to allow &ing the strings and the hashtag to #data_filter doesn't seem to work. The documentation for Enterprise isn't updated from AGOL to portal.

These don't seem to work:

https://yourportalsite.com/portal/apps/experiencebuilder/experience/?id=<appid>#data_filter

https://yourportalsite.com/portal/apps/experiencebuilder/experience/?id=<appid>&data_filter 

https://yourportalsite.com/portal/apps/experiencebuilder/experience/?id=<appid>?data_filter 

https://yourportalsite.com/portal/apps/experiencebuilder/experience/?id=<appid>/?data_filter 

 

Thank you for the response 

 

0 Kudos
Ke_Xu
by Esri Contributor
Esri Contributor

Hi KevincFox_bia,

In the URL, there can be only one question mark , the splice statement uses the &

Take filtering OID =3 as an example.

https://yourportalsite/portal/apps/experiencebuilder/experience/?id=d32eeb3e2af74df7912357608cfcc715&data_filter=dataSource_2-18fcdfe55f5-layer-2-2%3AOBJECTID%3D3

Ke_Xu_0-1723600366923.png

It does work on Portal11.2. Please try at your side.

 

Thanks,

Ke

 

0 Kudos