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
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
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
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
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
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
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
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
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
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
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
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
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
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:
-
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
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:
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:
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
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
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
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
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).
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
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
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
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
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
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
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
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 .
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
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
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
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
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
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:
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
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
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
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
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
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
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
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
, 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
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
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
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:
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
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
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
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
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
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
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
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
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!
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
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
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
60 matches
Mail list logo