Has anyone used the 'query' URL parameter? (WAB DE 1.3)

2726
4
Jump to solution
12-11-2015 10:55 AM
ChrisMathers
Regular Contributor II

I'm trying to play with the "query" URL parameter available now in 1.3 but I cant figure it out. The docs aren't proving to be real helpful. I know these parameters have been available in AGOL for a month-ish but I haven't had a change to use them there yet. I can use "find" and the others fine but cant figure out how to query a layer in a service.

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Esteemed Contributor

Chris,

   Hmm. I added a dynamic map service to my test app and it still worked for me.

http://gislap183:3344/webappbuilder/?id=3&query=LOJIC_PublicSafety_Louisville_5814_0,SILOCAL,GOLDEN%...

This is my layer ID based on getting the info from the webmap json: LOJIC_PublicSafety_Louisville_5814

and the sirens layer is: 0

View solution in original post

0 Kudos
4 Replies
RobertScheitlin__GISP
MVP Esteemed Contributor
0 Kudos
ChrisMathers
Regular Contributor II

I can get it to work with a feature layer that was added alone but not as part of a whole service. I assume I'm supposed to put the number for the layer in the service after the underscore.

works:               ?query=Parcels,A1RENUM,18145-000-000

doesn't work:    ?query=BasicService_2,A1RENUM,18145-000-000

This is the REST URL: BasicService (MapServer)

edit: boss walked in and I forgot to finish typing somehow.

0 Kudos
RobertScheitlin__GISP
MVP Esteemed Contributor

Chris,

   Hmm. I added a dynamic map service to my test app and it still worked for me.

http://gislap183:3344/webappbuilder/?id=3&query=LOJIC_PublicSafety_Louisville_5814_0,SILOCAL,GOLDEN%...

This is my layer ID based on getting the info from the webmap json: LOJIC_PublicSafety_Louisville_5814

and the sirens layer is: 0

View solution in original post

0 Kudos
ChrisMathers
Regular Contributor II

How do I get to the webmap json if the map is on AGOL?

EDIT: Never mind I got it now. Thanks Robert.

0 Kudos