[Geomoose-users] [Geomoose-developers] Search Menu / Tab

Bob Basques Bob.Basques at ci.stpaul.mn.us
Tue Nov 6 17:24:35 EST 2007


Jay,

Not positive about this, but I did notice the capitalization on the two different "value" parameters are not the same, the second one is all capitalized, there may be a need to keep them one way or the other, my gut feeling is that they need to be capitalized, as the value is used to match against a data column/type of some sort.

Real quickly, you could swap their display order around and see if the same one still works or not, then you'll know if it's the data of the query that's at fault.

bobb


>>> "Jay Kapalczynski" <jkapalczynski at ci.maple-grove.mn.us> wrote:

I have been working on getting a tab running to do my searches.  I have somewhat succeded in that I created a new tab and I can copy some of the code that allows the user to enter a Park Name and search for it and zoom to it...
 
Although I want to take this a bit further and have multiple searches on the same tab
 
Right now I modified the menu to allow for searches on Park, Parcel PID, and Street Name.
Each one is working properly from the Menu 
 

 
 
My problem is when I try and bring this code to the Tab..as long as I stay with just one of the searches I am ok.it breaks down when I try and bring more than one..then only the last one works...
 
 
 
I created a new entry in the Menue Title (statemenu.xml)
 
                <menu title="Search">
                                <item title="Search for Parks" href="javascript:ServManager.startService('Search for Parks')"/>
                                <item title="Search for PID" href="javascript:ServManager.startService('Search for PID')"/>
                                <item title="Search for Street" href="javascript:ServManager.startService('Search for Street')"/>
                                <item title="Search for Stuff" href="javascript:ServManager.startService('Search for Stuff')"/>
                </menu>
 
 
 
I created a new entry in the service title (statedemo.xml)
 
                                <service title="Search for Stuff" selectable="false" default="false" locked="true" div="StuffSearch">
                                                <url>/cgi-bin/mapserv.exe</url>
                                                <input type="hidden" name="map" value="/ms4w/apps/GeoMOOSE/maps_statedemo/itemquery_Stuff.map"/>
                                                <input type="hidden" name="mode" value="nquery"/>
                                                <input type="user" name="id" title="Zoom to Stuff:"/>
                                </service>
 
 
I create a new entry for the search (statedemo.html)
 
 
    <div id="StuffSearch">
 
                <font color="black"><b>Search for Park:</b></font><br/>
                <input name="id"/><input type="submit" value="Search_Park"/>
                <input type="hidden" name="map" value="/ms4w/apps/GeoMOOSE/maps_statedemo/itemquery.map"/>
                <input type="hidden" name="mode" value="nquery"/>
                <br><i>Enter Park Name.<i/>
                                                                                
                <font color="black"><b>Search for PID:</b></font><br/>
                <input name="id"/><input type="submit" value="SEARCH_PID"/>
                <input type="hidden" name="map" value="/ms4w/apps/GeoMOOSE/maps_statedemo/itemquery.map"/>
                <input type="hidden" name="mode" value="nquery"/>
                <br><i>Enter PID number.<i/>
</div>
 
 
 
 

 
 
 
 
 
When written like above you can see both of them but only the second one works..the first errors out.
 
ANY THOUGHTS WH Y BOTH WILL NOT WORK?

OR ANY THOUGHTS HOW I CAN GET THIS TO WORK?
 
 
THanks
 
Jay
-------------- next part --------------
Skipped content of type multipart/related


More information about the Geomoose-users mailing list