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!
Solved! Go to Solution.
Angelia,
Strange The proper query syntax should look like:
&query=Census_8491,POP2000=1211537
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).
Angelia,
Strange The proper query syntax should look like:
&query=Census_8491,POP2000=1211537
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).
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
Angelina,
That is correct, you can not unless the apps developer adds the ability to query a certain field verses just ObjectId(s)
I will ask today and let you know! Thanks again Robert!
No problem. Don't forget to mark this question as answered as this is now in your app developer court.