Select to view content in your preferred language

Create Query URL Parameter in Pop-Up in one WAB to launch another WAB app

1144
5
Jump to solution
11-07-2018 11:12 AM
by Anonymous User
Not applicable

Hello!

I am trying to create a Query or Find URL Parameter that I can put as a hyperlink in a pop-up for an internal WAB application we have that is used by another department.  Essentially what I want is when you click on the the hyperlink in the pop-up that it launches another WAB website application (our parcel viewer website), queries the parcel layer and shows the user a result (the found parcel).  I have tried unsuccessfully to get this to work.  I don't know if the layer doesn't support what I am trying to query (the PARID field) or if I am totally goofing the syntax.  

WAB Website I'm trying to query: https://maps.onslowcountync.gov (hosted by a vendor on their server)

Query Layer: Parcels (Layer ID=51)

Query Field: PARID (alias PAR ID

Query I have gotten to work is:  /?LayerID=51&FeatureID=42171633 (preceded by the above url)

Problem: I want to query the PARID field, not the FeatureID field.  PARID is my primary key.

Any help or suggestions would be great!

Thanks!

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Angelia,

  Strange The proper query syntax should look like:

&query=Census_8491,POP2000=1211537

http://doc.arcgis.com/en/web-appbuilder/manage-apps/app-url-parameters.htm#ESRI_SECTION1_ED1AF7A40AB... 

When using a WAB app. 

But that app in your link is NOT a WAB app. It appears to be just a custom JS API app. Looking at the apps main.js the url parameters you are using are what is coded for (i.e. the layerID and ObjectId(s) of a feature).

View solution in original post

5 Replies
RobertScheitlin__GISP
MVP Emeritus

Angelia,

  Strange The proper query syntax should look like:

&query=Census_8491,POP2000=1211537

http://doc.arcgis.com/en/web-appbuilder/manage-apps/app-url-parameters.htm#ESRI_SECTION1_ED1AF7A40AB... 

When using a WAB app. 

But that app in your link is NOT a WAB app. It appears to be just a custom JS API app. Looking at the apps main.js the url parameters you are using are what is coded for (i.e. the layerID and ObjectId(s) of a feature).

by Anonymous User
Not applicable

Thanks for the reply Robert.  Does this mean I can't query the PARID field in the feature using URL parameters?  It is a field in the data. Here is the rest services for the feature layer: https://arcgis4.roktech.net/arcgis/rest/services/Onslow/GoMaps4/MapServer/51

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Angelina,

  That is correct, you can not unless the apps developer adds the ability to query a certain field verses just ObjectId(s)

0 Kudos
by Anonymous User
Not applicable

I will ask today and let you know!  Thanks again Robert!

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

No problem. Don't forget to mark this question as answered as this is now in your app developer court.

0 Kudos