<br>I'm trying to reducing the problem to its minimum :)<br><br>I've disabled my plugin... I selected ONE layer only (that is selecteble, of course).<br><br>I click on it -> double results (identical... duplicates.. the same table)
<br><br>Now I enabled another "selectable" layer... 4 tables...<br><br>May that having something to do with hilight layers?<br><br>Here is one of my selectable layer with the corresponding highlight one:<br><br>
LAYER<br> NAME "particelle"<br> TYPE POLYGON<br> TEMPLATE "ttt"<br> CONNECTIONTYPE postgis<br> CONNECTION "user=@DB_USER@ password=@DB_PASSWD@ host=@DB_HOST@ dbname=@DB_NAME@"
<br> DATA "the_geom from catasto_sp_particelle"<br> METADATA<br> "exported_values" "recenter_name_string,id_attribute_string"<br> "recenter_name_string" "partkey"
<br> "id_attribute_string" "gid|string"<br> "query_returned_attributes" "partkey" # Selezioniamo il partkey perché l'applicazione se lo aspetta come primo dato ritornato
<br> END<br> CLASS<br> NAME "normal"<br> STYLE<br> COLOR 255 255 255<br> OUTLINECOLOR 0 0 0<br> SIZE 3<br> END<br> END<br> # Permette di vedere l'icona del colore selezionata nel blocco (match con _hilight)
<br> CLASS<br> NAME "hilight"<br> STYLE<br> COLOR 187 165 255<br> OUTLINECOLOR 0 0 0<br> END<br> END<br> END<br><br> LAYER<br> NAME "particelle_hilight"<br> TYPE POLYGON
<br> TEMPLATE "ttt"<br> CONNECTIONTYPE postgis<br> CONNECTION "user=@DB_USER@ password=@DB_PASSWD@ host=@DB_HOST@ dbname=@DB_NAME@"<br> DATA "the_geom from catasto_sp_particelle"<br>
LABELITEM "label"<br> CLASS<br> STYLE<br> COLOR 187 165 255<br> OUTLINECOLOR 0 0 0<br> END<br> LABEL<br> TYPE TRUETYPE<br> FONT "Vera"<br> SIZE 8
<br> COLOR 0 0 0<br> POSITION cc<br> END<br> END<br> END<br><br><div class="gmail_quote">On Dec 12, 2007 11:23 AM, Oliver Christen <<a href="mailto:oliver.christen@camptocamp.com">oliver.christen@camptocamp.com
</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div bgcolor="#ffffff">
<div><font size="2">there are as much tables returned as there was of active
layers.</font></div>
<div><font size="2">even for layers which are not queryable, in that casem, an
empty table object is returned which is usualy filtered before being outputed to
the template.</font></div>
<div><font size="2">maybe you are applying your </font><font size="3">customManage
function even on the empty tables ?</font></div>
<div> </div>
<div><font size="2">just an idea</font></div>
<blockquote style="border-left: 2px solid rgb(0, 0, 0); padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;"><div class="Ih2E3d">
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">----- Original Message ----- </div>
<div style="background: rgb(228, 228, 228) none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">
<b>From:</b>
<a title="claudio.cicali@gmail.com" href="mailto:claudio.cicali@gmail.com" target="_blank">claudio cicali</a> </div></div><div><div></div><div class="Wj3C7c">
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>To:</b> <a title="oliver.christen@camptocamp.com" href="mailto:oliver.christen@camptocamp.com" target="_blank">
Oliver Christen</a> </div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Sent:</b> Wednesday, December 12, 2007 11:17
AM</div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Subject:</b> Re: [Cartoweb-users] Doubles
tables results</div>
<div><br></div>Hi Oliver...<br><br>no, it turns out it's my tables plugin
extension fault (some way)<br><br>I have extended the table plugin to add some
behaviour to the result tables.<br>Now I have the table plugin and my my_table
plugin... perhaps cartoweb <br>is now producing always TWO
tables...<br><br>I'me maybe missing something about extending plugins... this
is the interesting<br>part of "my_tables":<br><br>class ClientMordanoTables
extends ClientTables { <br><br> public function replacePlugin()
{<br> return 'tables';<br>
}<br><br> protected function renderFormPrepare()
{<br><br> $smarty = new
Smarty_Plugin($this->getCartoclient(),
$this);<br><br> foreach ($this->tableGroups as
&$group) { <br> foreach
($group->tables as &$table)
{<br> if ($table->numRows
> 0) {<br>
$table->tbody =
$this->customManage($table);<br>
}<br> }
<br> }<br>
<br> $smarty->assign('tables',
$this->tableGroups); <br>
$this->assignExportCsv($smarty);<br> return
$smarty->fetch('tables.tpl');<br> }<br><br>then the
custom_manage function...<br><br><br><br>
<div class="gmail_quote">On Dec 12, 2007 11:00 AM, Oliver Christen < <a href="mailto:oliver.christen@camptocamp.com" target="_blank">oliver.christen@camptocamp.com</a>>
wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div bgcolor="#ffffff">
<div><font size="2">you have two layers based on the same dataset but with
different filter?</font></div>
<blockquote style="border-left: 2px solid rgb(0, 0, 0); padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;">
<div>
<div></div>
<div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">-----
Original Message ----- </div>
<div style="background: rgb(228, 228, 228) none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">
<b>From:</b>
<a title="claudio.cicali@gmail.com" href="mailto:claudio.cicali@gmail.com" target="_blank">claudio cicali</a> </div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>To:</b>
<a title="cartoweb-users@lists.maptools.org" href="mailto:cartoweb-users@lists.maptools.org" target="_blank">cartoweb-users@lists.maptools.org</a> </div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Sent:</b>
Wednesday, December 12, 2007 10:55 AM</div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Subject:</b>
[Cartoweb-users] Doubles tables results</div>
<div><br></div>Hello,<br><br>in a (failry complex) setup I'm stuck with
this apparently simple problem:<br><br>What could be the reason why I get
TWO identical query results (under the mainmap,<br>you know, the
"Query")... This is used by the plugin Edit... <br><br>Any idea will be
appreciated<br clear="all"><br>-- <br>Claudio Cicali<br><a href="mailto:claudio.cicali@gmail.com" target="_blank">claudio.cicali@gmail.com</a><br><a href="http://claudio.cicali.name" target="_blank">http://claudio.cicali.name
</a> </div></div>
<p></p>
<hr>
<p></p>_______________________________________________<br>Cartoweb-users
mailing list<br><a href="mailto:Cartoweb-users@lists.maptools.org" target="_blank">Cartoweb-users@lists.maptools.org</a><br><a href="http://lists.maptools.org/mailman/listinfo/cartoweb-users" target="_blank">http://lists.maptools.org/mailman/listinfo/cartoweb-users
</a><br></blockquote></div></blockquote></div><br><br clear="all"><br>--
<br>Claudio Cicali<br><a href="mailto:claudio.cicali@gmail.com" target="_blank">claudio.cicali@gmail.com</a><br><a href="http://claudio.cicali.name" target="_blank">http://claudio.cicali.name</a>
</div></div></blockquote></div>
</blockquote></div><br><br clear="all"><br>-- <br>Claudio Cicali<br><a href="mailto:claudio.cicali@gmail.com">claudio.cicali@gmail.com</a><br><a href="http://claudio.cicali.name">http://claudio.cicali.name</a>