[pmapper-users] search.xml with 2 fields (one depending on another)

2013-05-30 Thread Sylvain Arabeyre
Dear all,I've been struggling with the search.xml and the dependfld parameter.I want to set a search with 2 fields, one depending on another (a suggest depending on an option) with shapefile data.My problem is that the suggest field suggests all values from the data without taking into account the

Re: [pmapper-users] search.xml with 2 fields

2013-04-05 Thread Chris forum
Hi Armin, Thomas, I had to deal with another little problem, accents in the street names from the postgis DB which is encoded in ISO-8859-1. - They are replaced by a special text character in the drop down menu. Just need to specify the right dns for both fields in the search.xml file: dsn

Re: [pmapper-users] search.xml with 2 fields

2013-04-04 Thread Chris forum
Hi Armin, Thomas I've just replaced the 3 compressed JS files, search works fine now using them! Ok, flushCache is set. Thx a lot guys, pmapper rocks! Chris On Wed, Apr 3, 2013 at 7:39 PM, Armin Burger armin.bur...@gmail.com wrote: On 04/03/2013 03:55 PM, Chris forum wrote: Should I

Re: [pmapper-users] search.xml with 2 fields

2013-04-03 Thread Chris forum
Hi Thomas, Thx a lot for the explanation, I have chosen to use the nosubmit=1 parameter. First field works now, the query is not launched anymore when a suggested street name is clicked: definition type=suggest connectiontype=db minlength=1 startleft=1 sort=asc *nosubmit=1* So I am a step

Re: [pmapper-users] search.xml with 2 fields

2013-04-03 Thread Thomas RAFFIN
Hi, With your data and this search definition it worked yesterday: searchitem name=goeland_adresses description=Adresses -Suggest Suggest PGSQL- layer type=postgis name=goeland_addresse_lausanne field type=s name=lastname description=Rue wildcard=2 definition

Re: [pmapper-users] search.xml with 2 fields

2013-04-03 Thread Chris forum
Still no luck here... I copy/paste your search above, replacing the test shema with public one, but the second field is still not proposing anything. Here under the content of the pm_debug.log, with 'abe'-Abeilles and '2' values used in the fields. Looking at the last line of the log, I have

Re: [pmapper-users] search.xml with 2 fields

2013-04-03 Thread Thomas RAFFIN
The compress js version is certainly not up-to-date. Try to change your configuration like this: pm_javascript_locationjavascript/src/pm_javascript_location Armin, could you update the js compress files please? Le 03/04/2013 14:35, Chris forum a écrit : Still no luck here... I copy/paste your

Re: [pmapper-users] search.xml with 2 fields

2013-04-03 Thread Chris forum
Well done! \o/ Works perfectly now : )) Thank you so much Thomas! Should I dare asking a last question? Do I better use this, what is it actually doing? eventsonchange=$('#pmsfld_numero').val('').flushCache()/events On Wed, Apr 3, 2013 at 3:28 PM, Thomas RAFFIN traf...@sirap.fr wrote: The

Re: [pmapper-users] search.xml with 2 fields

2013-04-03 Thread Armin Burger
On 04/03/2013 03:28 PM, Thomas RAFFIN wrote: The compress js version is certainly not up-to-date. Armin, could you update the js compress files please? Hi Thomas I updated now the compressed JS files to SVN trunk. I was believing you were also committing these ones to SVN. It means that the

Re: [pmapper-users] search.xml with 2 fields

2013-04-03 Thread Armin Burger
On 04/03/2013 03:55 PM, Chris forum wrote: Should I dare asking a last question? Do I better use this, what is it actually doing? eventsonchange=$('#pmsfld_numero').val('').flushCache()/events that resets the text input field and empties the auto-complete cache of the suggest, so usually it

Re: [pmapper-users] search.xml with 2 fields

2013-04-02 Thread Chris forum
Still struggling with the search function. To resume what I am experiencing with a 2 fields search, which consists in finding a street name and then a building number on this street: 1) It looks like I can not set the first field search mode to 'options', my postgis table is too big (~10'000

Re: [pmapper-users] search.xml with 2 fields

2013-04-02 Thread Thomas RAFFIN
Hi, Le 02/04/2013 10:08, Chris forum a écrit : Still struggling with the search function. To resume what I am experiencing with a 2 fields search, which consists in finding a street name and then a building number on this street: 1) It looks like I can not set the first field search

Re: [pmapper-users] search.xml with 2 fields

2013-04-02 Thread Thomas RAFFIN
OK, it is due to bad configuration. You could do one of those: - Unactivate auto submit for suggested fields == set PM.suggestLaunchSearch = false; in js_config.php (applies to all suggested fields!) - keep PM.suggestLaunchSearch = true; and add to each definition where it is needed the

[pmapper-users] search.xml with 2 fields

2013-03-27 Thread Chris forum
Hi all, I am having a hard time getting to work a search with 2 fields, second one being dependant of the first one. I especially would like to do that with data coming from PGSQL . I know there are examples in the search.xml of the wiki, but I am not able to reproduce them with the demo data: -

Re: [pmapper-users] search.xml with 2 fields

2013-03-27 Thread Thomas RAFFIN
I think you have to define the SQL query for suggest option with depend field val. Here is an example for the 2d field that depend on field1 field type=s name=field2 description=Field 2 wildcard=0 size=15 definition type=suggest connectiontype=db startleft=1

Re: [pmapper-users] search.xml with postgis - invalidJSON in pmapper v4.2.0

2013-03-04 Thread Serge Claudio Rafanoharana
Dear Suman, I just had a quick view of you code and I think you should make the name lower case; and refer to this hint: :HINT: No function matches the given name and argument types. You might need to add explicit type casts. Please have a look at:

Re: [pmapper-users] search.xml with postgis - invalidJSON

2013-03-04 Thread Suman
thanx for help.. sorry it was silly mistake. i typed wrong spelling of option. thanx again for your help. Best Regards, Suman -- View this message in context:

Re: [pmapper-users] search.xml with postgis - invalidJSON

2013-03-03 Thread Suman
Hi all Pmapper User I am using ms4w v3.0.6. , mapserver v6.0.3, PHP v5.4.3. and pmapper 4.2.0. When I run a query on a PostGIS table I can see suggestions but when i click them no any response. This is my inline search.xml

[pmapper-users] search.xml with postgis - invalidJSON in pmapper v4.2.0

2013-03-03 Thread Suman
Hi all Pmapper User I am using ms4w v3.0.6. , mapserver v6.0.3, PHP v5.4.3. and pmapper 4.2.0. When I run a query on a PostGIS table I can see suggestions but when i click them no any response. This is my inline search.xml

Re: [pmapper-users] search.xml with postgis - invalidJSON

2013-03-03 Thread Armin Burger
this is related to old code in query/squery.php using deprecated Postgis functions. This was working with Postgis up to version 1.5.x, but not any more with v2.x where the deprecated functions have been removed. p.mapper 4.3 should have this fixed thanks to Thomas Raffin. In your case you need

Re: [pmapper-users] search.xml with postgis - invalidJSON

2011-04-14 Thread moka61
sorry for the delayed response. I tried the two suggested solutions and entering: $ searchJson = str_replace (\ \ ' ', $ searchJson) in x_search.php I will return the correct JSON string. ... Vito d 'Asio, Vito d' Asio. I also solved the problem of the INCLUDE, it was a trivial problem. the

Re: [pmapper-users] search.xml with postgis - invalidJSON

2011-04-11 Thread Thomas RAFFIN
Hi, Since jQuery 1.4.2 I had to change in incphp/x_ajax/x_search.php the JSON string returned (just before echo): $searchJson = str_replace(\\', ', $searchJson); I have the options_array2json function with addslashes. I think it is the only change I made concerning this issue (simple quotes).

Re: [pmapper-users] search.xml with postgis - invalidJSON

2011-04-10 Thread Armin Burger
On 08/04/2011 09:18, moka61 wrote: Thank you for the quick response. I removed the apostrophe from the name VITO D'ASIO and the query works correctly. The escape is made ​​only in the second part of the key JSON. for p.mapper 4.1 try the following: in

Re: [pmapper-users] search.xml with postgis - invalidJSON

2011-04-08 Thread moka61
Thank you for the quick response. I removed the apostrophe from the name VITO D'ASIO and the query works correctly. The escape is made ​​only in the second part of the key JSON. yet information.. I noticed that from version 4.10 if I use the INCLUDE tag in the map file print and export

Re: [pmapper-users] search.xml with postgis - invalidJSON

2011-04-08 Thread Thomas RAFFIN
Hi, Concerning the INCLUDE tag in mapfiles, with mapserver 5.4 or 5.6, everything is OK. Thomas. Le 08/04/2011 09:18, moka61 a écrit : Thank you for the quick response. I removed the apostrophe from the name VITO D'ASIO and the query works correctly. The escape is made ​​only in the

Re: [pmapper-users] search.xml with postgis - invalidJSON

2011-04-08 Thread moka61
Hi mrs. Raffin I am using version 5.6 of Mapserver. With version 4.0 of pmapper using INCLUDE in the mapfile export and print module work. But in version 4.1.0 and 4.1.1 work only if your mapfile is unique and not use INCLUDE tags. example: main map file that call other mapfiles INCLUDE

Re: [pmapper-users] search.xml with postgis - invalidJSON

2011-04-08 Thread Armin Burger
Daniele I cannot find any reason why the include should not work, especially not why it worked in p.mapper 4.0 and not any more in 4.1 . Maybe it is a side-effect of another issue. p.mapper uses the standard way of Mapscript for opening a map file, and I don't see any difference between

Re: [pmapper-users] search.xml with postgis - invalidJSON

2011-04-08 Thread Armin Burger
On 08/04/2011 09:18, moka61 wrote: Thank you for the quick response. I removed the apostrophe from the name VITO D'ASIO and the query works correctly. The escape is made ​​only in the second part of the key JSON. I know, the problem is that the JSON values afterwards are used by Javascript

Re: [pmapper-users] search.xml with postgis - invalidJSON

2011-04-08 Thread moka61
I cannot find any reason why the include should not work, especially not why it worked in p.mapper 4.0 and not any more in 4.1 . Maybe it is a side-effect of another issue. p.mapper uses the standard way of Mapscript for opening a map file, and I don't see any difference between recent

Re: [pmapper-users] search.xml with postgis - invalidJSON

2011-04-08 Thread Thomas RAFFIN
Have you got errors in the php log file? Maybe there could be acces rights errors (/home/sit/mapfile and /home/mapfile). Le 08/04/2011 10:46, moka61 a écrit : I cannot find any reason why the include should not work, especially not why it worked in p.mapper 4.0 and not any more in 4.1 .

Re: [pmapper-users] search.xml with postgis - invalidJSON

2011-04-08 Thread moka61
Have you got errors in the php log file? No. php log is the same as the previous post. I rediect here all errors Maybe there could be acces rights errors (/home/sit/mapfile and /home/mapfile). access rights seem to me correct. but I'll do other attempts bye -- View this message in

[pmapper-users] search.xml with postgis - invalidJSON

2011-04-07 Thread moka61
Hi folks I downloaded 4.1.1 version stable for an update to the previous. When I run a query on a PostGIS table I can not display the dropbox. This is my inline search.xml -- searchlist version=1.0

Re: [pmapper-users] search.xml with postgis - invalidJSON

2011-04-07 Thread Armin Burger
Daniele I guess it's related to an insufficient escaped apostrophe (could eg. be the VITO D'ASIO). There were changes in v 4.1 and it especially now uses a newer version of jQuery which expects syntactically correct JSON. I'll have a look at it and will try to add a patch soon. Please send me

[pmapper-users] search.xml

2009-10-22 Thread Kevin Edmundson
I am using the search.xml to define searches and parameters. Is there a way to search on date fields in shape files? Kevin Edmundson CIO WTH Technology, Inc 567 W Westfield Blvd Indianapolis, IN 46208 317.259.0105 office 317.259.1423 fax 317.501.8560 mobile

Re: [pmapper-users] search.xml problem: including external files

2009-09-06 Thread Armin Burger
Paul I added the modifications to the SVN for all XML parsing (search, print, config). Could you be so kind and add some description and use cases for this ENTITY references to the Trac Wiki? This way also other users could benefit from this. Url for the search would be

Re: [pmapper-users] search.xml problem: including external files

2009-09-03 Thread Armin Burger
Try to change in query/search.php line 50, from $this-xml = simplexml_load_file($xmlFN); to $this-xml = simplexml_load_file($xmlFN, NULL, LIBXML_NOENT); and see if it works better. If so I can add this to the release code. I might as well include it for all other XML parsing functions. note:

Re: [pmapper-users] search.xml problem: including external files

2009-09-03 Thread Paul Wickman
Bingo! That's splendid... Anyone who would like to see a nice P.Mapper application example can check this one out (all data comes from a PostGIS database on the same server). Armin, feel free to add it to the gallery if you like. http://www.mapfeeder.net/rmb Thanks, Paul Wickman North

[pmapper-users] search.xml problem: including external files

2009-09-02 Thread Paul Wickman
I have a number of P.Mapper (4.0.beta1) applications that have nearly identical search.xml files. Each has a few searchitem definitions particular to the application as well as some searchitem definitions common to all the applications. Rather than continue duplicating the those things

Re: [pmapper-users] SEARCH.XML FOR ORACLE LAYER

2009-05-06 Thread Armin Burger
Luis I unfortunately have no Oracle installation available so I usually cannot test the functioning of it. All tests made so far with oracle was on a server from a user that I could access via ftp. Since 1 year or more I have not any more tried this and I guess the connection is not any more

Re: [pmapper-users] SEARCH.XML FOR ORACLE LAYER

2009-05-06 Thread Thomas Raffin
Hi Luis, I've made few modification for querying Oracle layers but I haven't yet finished my tests. Try to replace in your-pmapper-dir/incphp/query.php, at the end of q_execAttributeQuery function : @$this-qLayer-queryByAttributes($fldName, $this-qStr, MS_MULTIPLE); with

Re: [pmapper-users] SEARCH.XML FOR ORACLE LAYER

2009-05-06 Thread Armin Burger
Thanks. It's added to SVN trunk and latest-stable. armin On 06/05/2009 11:03, Thomas Raffin wrote: Hi Luis, I've made few modification for querying Oracle layers but I haven't yet finished my tests. Try to replace in your-pmapper-dir/incphp/query.php, at the end of

Re: [pmapper-users] SEARCH.XML FOR ORACLE LAYER

2009-05-06 Thread Luis Orlando Melendez
Hi Thomas, Thanks a Lot for the piece of code, it solved the problem, now i have results. Armin, I also checked the script you sent me to understand how it works. Thaks a lot Thomas and Armin for your time. Muchas Gracias, Luis Orlando Melendez El Salvador, Centro America Thomas Raffin

[pmapper-users] search.xml

2009-02-16 Thread Kevin Edmundson
Hello List, I have a map file that contains multiple shape files for parcels that are separated by townships meaning that I have 9 shape files that comprise different geographical regions of one governmental entity. I would like to give the user the ability to have a search function that

Re: [pmapper-users] search.xml

2009-02-16 Thread Armin Burger
If you combine all 9 shape datasets in 1 tileindex layer insetad of 9 separate layers (see http://mapserver.org/optimization/tileindex.html) then the search should go through all single shapes and retrieve all parcels. I think that also the suggest definition works (with connectiontype=ms) with

Re: [pmapper-users] search.xml

2009-02-16 Thread Armin Burger
, February 16, 2009 1:37 PM To: Kevin Edmundson Cc: pmapper-users@lists.sourceforge.net Subject: Re: [pmapper-users] search.xml If you combine all 9 shape datasets in 1 tileindex layer insetad of 9 separate layers (see http://mapserver.org/optimization/tileindex.html) then the search should go

[pmapper-users] search.xml

2008-03-18 Thread Eugenio Trumpy
Hi to all! I've got a problem with a pmapper 3.1 project, in particular with search.xml files. I'm using a just one pmapper directory for 8 map in my project. I've prepared 8 config directory, inside: /var/www/pmapper/config/ for each directory i've php_config.php and search.xml, but i've got

Re: [pmapper-users] search.xml

2008-03-18 Thread Armin Burger
check the value of the session var 'PM_SEARCH_CONFIGFILE' and see if it corresponds with your config. armin On 18/03/2008 09:26, Eugenio Trumpy wrote: Hi to all! I've got a problem with a pmapper 3.1 project, in particular with search.xml files. I'm using a just one pmapper directory for

Re: [pmapper-users] search.xml and layer oraclespatial

2008-03-05 Thread Ivan Mincik
Hi, there is nice documentation here: http://svn.pmapper.net/trac/wiki/DocManualsearch On Wednesday 05 March 2008 09:32, Adriano Di Pasquale wrote: I'm a newbie. I'm using pmapper-3.1-beta4 I've added the following layer in the mapfile pmapper_demo.map:

[pmapper-users] search.xml

2008-02-21 Thread marcozani...@geosweb.it
Hi i'm working with pmapper 3.2 beta4, i'm using search.xml and i noted that if i write a accent word the search doesn't work, the form desappears from the layout. Example: field type=s name=FRAZIONE description=Località wildcard=2 i used alse the decoding for special characters: field type=s

[pmapper-users] search.xml

2008-01-16 Thread marcozani...@geosweb.it
Hi, i have installed MDB2 on PEAR so i haven't any more the error: Warning: Suggest::require_once(DB.php) [function.Suggest-require-once]: failed to open stream: No such file or directory in C:\ms4w\apps\pmapper\pmapper-3.2.beta4\incphp\query\suggest.php on line 126 but the search doesn't

Re: [pmapper-users] search.xml

2008-01-16 Thread Andre van Atten
januari 2008 15:13 Aan: pmapper-users@lists.sourceforge.net Onderwerp: [pmapper-users] search.xml Hi, i have installed MDB2 on PEAR so i haven't any more the error: Warning: Suggest::require_once(DB.php) [function.Suggest-require-once]: failed to open stream: No such file or directory in C

[pmapper-users] search.xml

2008-01-15 Thread marcozani...@geosweb.it
Hi, i'm working with pmapper3.2beta4 and i'm using postgis; i have a problem to use search.xml with type=suggest/option, i wrote in search.xml: searchitem name=civici description=civici_pg layer type=postgis name=civici field type=s name=descvia description=via wildcard=2

Re: [pmapper-users] search.xml

2008-01-15 Thread Alessandro Pasotti
Il martedì 15 gennaio 2008, [EMAIL PROTECTED] ha scritto: Hi, i'm working with pmapper3.2beta4 and i'm using postgis; i have a problem to use search.xml with type=suggest/option, i wrote in search.xml: searchitem name=civici description=civici_pg layer type=postgis name=civici

Re: [pmapper-users] search.xml????

2007-10-07 Thread Salvator*eL*arosa
Salvator*eL*arosa wrote: Hi at all, hi Armin, I am a problem, a big problem with search function! I'm unable to configuring file search.xml, when i use identify tool on the map it get me NO MATCH FOUND, why? My search.xml file: ?xml version='1.0'? !-- ?xml-stylesheet href=style.xsl

Re: [pmapper-users] search.xml????

2007-10-07 Thread Armin Burger
Salvator*eL*arosa wrote: it's possible to use the search function of the version 3.0 in 3.1 (stable)? no I don't know the way to using the search.xml. http://svn.pmapper.net/trac/wiki/UpgradeInfo#Attributesearch armin

[pmapper-users] search.xml????

2007-10-06 Thread Salvator*eL*arosa
Hi at all, hi Armin, I am a problem, a big problem with search function! I'm unable to configuring file search.xml, when i use identify tool on the map it get me NO MATCH FOUND, why? My search.xml file: ?xml version='1.0'? !-- ?xml-stylesheet href=style.xsl type=text/xsl ? -- searchlist

Re: [pmapper-users] search.xml????

2007-10-06 Thread Salvator*eL*arosa
Salvator*eL*arosa wrote: Hi at all, hi Armin, I am a problem, a big problem with search function! I'm unable to configuring file search.xml, when i use identify tool on the map it get me NO MATCH FOUND, why? ... :-))) Sorry! I am not a problem!

Re: [pmapper-users] Search.xml definition for a XY Layer

2007-09-07 Thread Armin Burger
Try to use layer type=xy.../ armin luis alfios wrote: Hi, I am loading a layer from a MS Access table, named tabla_ejemplo with a text field called nombre and the x and y fileds, using the following for this in the .map file: METADATA DESCRIPTION layer XY RESULT_FIELDS

[pmapper-users] Search.xml definition for a XY Layer

2007-09-07 Thread luis alfios
Hi, I am loading a layer from a MS Access table, named tabla_ejemplo with a text field called nombre and the x and y fileds, using the following for this in the .map file: METADATA DESCRIPTION layer XY RESULT_FIELDS nombre, direccion RESULT_HEADERS NAME, ADDRESS

[pmapper-users] search.xml with php4

2007-06-06 Thread cristian78
hi ... I have to make run the search with search.xml but with php4. I changed the functions to load the xml file because simplexml_load doesn't work in php4. And now i can load the xml file, and i have set to use this in the config file, but the search doesn't show. if somebody knows that it is