<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:v =
"urn:schemas-microsoft-com:vml" xmlns:o =
"urn:schemas-microsoft-com:office:office" xmlns:w =
"urn:schemas-microsoft-com:office:word"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16705" name=GENERATOR>
<STYLE>@page Section1 {size: 595.3pt 841.9pt; margin: 70.85pt 2.0cm 2.0cm 2.0cm; }
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.StileMessaggioDiPostaElettronica17 {
        COLOR: windowtext; FONT-FAMILY: Arial; mso-style-type: personal-compose
}
DIV.Section1 {
        page: Section1
}
</STYLE>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></HEAD>
<BODY lang=IT vLink=purple link=blue bgColor=#ffffff>
<DIV><FONT size=2>hi</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>it is certainly possible but this would require some
development, like:</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>maybe you can extend the table plugin to keep the selected
road id in session so the extended edit plugin can access it.</FONT></DIV>
<DIV><FONT size=2>or developing a plugin which would access the query result and
simply keep the id in session (so you dont have to extend
query/table)</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>
<DIV><FONT size=2>extending the edit plugin so you can inject the id.
<DIV><FONT size=2></FONT> </DIV>
<DIV>regards</DIV>
<DIV>Oliver</DIV></FONT></DIV></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=g.virdis@riteco.it href="mailto:g.virdis@riteco.it">Giovanni
Virdis</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=cartoweb-users@lists.maptools.org
href="mailto:cartoweb-users@lists.maptools.org">cartoweb-users@lists.maptools.org</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, October 03, 2008 9:40
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [Cartoweb-users] Use of the
layer and automatism</DIV>
<DIV><BR></DIV>
<DIV class=Section1>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Hi, <o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal style="BACKGROUND: white; LINE-HEIGHT: 14.4pt"><FONT
face=Arial color=black size=4><SPAN lang=EN-GB
style="FONT-SIZE: 13pt; COLOR: black; FONT-FAMILY: Arial">I have two
database’s tables “top_toponimi” and
“top_civico”.<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal style="BACKGROUND: white; LINE-HEIGHT: 14.4pt"><FONT
face=Arial color=black size=4><SPAN lang=EN-GB
style="FONT-SIZE: 13pt; COLOR: black; FONT-FAMILY: Arial">In the first there
are the data relative to the roads <o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal style="BACKGROUND: white; LINE-HEIGHT: 14.4pt"><FONT
face="Times New Roman" size=3><SPAN lang=EN-GB style="FONT-SIZE: 12pt">In the
second there are the </SPAN></FONT><FONT face=Arial color=black size=4><SPAN
lang=EN-GB style="FONT-SIZE: 13pt; COLOR: black; FONT-FAMILY: Arial">the civic
numbers.<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal style="BACKGROUND: white; LINE-HEIGHT: 14.4pt"><FONT
face=Arial color=black size=4><SPAN lang=EN-GB
style="FONT-SIZE: 13pt; COLOR: black; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal style="BACKGROUND: white; LINE-HEIGHT: 14.4pt"><FONT
face=Arial color=black size=4><SPAN lang=EN-GB
style="FONT-SIZE: 13pt; COLOR: black; FONT-FAMILY: Arial">I have create two
layers for each table.The layer of roads in not
editable.<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal style="BACKGROUND: white; LINE-HEIGHT: 14.4pt"><FONT
face=Arial color=black size=4><SPAN lang=EN-GB
style="FONT-SIZE: 13pt; COLOR: black; FONT-FAMILY: Arial">Every civic number
is associated to a road.<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal style="BACKGROUND: white; LINE-HEIGHT: 14.4pt"><FONT
face=Arial color=black size=4><SPAN lang=EN-GB
style="FONT-SIZE: 13pt; COLOR: black; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal style="BACKGROUND: white; LINE-HEIGHT: 14.4pt"><FONT
face=Arial color=black size=4><SPAN lang=EN-GB
style="FONT-SIZE: 13pt; COLOR: black; FONT-FAMILY: Arial">If is possible I
want select a road and get the relative id, when I insert a new civic number
and save I want to associate automatically the id of
road<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal style="BACKGROUND: white; LINE-HEIGHT: 14.4pt"><FONT
face=Arial color=black size=4><SPAN lang=EN-GB
style="FONT-SIZE: 13pt; COLOR: black; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal style="BACKGROUND: white; LINE-HEIGHT: 14.4pt"><FONT
face=Arial color=black size=4><SPAN lang=EN-GB
style="FONT-SIZE: 13pt; COLOR: black; FONT-FAMILY: Arial">Thank<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal style="BACKGROUND: white; LINE-HEIGHT: 14.4pt"><FONT
face=Arial color=black size=4><SPAN lang=EN-GB
style="FONT-SIZE: 13pt; COLOR: black; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal style="BACKGROUND: white; LINE-HEIGHT: 14.4pt"><FONT
face="Times New Roman" size=3><SPAN lang=EN-GB
style="FONT-SIZE: 12pt"><o:p> </o:p></SPAN></FONT></P></DIV>
<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>