[mapguide-users] initial task in taskpane

Bernhard Maehler bernhard.maehler at gmx.de
Mon Jun 29 12:22:50 PDT 2015


I am not sure if you want to integrate your own search function or the fusion
search widget as Inital Task.
In case you want to integrate the fusion search widget, you can refer to
fusion/widgets/Search/SearchPrompt.php with the required parameters.

Example for Inital Task URL:
http://path/to/SearchPrompt.php?locale=<locale>&target=<target>&title=<title>&prompt=<prompt>&popup=<popup>&filter=<filter>&layer=<layer>&limit=<limit>&properties<properties>&propNames=<probNames>

Parameters:
<locale> = the default locale (for example "en" or "de")
<target> = the target (for example "TaskPane")
<title> = the title (for example "Search%20for%20address")
<prompt> = the prompt (for example
"Enter%20a%20part%20of%20the%20street%20name")
<popup> = "true" or "false"
<filter> = the filter expression for the property of the layer (for example
address%20LIKE%20%20('%25%24USER_VARIABLE%25')
<layer > = the name of the layer resource
<limit> = the maximum number of search results that will be listed (for
example "1000")
<properties> = the property of the layer that you want to search for (for
example "address")
<probNames> = the header of the result list (for example "Address")

Regard that the URL has to be converted into a valid ASCII format or that
you have to encode your URL
(http://www.w3schools.com/tags/ref_urlencode.asp).

Advice:
If you have already integrate the search widget in your WebLayout, view the
access.log of your Web server to find out the correct URL & parameters.

Bernhard



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/initial-task-in-taskpane-tp4186789p5213459.html
Sent from the MapGuide Users mailing list archive at Nabble.com.


More information about the mapguide-users mailing list