share URL

985
8
10-24-2019 01:37 AM
TimNilsson
New Contributor III

Hello!

Im quite new to GIS and to this forum. I wonder if there is any custom widget that allows me to make a query on etc roadtype=highway and appy. It would then shows all highways not just one specific. After that i would like to generate a URL to that webmap with the query included and share the URL with my colleagues.

I cant set a filter for each query because the query will change too much so it has to somehow be included in the URL.

/Tim

Tags (3)
0 Kudos
8 Replies
RobertScheitlin__GISP
MVP Emeritus

Tim,

   The custom eSearch widget allows for querying based on url parameters and also has an export url option.

Enhanced Search Widget Version 2.13 - 09/25/19 

Live Demo site (notice url has the search parameters):

https://gis.calhouncounty.org/WAB/V2.13/widgets/eSearch/index.html?esearch=I-71&slayer=1&exprnum=0

Export Search URL in Help Doc:

https://gis.calhouncounty.org/WAB/V2.13/widgets/eSearch/widgets/eSearch/help/eSearch_Help.htm#LI_25C... 

TimNilsson
New Contributor III

Thank you so much Robert! This really helped alot and im curious to find out whats possible once i learned all the settings within the widget.

0 Kudos
TimNilsson
New Contributor III

i tried it out and looks exactly what i was looking for except that i cannot publish this to arcgis online wich is this case dont let me see if the URL export works.

The Export Search URL link will not work if you have not deployed your WAB App to a web server yet and are still using a url like http://machinename:3344/webappbuilder/apps/[App#]. It needs a deployed URL like http://gis.calhouncounty.org/WAB/V1.3/widgets/eSearch/

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Tim,

  Correct custom widget can Not be deployed to AGOL you have to host the app on your own web server or use on premise Portal.

shaylavi
Esri Contributor

Not sure if this answers your need but you can also launch the app with a query in the url parameters - Use URL parameters—Web AppBuilder for ArcGIS (Developer Edition) | ArcGIS for Developers 

Shay
0 Kudos
TimNilsson
New Contributor III

Hello!. This is acctually what i wanted from the start, But, since we do not have Arcgis Server i cannot host my Webapp dev version.

Does this also work for the WAB in arcgis online? i would not then need the eSearch widget, atleast not for this purpose.

I remember i tried this before, and also the share widget with URL but that makes a point to one single object. What i want is it to show all etc : Roadtype=highway&Coloroftheroad=green. and then show all thoose objects that has that in tier attribute.

/Tim

0 Kudos
shaylavi
Esri Contributor

URL parameters is supported with AGOL as well. Also, you do not need ArcGIS Server to host an app' locally, you can just download an app from AGOL and host it over an IIS/Apache server without using WAB. Loading custom widgets, as you said, requires on-premis Portal

Shay
0 Kudos
TimNilsson
New Contributor III

Hi agian, after some some more research i found a post that explains better what i want. And it is not a query , it is a Filter witihn the parameters.

As i understand there is some coding required to do this.

https://community.esri.com/thread/192403-dynamic-filter 

Im sorry if i didnt explained better or if i didnt understand diffrences between the query and filter.