[pmapper-users] Search definition via XML file for DB

2012-01-23 Thread Andreas Douvalis
Sorry for my mistakes! Again my question:

Why in Search definition via XML we have to write dsn string? 

I think it is more convenient to construct dsn string from connection string of 
layer in map file.
In other case I have to maintain two config files 
(map file and search.xml). Am I right or I miss something?
--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


[pmapper-users] Search definition via XML file for DB

2012-01-23 Thread Andreas Douvalis
Hi!

Whi in Search definition via XML we have to write dsn string? I think it is 
more convenient to construct dsn string from connection string of layer in map 
file. Ii other case I have to maintain two config files (map file and 
search.xml). Am I right or I miss something?
--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] test_query_string.php

2012-01-23 Thread Armin Burger
the test for attribute search is now updated to work with both MS 5.6 
and 6, it's the link Thomas mentioned.

I guess in your case you need more the test for query by point (used in 
the identify function), check the following file and adapt map file 
name, layer name and x/y as needed:

http://svn.pmapper.net/trac/export/1249/trunk/utils/queryByPoint.php

armin

On 23/01/2012 15:33, Zlatomir Dimitrov wrote:
> Dear pmapper users,
>
> I cannot find nowhere the script "test_query_string.php" that have to
> be provided in the directory "util" !?
>
> Does anyone have it to send me?
>
> Thank You!!!
>

--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] search and activation of layer

2012-01-23 Thread Armin Burger
you can try the following:

add in your custom.js under your /config/your-config/ directory (usually 
'default') the following lines

$.extend(PM.Query,
{
 getQueryResult: function(qurl, params) {
 $.ajax({
 type: "POST",
 url: qurl,
 data: params,
 dataType: "json",
 success: function(response){
 var mode = response.mode;
 var queryResult = response.queryResult;

 if (mode != 'iquery') {
 $('#infoFrame').showv();
 PM.Query.writeQResult(queryResult, PM.infoWin);
 PM.ajaxIndicatorHide();

// NEW CODE
if (mode == 'search') {
 var grpName = queryResult[0][0]['name'];
 $('#ginput_' + grpName).attr('checked', true);
 PM.Toc.setlayers(grpName, true);
 }
// NEW CODE END

 } else {
 // Display result in DIV and postion it correctly
 PM.Query.showIQueryResults(queryResult);
 }
 },
 error: function (XMLHttpRequest, textStatus, errorThrown) {
 if (window.console) console.log(errorThrown);
 }
 });
 }
})

Note that this quick hack might not work in all cases and might have 
some inconsistencies left, so it might needed to be refined. One could 
e.g. trigger the click event for the checkbox, which very likely will 
cause a double reload of the map though, though...

If you want, add a ticket in the pmapper TRAC as new feature request, so 
the idea is not getting lost and it might get implemented in a cleaner 
way in the core code.

Armin

On 23/01/2012 14:10, i...@architekten.coop wrote:
> dear pmapper users
>
> i am using pmapper 4.1.0
> when i make a search e.g. in the pmapper-demodata
> for a river, but the layer river is not activated, it would be nice, when
> that layer river could be turned active by the search process.
> ist that possible with short piece of code ?
>
> thank you very much
>
> matthias moser switzerland
>
> --
> Try before you buy = See our experts in action!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-dev2
> ___
> pmapper-users mailing list
> pmapper-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pmapper-users
>

--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] test_query_string.php

2012-01-23 Thread Thomas RAFFIN
Hi,

The file is here (maybe not up-to-date) : 
http://svn.pmapper.net/trac/browser/trunk/utils/test_query_string.php?format=txt

Thomas

Le 23/01/2012 15:33, Zlatomir Dimitrov a écrit :
> Dear pmapper users,
>
> I cannot find nowhere the script "test_query_string.php" that have to
> be provided in the directory "util" !?
>
> Does anyone have it to send me?
>
> Thank You!!!
>

--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


[pmapper-users] test_query_string.php

2012-01-23 Thread Zlatomir Dimitrov
Dear pmapper users,

I cannot find nowhere the script "test_query_string.php" that have to 
be provided in the directory "util" !?

Does anyone have it to send me?

Thank You!!!

-- 
-
Mr Zlatomir Dimitrov
RS& GIS Expert
SAR Expert

Remote Sensing Applications Center (ReSAC)
61, Tzar Assen Str., fl. 3
1463, Sofia
Bulgaria
Tel: +359 2 980-0731
Tel: +359 2 981-2231
Fax: +359 2 981-8216
e-mail: zlatomir.dimit...@resac-bg.org
URL: www.resac-bg.org

--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


[pmapper-users] search and activation of layer

2012-01-23 Thread info
dear pmapper users

i am using pmapper 4.1.0
when i make a search e.g. in the pmapper-demodata
for a river, but the layer river is not activated, it would be nice, when
that layer river could be turned active by the search process.
ist that possible with short piece of code ?

thank you very much

matthias moser switzerland

--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users