pmapper-users Mailing List for p.mapper (Page 17)
Brought to you by:
arminburger
You can subscribe to this list here.
2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(41) |
Nov
(124) |
Dec
(80) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2007 |
Jan
(56) |
Feb
(51) |
Mar
(155) |
Apr
(58) |
May
(67) |
Jun
(83) |
Jul
(76) |
Aug
(32) |
Sep
(58) |
Oct
(113) |
Nov
(63) |
Dec
(83) |
2008 |
Jan
(31) |
Feb
(34) |
Mar
(69) |
Apr
(30) |
May
(87) |
Jun
(64) |
Jul
(47) |
Aug
(18) |
Sep
(35) |
Oct
(53) |
Nov
(37) |
Dec
(31) |
2009 |
Jan
(23) |
Feb
(40) |
Mar
(65) |
Apr
(54) |
May
(92) |
Jun
(55) |
Jul
(87) |
Aug
(27) |
Sep
(81) |
Oct
(32) |
Nov
(77) |
Dec
(51) |
2010 |
Jan
(44) |
Feb
(59) |
Mar
(77) |
Apr
(54) |
May
(36) |
Jun
(36) |
Jul
(52) |
Aug
(62) |
Sep
(68) |
Oct
(58) |
Nov
(72) |
Dec
(27) |
2011 |
Jan
(15) |
Feb
(42) |
Mar
(37) |
Apr
(55) |
May
(84) |
Jun
(27) |
Jul
(27) |
Aug
(42) |
Sep
(42) |
Oct
(18) |
Nov
(83) |
Dec
(71) |
2012 |
Jan
(50) |
Feb
(75) |
Mar
(79) |
Apr
(43) |
May
(18) |
Jun
(22) |
Jul
(20) |
Aug
(13) |
Sep
(26) |
Oct
(30) |
Nov
(21) |
Dec
(30) |
2013 |
Jan
(57) |
Feb
(63) |
Mar
(53) |
Apr
(40) |
May
(39) |
Jun
(16) |
Jul
(43) |
Aug
(16) |
Sep
(37) |
Oct
(64) |
Nov
(31) |
Dec
(7) |
2014 |
Jan
(14) |
Feb
(6) |
Mar
(2) |
Apr
(9) |
May
(1) |
Jun
(18) |
Jul
(95) |
Aug
(6) |
Sep
(25) |
Oct
(33) |
Nov
(29) |
Dec
(30) |
2015 |
Jan
(16) |
Feb
(3) |
Mar
(4) |
Apr
(9) |
May
(19) |
Jun
|
Jul
(11) |
Aug
(3) |
Sep
(9) |
Oct
(11) |
Nov
(4) |
Dec
(9) |
2016 |
Jan
(21) |
Feb
(9) |
Mar
(6) |
Apr
(13) |
May
(21) |
Jun
(4) |
Jul
(3) |
Aug
(2) |
Sep
|
Oct
|
Nov
|
Dec
(1) |
2017 |
Jan
(1) |
Feb
(4) |
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
(1) |
Aug
|
Sep
(1) |
Oct
|
Nov
(1) |
Dec
|
2018 |
Jan
(3) |
Feb
(4) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2019 |
Jan
|
Feb
(1) |
Mar
(1) |
Apr
(3) |
May
(1) |
Jun
|
Jul
|
Aug
(2) |
Sep
|
Oct
|
Nov
|
Dec
|
2020 |
Jan
(1) |
Feb
(1) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Raffaele M. <raf...@gm...> - 2014-07-11 06:49:30
|
2014-07-11 8:36 GMT+02:00 Siki Zoltan <si...@ag...>: > Dear Raffaele, > > have you tried Javascript debugging? For example in FireFocyou can use the > FireBug extension to add breakpoint to your Javascript code, you can see > Javascript error messages... > In the linkUrl I see a space after localhost: > > linkUrl = 'http:/' + '/localhost /sitejob/files/ > Is it a typo? > > Regards, > Zoltan Let's sort it out: I'am not tThe OP :-) That said, apart from blanks here and there, the OP error shows that PM.Custom is not a function hence custom.js it's not parsed at all. /r |
From: Thomas R. <tr...@si...> - 2014-07-11 06:48:50
|
And there was a bug with parenthesis and "AND", "OR" buttons. Le 11/07/2014 00:33, Pedro Venâncio a écrit : > Thank you very much Thomas! > > > > Best regards, > Pedro > > > > >> DE: Thomas RAFFIN >> >> Concerning "accent insensitive search", I don't know how to do this. >> >> I've just commited the correction, and added the date type. It > requires the new directory: plugins/common/jquery.ui >> bye >> >> Thomas > > -- Thomas RAFFIN Chef de Projet Internet tr...@si... <mailto:tr...@si...> Sirap <http://sirap.fr> Tel : 04 75 72 84 10 Fax : 04 75 70 07 98 Rue Paul Louis Héroult - BP 253 26106 Romans cedex |
From: Siki Z. <si...@ag...> - 2014-07-11 06:36:38
|
Dear Raffaele, have you tried Javascript debugging? For example in FireFocyou can use the FireBug extension to add breakpoint to your Javascript code, you can see Javascript error messages... In the linkUrl I see a space after localhost: linkUrl = 'http:/' + '/localhost /sitejob/files/ Is it a typo? Regards, Zoltan On Fri, 11 Jul 2014, Raffaele Morelli wrote: > 2014-07-11 7:23 GMT+02:00 Fernando <nan...@ho...>: > There is the code again: > > ... > > METADATA > > "RESULT_FIELDS" "id, pdf_files" > > "RESULT_HEADERS" "ID, PDF FILES" > > "RESULT_HYPERLINK" "pdf_files||Link to pdf detail" > > ... > > > > $.extend(PM.Custom, > { > // Sample Hyperlink function for result window > openHyperlink: function(layer, fldName, fldValue) { > switch(layer) { > case 'shp_data': > //if (fldName == 'CITY_NAME') { > var linkUrl = 'http:/' + '/localhost /sitejob/files/' > + fldValue; > window.open(linkUrl, 'wikiquery'); > //this.openHyperlinkDialog(linkUrl); > //} > break; > > default: > alert ('See function openHyperlink in custom.js: ' + layer > + ' - ' + fldName + ' - ' + fldValue); > } > }, > > > Perhaps the error is the non-existence of Custom.js file in the > "plainlayout3" folder, which I copied from the "default" folder? My guess is that your custom.js is not being loaded. If using chrome, use CTRL+Shift+i to start chrome inspector˙˙ and check in the sources tab. /r PS custom.js should live in your config dir. ------------------------------------------------------------------------------ Open source business process management suite built on Java and Eclipse Turn processes into business applications with Bonita BPM Community Edition Quickly connect people, data, and systems into organized workflows Winner of BOSSIE, CODIE, OW2 and Gartner awards http://p.sf.net/sfu/Bonitasoft _______________________________________________ pmapper-users mailing list pma...@li... https://lists.sourceforge.net/lists/listinfo/pmapper-users |
From: Raffaele M. <raf...@gm...> - 2014-07-11 06:02:07
|
2014-07-11 7:51 GMT+02:00 nando_gcia <nan...@ho...>: > Raffaele, this is my sources: > > < > http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/file/n4025515/sources_chrome.jpg > > > > ... then you search |
From: nando_gcia <nan...@ho...> - 2014-07-11 05:51:42
|
Raffaele, this is my sources: <http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/file/n4025515/sources_chrome.jpg> -- View this message in context: http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/pmapper-users-PM-Custom-open-Hyperlink-is-not-a-function-tp4025508p4025515.html Sent from the pmapper-users -- p.mapper users mailing list mailing list archive at Nabble.com. |
From: Raffaele M. <raf...@gm...> - 2014-07-11 05:32:53
|
2014-07-11 7:23 GMT+02:00 Fernando <nan...@ho...>: > There is the code again: > > ... > > METADATA > > "RESULT_FIELDS" "id, pdf_files" > > "RESULT_HEADERS" "ID, PDF FILES" > > "RESULT_HYPERLINK" "pdf_files||Link to pdf detail" > > ... > > > > $.extend(PM.Custom, > { > // Sample Hyperlink function for result window > openHyperlink: function(layer, fldName, fldValue) { > switch(layer) { > case 'shp_data': > //if (fldName == 'CITY_NAME') { > var linkUrl = 'http:/' + '/localhost /sitejob/files/' > + fldValue; > window.open(linkUrl, 'wikiquery'); > //this.openHyperlinkDialog(linkUrl); > //} > break; > > default: > alert ('See function openHyperlink in custom.js: ' + layer > + ' - ' + fldName + ' - ' + fldValue); > } > }, > > > Perhaps the error is the non-existence of Custom.js file in the > "plainlayout3" folder, which I copied from the "default" folder? My guess is that your custom.js is not being loaded. If using chrome, use CTRL+Shift+i to start chrome inspector and check in the sources tab. /r PS custom.js should live in your config dir. |
From: Fernando <nan...@ho...> - 2014-07-11 05:23:12
|
There is the code again: ... METADATA "RESULT_FIELDS" "id, pdf_files" "RESULT_HEADERS" "ID, PDF FILES" "RESULT_HYPERLINK" "pdf_files||Link to pdf detail" ... $.extend(PM.Custom, { // Sample Hyperlink function for result window openHyperlink: function(layer, fldName, fldValue) { switch(layer) { case 'shp_data': //if (fldName == 'CITY_NAME') { var linkUrl = 'http:/' + '/localhost /sitejob/files/' + fldValue; window.open(linkUrl, 'wikiquery'); //this.openHyperlinkDialog(linkUrl); //} break; default: alert ('See function openHyperlink in custom.js: ' + layer + ' - ' + fldName + ' - ' + fldValue); } }, Perhaps the error is the non-existence of Custom.js file in the "plainlayout3" folder, which I copied from the "default" folder? > Date: Thu, 10 Jul 2014 14:53:26 +0200 > From: si...@ag... > To: nan...@ho... > CC: pma...@li... > Subject: Re: [pmapper-users] PM.Custom.open Hyperlink is not a function > > Dear Fernando, > > there is an extra space $. extend(.... in custom.js > = > > change to $.extend(... > > Best regards, > Zoltan > > On Thu, 10 Jul 2014, Fernando wrote: > > > Hello, I have installed mapserver 5.6, pmapper 4.3.2 and use alternative template "plainlayout3", I'm not using the default template. I have in the attribute table of a shp file a column called "pdf_files", in which I keep the name of the pdf file. > > > > In the map file I have placed the following: > > > > ... > > METADATA > > "RESULT_FIELDS" "id, pdf_files" > > "RESULT_HEADERS" "ID, PDF FILES" > > "RESULT_HYPERLINK" "pdf_files | | Link to pdf detail" > > ... > > > > And finally I have to modify the file custom.js. In the folder "pmapper-4.3.2\config\plainlayout3" this file does not exist, but if in "pmapper-4.3.2\config\default" yes. I have copied it to the folder plainlayout3 and changed as follows: > > > > $. extend (PM.Custom, > > { > > / / Sample Hyperlink function for result window > > openHyperlink: function (layer, fldName, fldValue) { > > switch (layer) { > > case 'shp_data': > > / / if (fldName == 'CITY_NAME') { > > linkUrl var = 'http:/' + '/ localhost / sitejob / files /' + fldValue; > > window.open (linkUrl, 'wikiquery'); > > / / this.openHyperlinkDialog (linkUrl); > > / /} > > break; > > > > default: > > alert ('See function in Custom.js openHyperlink:' + layer + '-' + fldName + '-' + fldValue); > > } > > }, > > > > When I use the Identify function, the result table is opened and pdf_files column show the "Link to pdf detail" text appears with the code "javascript: PM.Custom.openHyperlink ('shp_data', 'pdf_files',' data1.pdf ')" but when I click on it Mozilla Firefox console displays the following error: > > > > TypeError: PM.Custom.openHyperlink is not a function > > > > Please, how I can fix it? Thanks a lot. > > > > > > > > ------------------------------------------------------------------------------ > > Open source business process management suite built on Java and Eclipse > > Turn processes into business applications with Bonita BPM Community Edition > > Quickly connect people, data, and systems into organized workflows > > Winner of BOSSIE, CODIE, OW2 and Gartner awards > > http://p.sf.net/sfu/Bonitasoft > > _______________________________________________ > > pmapper-users mailing list > > pma...@li... > > https://lists.sourceforge.net/lists/listinfo/pmapper-users > > |
From: Pedro V. <ped...@ya...> - 2014-07-10 22:33:56
|
Thank you very much Thomas! Best regards, Pedro > DE: Thomas RAFFIN > >Concerning "accent insensitive search", I don't know how to do this. > >I've just commited the correction, and added the date type. It requires the new directory: plugins/common/jquery.ui > >bye > >Thomas |
From: Fernando <nan...@ho...> - 2014-07-10 16:52:56
|
No Zoltan, there is no blanks, it was a mistake that has entered the google translator, thanks. > Date: Thu, 10 Jul 2014 14:53:26 +0200 > From: si...@ag... > To: nan...@ho... > CC: pma...@li... > Subject: Re: [pmapper-users] PM.Custom.open Hyperlink is not a function > > Dear Fernando, > > there is an extra space $. extend(.... in custom.js > = > > change to $.extend(... > > Best regards, > Zoltan > > On Thu, 10 Jul 2014, Fernando wrote: > > > Hello, I have installed mapserver 5.6, pmapper 4.3.2 and use alternative template "plainlayout3", I'm not using the default template. I have in the attribute table of a shp file a column called "pdf_files", in which I keep the name of the pdf file. > > > > In the map file I have placed the following: > > > > ... > > METADATA > > "RESULT_FIELDS" "id, pdf_files" > > "RESULT_HEADERS" "ID, PDF FILES" > > "RESULT_HYPERLINK" "pdf_files | | Link to pdf detail" > > ... > > > > And finally I have to modify the file custom.js. In the folder "pmapper-4.3.2\config\plainlayout3" this file does not exist, but if in "pmapper-4.3.2\config\default" yes. I have copied it to the folder plainlayout3 and changed as follows: > > > > $. extend (PM.Custom, > > { > > / / Sample Hyperlink function for result window > > openHyperlink: function (layer, fldName, fldValue) { > > switch (layer) { > > case 'shp_data': > > / / if (fldName == 'CITY_NAME') { > > linkUrl var = 'http:/' + '/ localhost / sitejob / files /' + fldValue; > > window.open (linkUrl, 'wikiquery'); > > / / this.openHyperlinkDialog (linkUrl); > > / /} > > break; > > > > default: > > alert ('See function in Custom.js openHyperlink:' + layer + '-' + fldName + '-' + fldValue); > > } > > }, > > > > When I use the Identify function, the result table is opened and pdf_files column show the "Link to pdf detail" text appears with the code "javascript: PM.Custom.openHyperlink ('shp_data', 'pdf_files',' data1.pdf ')" but when I click on it Mozilla Firefox console displays the following error: > > > > TypeError: PM.Custom.openHyperlink is not a function > > > > Please, how I can fix it? Thanks a lot. > > > > > > > > ------------------------------------------------------------------------------ > > Open source business process management suite built on Java and Eclipse > > Turn processes into business applications with Bonita BPM Community Edition > > Quickly connect people, data, and systems into organized workflows > > Winner of BOSSIE, CODIE, OW2 and Gartner awards > > http://p.sf.net/sfu/Bonitasoft > > _______________________________________________ > > pmapper-users mailing list > > pma...@li... > > https://lists.sourceforge.net/lists/listinfo/pmapper-users > > |
From: Siki Z. <si...@ag...> - 2014-07-10 13:10:02
|
Dear Fernando, there is an extra space $. extend(.... in custom.js = change to $.extend(... Best regards, Zoltan On Thu, 10 Jul 2014, Fernando wrote: > Hello, I have installed mapserver 5.6, pmapper 4.3.2 and use alternative template "plainlayout3", I'm not using the default template. I have in the attribute table of a shp file a column called "pdf_files", in which I keep the name of the pdf file. > > In the map file I have placed the following: > > ... > METADATA > "RESULT_FIELDS" "id, pdf_files" > "RESULT_HEADERS" "ID, PDF FILES" > "RESULT_HYPERLINK" "pdf_files | | Link to pdf detail" > ... > > And finally I have to modify the file custom.js. In the folder "pmapper-4.3.2\config\plainlayout3" this file does not exist, but if in "pmapper-4.3.2\config\default" yes. I have copied it to the folder plainlayout3 and changed as follows: > > $. extend (PM.Custom, > { > / / Sample Hyperlink function for result window > openHyperlink: function (layer, fldName, fldValue) { > switch (layer) { > case 'shp_data': > / / if (fldName == 'CITY_NAME') { > linkUrl var = 'http:/' + '/ localhost / sitejob / files /' + fldValue; > window.open (linkUrl, 'wikiquery'); > / / this.openHyperlinkDialog (linkUrl); > / /} > break; > > default: > alert ('See function in Custom.js openHyperlink:' + layer + '-' + fldName + '-' + fldValue); > } > }, > > When I use the Identify function, the result table is opened and pdf_files column show the "Link to pdf detail" text appears with the code "javascript: PM.Custom.openHyperlink ('shp_data', 'pdf_files',' data1.pdf ')" but when I click on it Mozilla Firefox console displays the following error: > > TypeError: PM.Custom.openHyperlink is not a function > > Please, how I can fix it? Thanks a lot. > > > > ------------------------------------------------------------------------------ > Open source business process management suite built on Java and Eclipse > Turn processes into business applications with Bonita BPM Community Edition > Quickly connect people, data, and systems into organized workflows > Winner of BOSSIE, CODIE, OW2 and Gartner awards > http://p.sf.net/sfu/Bonitasoft > _______________________________________________ > pmapper-users mailing list > pma...@li... > https://lists.sourceforge.net/lists/listinfo/pmapper-users > |
From: Thomas R. <tr...@si...> - 2014-07-10 12:36:02
|
Hi, There are "/ /" instead of "//" in the code you send. I think this could create js errors in your browser, no? Le 10/07/2014 13:58, Fernando a écrit : > Hello, I have installed mapserver 5.6, pmapper 4.3.2 and use alternative template "plainlayout3", I'm not using the default template. I have in the attribute table of a shp file a column called "pdf_files", in which I keep the name of the pdf file. > > In the map file I have placed the following: > > ... > METADATA > "RESULT_FIELDS" "id, pdf_files" > "RESULT_HEADERS" "ID, PDF FILES" > "RESULT_HYPERLINK" "pdf_files | | Link to pdf detail" > ... > > And finally I have to modify the file custom.js. In the folder "pmapper-4.3.2\config\plainlayout3" this file does not exist, but if in "pmapper-4.3.2\config\default" yes. I have copied it to the folder plainlayout3 and changed as follows: > > $. extend (PM.Custom, > { > / / Sample Hyperlink function for result window > openHyperlink: function (layer, fldName, fldValue) { > switch (layer) { > case 'shp_data': > / / if (fldName == 'CITY_NAME') { > linkUrl var = 'http:/' + '/ localhost / sitejob / files /' + fldValue; > window.open (linkUrl, 'wikiquery'); > / / this.openHyperlinkDialog (linkUrl); > / /} > break; > > default: > alert ('See function in Custom.js openHyperlink:' + layer + '-' + fldName + '-' + fldValue); > } > }, > > When I use the Identify function, the result table is opened and pdf_files column show the "Link to pdf detail" text appears with the code "javascript: PM.Custom.openHyperlink ('shp_data', 'pdf_files',' data1.pdf ')" but when I click on it Mozilla Firefox console displays the following error: > > TypeError: PM.Custom.openHyperlink is not a function > > Please, how I can fix it? Thanks a lot. > > > > ------------------------------------------------------------------------------ > Open source business process management suite built on Java and Eclipse > Turn processes into business applications with Bonita BPM Community Edition > Quickly connect people, data, and systems into organized workflows > Winner of BOSSIE, CODIE, OW2 and Gartner awards > http://p.sf.net/sfu/Bonitasoft > _______________________________________________ > pmapper-users mailing list > pma...@li... > https://lists.sourceforge.net/lists/listinfo/pmapper-users > > -- Thomas RAFFIN Chef de Projet Internet tr...@si... <mailto:tr...@si...> Sirap <http://sirap.fr> Tel : 04 75 72 84 10 Fax : 04 75 70 07 98 Rue Paul Louis Héroult - BP 253 26106 Romans cedex |
From: Fernando <nan...@ho...> - 2014-07-10 11:58:25
|
Hello, I have installed mapserver 5.6, pmapper 4.3.2 and use alternative template "plainlayout3", I'm not using the default template. I have in the attribute table of a shp file a column called "pdf_files", in which I keep the name of the pdf file. In the map file I have placed the following: ... METADATA "RESULT_FIELDS" "id, pdf_files" "RESULT_HEADERS" "ID, PDF FILES" "RESULT_HYPERLINK" "pdf_files | | Link to pdf detail" ... And finally I have to modify the file custom.js. In the folder "pmapper-4.3.2\config\plainlayout3" this file does not exist, but if in "pmapper-4.3.2\config\default" yes. I have copied it to the folder plainlayout3 and changed as follows: $. extend (PM.Custom, { / / Sample Hyperlink function for result window openHyperlink: function (layer, fldName, fldValue) { switch (layer) { case 'shp_data': / / if (fldName == 'CITY_NAME') { linkUrl var = 'http:/' + '/ localhost / sitejob / files /' + fldValue; window.open (linkUrl, 'wikiquery'); / / this.openHyperlinkDialog (linkUrl); / /} break; default: alert ('See function in Custom.js openHyperlink:' + layer + '-' + fldName + '-' + fldValue); } }, When I use the Identify function, the result table is opened and pdf_files column show the "Link to pdf detail" text appears with the code "javascript: PM.Custom.openHyperlink ('shp_data', 'pdf_files',' data1.pdf ')" but when I click on it Mozilla Firefox console displays the following error: TypeError: PM.Custom.openHyperlink is not a function Please, how I can fix it? Thanks a lot. |
From: Thomas R. <tr...@si...> - 2014-07-10 10:49:00
|
Concerning "accent insensitive search", I don't know how to do this. I've just commited the correction, and added the date type. It requires the new directory: plugins/common/jquery.ui bye Thomas Le 10/07/2014 12:39, Pedro Venâncio a écrit : > Hi Thomas, > > The "case insensitive" is already implemented, but not the "accent insensitive". That is, a search with "abílio" is different of "abilio", and it would be great if they could be considered equals. > > > Thanks Thomas! > > Best regards, > Pedro > > > > > > > ----- Mensagem original ----- >> DE: Thomas RAFFIN >> >> I will commit the insensitive search too (I thought it was already done)... >> >> Le 10/07/2014 12:12, Pedro Venâncio a écrit : >>> Hi Thomas, >>> >>> Yes, it solves the problem! >>> >>> >>> I think you can correct it in the code. >>> >>> Just one more question, do you see any way to become a search "accent >> insensitive"? Something like "ilike" for case insensitive? >>> >>> Thank you very much! >>> >>> Best regards, >>> Pedro >>> >>> >>> >>> >>> >>> ----- Mensagem original ----- >>>> DE: Thomas RAFFIN >>>> >>>> hi, >>>> >>>> Try with this line please: query = query.replace(/%/g,'%25'); >>>> >>>> If it is OK for you I will correct it in pmapper. >>>> Thomas > -- Thomas RAFFIN Chef de Projet Internet tr...@si... <mailto:tr...@si...> Sirap <http://sirap.fr> Tel : 04 75 72 84 10 Fax : 04 75 70 07 98 Rue Paul Louis Héroult - BP 253 26106 Romans cedex |
From: Pedro V. <ped...@ya...> - 2014-07-10 10:39:24
|
Hi Thomas, The "case insensitive" is already implemented, but not the "accent insensitive". That is, a search with "abílio" is different of "abilio", and it would be great if they could be considered equals. Thanks Thomas! Best regards, Pedro ----- Mensagem original ----- > DE: Thomas RAFFIN > > I will commit the insensitive search too (I thought it was already done)... > > Le 10/07/2014 12:12, Pedro Venâncio a écrit : >> Hi Thomas, >> >> Yes, it solves the problem! >> >> >> I think you can correct it in the code. >> >> Just one more question, do you see any way to become a search "accent > insensitive"? Something like "ilike" for case insensitive? >> >> >> Thank you very much! >> >> Best regards, >> Pedro >> >> >> >> >> >> ----- Mensagem original ----- >>> DE: Thomas RAFFIN >>> >>> hi, >>> >>> Try with this line please: query = query.replace(/%/g,'%25'); >>> >>> If it is OK for you I will correct it in pmapper. > >>> >>> Thomas |
From: Thomas R. <tr...@si...> - 2014-07-10 10:30:59
|
I will commit the insensitive search too (I thought it was already done)... Le 10/07/2014 12:12, Pedro Venâncio a écrit : > Hi Thomas, > > Yes, it solves the problem! > > > I think you can correct it in the code. > > Just one more question, do you see any way to become a search "accent insensitive"? Something like "ilike" for case insensitive? > > > Thank you very much! > > Best regards, > Pedro > > > > > > ----- Mensagem original ----- >> DE: Thomas RAFFIN >> >> hi, >> >> Try with this line please: query = query.replace(/%/g,'%25'); >> >> If it is OK for you I will correct it in pmapper. >> >> Thomas > > -- Thomas RAFFIN Chef de Projet Internet tr...@si... <mailto:tr...@si...> Sirap <http://sirap.fr> Tel : 04 75 72 84 10 Fax : 04 75 70 07 98 Rue Paul Louis Héroult - BP 253 26106 Romans cedex |
From: Pedro V. <ped...@ya...> - 2014-07-10 10:12:08
|
Hi Thomas, Yes, it solves the problem! I think you can correct it in the code. Just one more question, do you see any way to become a search "accent insensitive"? Something like "ilike" for case insensitive? Thank you very much! Best regards, Pedro ----- Mensagem original ----- > DE: Thomas RAFFIN > > hi, > > Try with this line please: query = query.replace(/%/g,'%25'); > > If it is OK for you I will correct it in pmapper. > > Thomas |
From: Thomas R. <tr...@si...> - 2014-07-10 08:15:18
|
hi, Try with this line please: query = query.replace(/%/g,'%25'); If it is OK for you I will correct it in pmapper. Thomas Le 10/07/2014 01:11, Pedro Venâncio a écrit : > Hi, > > I found something strange in QueryEditor plugin. By doing a search like this > > [nome_1] ILIKE '%pedro%' > OR > [nome_2] ILIKE '%campos%' > > it does not give the expected result of the second clause. It seems to me that there may be a bug. > > The query POST is (firebug): > > &operation=query&layername=tipo&layerType=shape&query=[nome_1] ILIKE '%25pedro%' OR [nome_2] ILIKE '%campos%' > > and the pm_debug.log: > > [09-Jul-2014 23:17:25] P.MAPPER debug info > Parameters for REQUEST array > file: query.php->q_execAttributeQuery > > Array > ( > [operation] => query > [layername] => tipo > [layerType] => postgis > [query] => [nome_1] ILIKE '%pedro%' > OR > [nome_2] ILIKE 'Êmpos%' > [externalSearchDefinition] => 1 > [mode] => search > [layerName] => tipo > [firstFld] => nome_1 > [qStr] => nome_1 ~* 'pedro' OR nome_2 ~* '^Êmpos' > ) > > [09-Jul-2014 23:17:25] P.MAPPER debug info > P.MAPPER-DEBUG: squery.php/dumpPGQueryResults() - SQL Cmd: > SELECT id, > ST_xmin(box3d(the_geom)), > ST_ymin(box3d(the_geom)), > ST_xmax(box3d(the_geom)), > ST_ymax(box3d(the_geom)), > id,tipo,nome_1,nome_2,nome_3,comprada,observ > FROM edificios.casas > WHERE nome_1 ~* 'pedro' OR nome_2 ~* '^Êmpos' > LIMIT 301 > > > That is, it replaces "%campos%" by "Êmpos%". In fact, it replaces the "%ca" by "Ê" and "%ce" by "Î". And this is because this line on queryeditor.js > > query = query.replace('%','%25'); > > apparently only works for the first "%" of the first clause of WHERE. In the second clause, it does not replace the "%" by "%25", which will not prevent "%ca" to be replaced by "Ê". > > > Anyone confirms? > > > Thank you very much. > > > Best regards, > Pedro > > ------------------------------------------------------------------------------ > Open source business process management suite built on Java and Eclipse > Turn processes into business applications with Bonita BPM Community Edition > Quickly connect people, data, and systems into organized workflows > Winner of BOSSIE, CODIE, OW2 and Gartner awards > http://p.sf.net/sfu/Bonitasoft > _______________________________________________ > pmapper-users mailing list > pma...@li... > https://lists.sourceforge.net/lists/listinfo/pmapper-users > > -- Thomas RAFFIN Chef de Projet Internet tr...@si... <mailto:tr...@si...> Sirap <http://sirap.fr> Tel : 04 75 72 84 10 Fax : 04 75 70 07 98 Rue Paul Louis Héroult - BP 253 26106 Romans cedex |
From: Pedro V. <ped...@ya...> - 2014-07-09 23:11:27
|
Hi, I found something strange in QueryEditor plugin. By doing a search like this [nome_1] ILIKE '%pedro%' OR [nome_2] ILIKE '%campos%' it does not give the expected result of the second clause. It seems to me that there may be a bug. The query POST is (firebug): &operation=query&layername=tipo&layerType=shape&query=[nome_1] ILIKE '%25pedro%' OR [nome_2] ILIKE '%campos%' and the pm_debug.log: [09-Jul-2014 23:17:25] P.MAPPER debug info Parameters for REQUEST array file: query.php->q_execAttributeQuery Array ( [operation] => query [layername] => tipo [layerType] => postgis [query] => [nome_1] ILIKE '%pedro%' OR [nome_2] ILIKE 'Êmpos%' [externalSearchDefinition] => 1 [mode] => search [layerName] => tipo [firstFld] => nome_1 [qStr] => nome_1 ~* 'pedro' OR nome_2 ~* '^Êmpos' ) [09-Jul-2014 23:17:25] P.MAPPER debug info P.MAPPER-DEBUG: squery.php/dumpPGQueryResults() - SQL Cmd: SELECT id, ST_xmin(box3d(the_geom)), ST_ymin(box3d(the_geom)), ST_xmax(box3d(the_geom)), ST_ymax(box3d(the_geom)), id,tipo,nome_1,nome_2,nome_3,comprada,observ FROM edificios.casas WHERE nome_1 ~* 'pedro' OR nome_2 ~* '^Êmpos' LIMIT 301 That is, it replaces "%campos%" by "Êmpos%". In fact, it replaces the "%ca" by "Ê" and "%ce" by "Î". And this is because this line on queryeditor.js query = query.replace('%','%25'); apparently only works for the first "%" of the first clause of WHERE. In the second clause, it does not replace the "%" by "%25", which will not prevent "%ca" to be replaced by "Ê". Anyone confirms? Thank you very much. Best regards, Pedro |
From: Pedro V. <ped...@ya...> - 2014-07-08 22:14:17
|
Sorry, I forgot to attach the image. Here it is. Best regards, Pedro ----- Mensagem original ----- > DE: Pedro > Assunto: Search several database columns at the same time with the same search field > > Hi, > > I'm trying to create a search of type suggest, that search multiple columns > of a PostGIS layer, at the same time. > > For example, > > col1 | col2 > a | b > c | d > e | f > ... > > > I tried this: > > <searchitem name="n_casas" description="Casas"> > <layer type="postgis" name="tipo"> > <field type="s" name="col1" > alias="nomes" description="Nome" wildcard="0" > operator="OR"> > <definition type="suggest" > connectiontype="db" minlength="0" sort="asc"> > <dsn > encoding="UTF-8">pgsql://xxx:xxx@localhost/cartografia</dsn> > <sql>SELECT DISTINCT col1 FROM xxx.casas WHERE col1 ~* > '[search]' ORDER BY col1</sql> > </definition> > </field> > <field type="s" name="col2" > alias="nomes" operator="OR"> > <definition type="suggest" > connectiontype="db" minlength="0" sort="asc"> > <dsn > encoding="UTF-8">pgsql://xxx:xxx@localhost/cartografia</dsn> > <sql>SELECT DISTINCT col2 FROM xxx.casas WHERE col2 ~* > '[search]' ORDER BY col2</sql> > </definition> > </field> > </layer> > </searchitem> > > > This way I can search and get the correct result. However, two fields are > displayed to do the search (image attached), and I want to just get one field, > where it does the search for the values of the two columns (col1 and col2). > > Any suggestions? > > Thank you very much! > > Best regards, > Pedro > |
From: Pedro V. <ped...@ya...> - 2014-07-08 22:11:03
|
Hi, I'm trying to create a search of type suggest, that search multiple columns of a PostGIS layer, at the same time. For example, col1 | col2 a | b c | d e | f ... I tried this: <searchitem name="n_casas" description="Casas"> <layer type="postgis" name="tipo"> <field type="s" name="col1" alias="nomes" description="Nome" wildcard="0" operator="OR"> <definition type="suggest" connectiontype="db" minlength="0" sort="asc"> <dsn encoding="UTF-8">pgsql://xxx:xxx@localhost/cartografia</dsn> <sql>SELECT DISTINCT col1 FROM xxx.casas WHERE col1 ~* '[search]' ORDER BY col1</sql> </definition> </field> <field type="s" name="col2" alias="nomes" operator="OR"> <definition type="suggest" connectiontype="db" minlength="0" sort="asc"> <dsn encoding="UTF-8">pgsql://xxx:xxx@localhost/cartografia</dsn> <sql>SELECT DISTINCT col2 FROM xxx.casas WHERE col2 ~* '[search]' ORDER BY col2</sql> </definition> </field> </layer> </searchitem> This way I can search and get the correct result. However, two fields are displayed to do the search (image attached), and I want to just get one field, where it does the search for the values of the two columns (col1 and col2). Any suggestions? Thank you very much! Best regards, Pedro |
From: <gis...@ar...> - 2014-06-26 09:38:04
|
Hello, my intention is this: when a map is displayed, I press a key - i.e. "m" for marker or 'Markierung' or 'Mitte' - and then there will be a cross or something else painter over the exiting map. If the map is refreshed, I have to press 'm' again, that doesn't matter. I realized this in the old p.mapper in zoombox.js via // Bildmitte markieren function drawMarker() { parent.mapFrame.jg.setColor('#0000ff'); parent.mapFrame.jg.setStroke(lineWidth); hbreite = parent.mapFrame.mapW/2; hhoehe = parent.mapFrame.mapH/2; xfrom = hbreite; yfrom = hhoehe-20; xto = hbreite; yto = hhoehe+20; parent.mapFrame.jg.drawLine(xfrom,yfrom,xto,yto); xfrom = hbreite-20; yfrom = hhoehe; xto = hbreite+20; yto = hhoehe; parent.mapFrame.jg.drawLine(xfrom,yfrom,xto,yto); parent.mapFrame.jg.paint(); } This function was triggered by the kp function: ... case 109: // m-Taste drawMarker(); // Mitte einzeichnen break; ... I found the corresponding function in the actual pmapper for the keypress, but how to draw? Can anyone give me a hint or solution? Thanks a lot i.a., Guido |
From: harpinder s. <har...@re...> - 2014-06-26 06:53:41
|
I have a point shapefile and have three objects to attach to each point (two images and one pdf). I have created three attributes in the shapefile with their locations. how do I configure the custom.js file for the above objective as it is configured for only one hyperlink ? Kindly suggest some solution . regards, harpinder Singh |
From: Suman <an...@ya...> - 2014-06-23 05:11:43
|
yaa I know but there may be people who prefer using pmapper with geoserver. Geoserver has a more friendly administrator interface, with mapserver it all comes down to edit the mapfile. and i think for people who don't have any programming skills they dont want to edit mapfile, they love to use UI based application like geoserver to handle layers in map. this is my opinion and i faced some of these problem so.. regards, suman -- View this message in context: http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/Pmapper5-with-Geoserver-tp4025495p4025497.html Sent from the pmapper-users -- p.mapper users mailing list mailing list archive at Nabble.com. |
From: gioza <al...@al...> - 2014-06-20 12:04:13
|
I think you can't. Pmapper is developed around mapserver -- View this message in context: http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/Pmapper5-with-Geoserver-tp4025495p4025496.html Sent from the pmapper-users -- p.mapper users mailing list mailing list archive at Nabble.com. |
From: Suman <an...@ya...> - 2014-06-17 06:22:27
|
Dear all pmapper users and Armin, I want to implement pmapper5 with geoserver. how much it will be effective or how many are interested on this topic? And also do i have permission to do that? i am studying from last 1 month on this. Any idea and suggestion please.... Regards, suman -- View this message in context: http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/Pmapper5-with-Geoserver-tp4025495.html Sent from the pmapper-users -- p.mapper users mailing list mailing list archive at Nabble.com. |