[mapguide-users] Help with .Net Samples
nelyass.heglig at gnpoc.com
nelyass.heglig at gnpoc.com
Wed Dec 3 08:55:53 EST 2008
Dear,
You just need to add for example two dropdown lists and one text box as
follows:
- Dropdown1: contains list of fields to let user choose one from them
(e.g. RNAME, Owner, area, Price etc.)
- Dropdown2: contains comparison operators (e.g. =, >, LIKE, <= etc.)
- Textbox: here the user add the value to search for
Then you will construct a query from these controls by concatenating
their values, like:
userQuery = dropdownlist1.text & " " & dropdownlist2.text & " " &
textbox1.text
Then you add the query variable to the filter method:
queryOptions.SetFilter(userQuery);
Please, visit this page for a sample of what you are looking for
http://data.mapguide.com/mapguide/DynamicKml/GoogleEarth.php
I hope this will give you the idea
Nadir Elyass
GIS Survey Engineer
-----Original Message-----
From: mapguide-users-bounces at lists.osgeo.org
[mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of jamesdudden
Sent: Wednesday, December 03, 2008 4:35 PM
To: mapguide-users at lists.osgeo.org
Subject: [mapguide-users] Help with .Net Samples
HI,
In the .net sample - select feature - there is a section of code in the
file
SELECTFEATURES.ASPX.CS as below which sets the filter:
queryOptions.SetFilter("RNAME LIKE 'SCHMITT%'");
What i want to do is allow users to decide the filter from a drop-down
menu
or something. Could anyone offer me any guidance of how and where to
start.
I've tried passing a hard-coded session variable which works but i am
not
sure on how i can get the users input.
Any help or advice would be appreciated.
Regards
James
-----
Straightforward solutions to take care of your business
http://www.software-matters.co.uk Software Matters
--
View this message in context:
http://www.nabble.com/Help-with-.Net-Samples-tp20812993p20812993.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
_______________________________________________
mapguide-users mailing list
mapguide-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users
More information about the mapguide-users
mailing list