the current definition of the search reads all information from the XML file when the search is executed. You would need to modify the search.php and the functions getSearchParameters() and getSearchParamsPG() respectively to get your info from somewhere else. You could try to create a new class that inherits from XML_search and modify just the necessary parts and call this one instead of the original in query.php (it's the line $search = new XML_search($_SESSION['PM_SEARCH_CONFIGFILE']);)
You will need to dive quite deep into the logic of the attribute search of p.mapper in order to perform this, however... good luck ;-) armin samiazmi wrote: > Thanks Armin for the prompt reply, > > I am basically looking for attribute search on fields on postgis layers but > it should be a SQL query string that should be created dynamically according > to user requirements. Using the search.xml we are only able to search for > one field at a time but what I need is multiple field search with "Where > clasuse" and also i have many layers so defining the search.xml for each > layer and for each field will be a huge task. > > Here is a more specific detail about the multiple queries that I am looking > for please visit this page http://samiazmi.googlepages.com/pmapper.htm. I > have almost made the interface ready as can be seen. I need the > connectivity, like which is the file that needs to be invoked and what are > the parameters that need to be passed inorder to achieve my goal. > > I have made a separate php file that contains all the interface related > tools. Now is it possible to generate a query string and pass it as a normal > SQL query > through pmaaper to PostGIS layer, if yes which javascript need to be invoked > and what is the > format in which the query string needs to be passed??? > > e.g. SELECT * FROM <lyr_name> WHERE <field1 > #### > OR <field2 < #### > > > Hope you got the problem. > > Waiting in anticipation > > Regards > > Samee > > > > Armin Burger wrote: >> what do you mean with "making SQL queries"? Attribute search on fields >> of the Postgis layers? Then see this >> >> http://svn.pmapper.net/trac/wiki/UpgradeInfo >> >> armin >> >> Samee Azmi wrote: >>> Hello Group, >>> >>> I have installed postGIS and its working fine. I have imported shapefiles >>> to >>> postgis and am able to access it through p.mapper. >>> >>> Can any one let me know the steps involved in making SQL queries through >>> POSTGIS on the imported shapefiles. I tried searching the forums but dint >>> get any thing relevant. >>> >>> Waiting in anticipation. >>> Regards >>> >>> Samee >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2005. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> pmapper-users mailing list >> pmapper-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/pmapper-users >> >> > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users