<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<STYLE type=text/css>DIV {
        MARGIN: 0px
}
</STYLE>
<META content="MSHTML 6.00.6000.16544" name=GENERATOR></HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>Hi</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>well, you should already have the layer id before triggering
the query.</FONT></DIV>
<DIV><FONT size=2>if the layers has not been specified, then the query is done
on a loop on all layers I believe.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>ClientQuery generate the request object and set the list of
layers to query. ServerQuery receive the list and do a foreach on it and call
ServerMapquery on all layers.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>The result for all queries is then formated via the
ServerTable plugin, and one table object is generated for all query
($table->tableId = $layerId;)</FONT></DIV>
<DIV><FONT size=2>The tables object are then returned to client side via
$queryResult->tableGroup->tables</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>So practicaly, on the client side, get the tableGroup object
and loop on its tables and get the table id, you will know which layer returned
something.</FONT></DIV>
<DIV><FONT size=2>(though I do believe even empty result table are returned so I
suppose you also need to look in the table object if it contain something or
not)</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>regards</FONT></DIV>
<DIV><FONT size=2>Oliver</FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=goutosig@yahoo.fr href="mailto:goutosig@yahoo.fr">guillaume
champlong</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=cartoweb-users@lists.maptools.org
href="mailto:cartoweb-users@lists.maptools.org">carto web</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, December 03, 2007 10:41
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [Cartoweb-users] get layer
name</DIV>
<DIV><BR></DIV>
<DIV
style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">
<DIV>
<STYLE type=text/css><!-- DIV {margin:0px;}--></STYLE>
<DIV
style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman,new york,times,serif">
<DIV>Hi all,<BR><BR>I am customizing the the way to use the returned atributes
from a queryByPoint, and I would like to know how to get the name of the layer
I just clicked, for use in my tables.ajax.js
file.<BR><BR><BR>Thanks.<BR>G</DIV></DIV></DIV></DIV><BR>
<HR SIZE=1>
Ne gardez plus qu'une seule adresse mail ! <A
href="http://fr.rd.yahoo.com/mail/mail_taglines/trueswitch/*http://www.trueswitch.com/yahoo-fr/">Copiez
vos mails</A> vers Yahoo! Mail
<P>
<HR>
<P></P>_______________________________________________<BR>Cartoweb-users
mailing
list<BR>Cartoweb-users@lists.maptools.org<BR>http://lists.maptools.org/mailman/listinfo/cartoweb-users<BR></BLOCKQUOTE></BODY></HTML>