With WebOffice map widget it's possible to query for an object (layer query) or to do a geolocator search operation in order to get a map image as result. (See Request to query for an Object OR Request to do a Geolocator Search Operation)
Following parameters are needed in order to query for objects:
•query
•returnkey
•keyname
•keyvalue
Note: To use this functionality it's necessary to configure a layer or a geolocator query in the WebOffice 10 R3 project. (For further information on how to configure Layer Queries see Layer Queries or Geolocator Queries.
WebOffice map widget supports two different types of requests when using operations with several search fields:
•Querying with groups of two values
•Querying with groups of three values
Querying with groups of two value:
When querying with groups of two values the parameter query has to be set once. The parameters keyname and keyvalue can be repeated as often as desired and are related to the previously set parameter query. The parameters keyname and keyvalue are used as value pair and it's important to consider the order of the parameters used in the URL. The correct order grants that the correct keyvalue is related to the keyname.
Request Example:
http://<SERVER>/<WebOffice-Applikation>/client_mapwidget/default.jsp?baseURL=http://<SERVER>/<WebOffice-Application>&project=project_name&query=adress&keyname=STREETNAME&keyvalue=Innerhoferstraße&keyname=HNR&keyvalue=45d&width=600&height=400
Querying with groups of three values:
When querying with groups of three values the order of the parameters used in the request does not have any effects, as the related values have to be numbered. However it's necessary that every triple relates to a unique parameter query.
Request Example:
http://<SERVER>/<WebOffice-Applikation>/client_mapwidget/default.jsp?baseURL=http://<SERVER>/<WebOffice-Application>&project=project_name&query2=adress&keyname1=STREETNAME&keyvalue2=45d&query1=adress&keyname2=HNR&keyvalue1=Innerhoferstraße&width=600&height=400
Note: The groups of two or three values are linked together with the logical operator AND.