<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div>Hello,<br><br>I want to create a page template who provide a dynamic table, <br>in the first step my user can choose his table from a list (the first page template) when he validates his choice he can see another page template whith his table.<br>in the second step he can create his own table by selecting the rows and columns.<br><br>I create a script python for yeilding the column name of the original table in a list like getColumnName()&nbsp; =&gt;[('id'),('title'),('address')]<br>and the data like&nbsp; getColumnData =&gt; [(1,), ('vincent&nbsp;&nbsp; ',), (1233,), (2,), <br>('nicolas&nbsp;&nbsp; ',), (2222,), <br>(3,), ('nani&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ',), (3333,), <br>(4,), ('roby&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ',), (4444,), <br>(5,), ('aaaa&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ',), (7777,), (6,),
 <br>('bbbb&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ',), (8888,), (7,), <br>('cccc&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ',), (9999,), (8,), <br>('dddd&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ',), (1414,), (9,), <br>('eeeee&nbsp;&nbsp;&nbsp;&nbsp; ',), (17484,), (10,), <br>('eeeee&nbsp;&nbsp;&nbsp;&nbsp; ',), (17484,), (11,), <br>('eeeee&nbsp;&nbsp;&nbsp;&nbsp; ',), (17484,), (12,)]<br><br>now in my the zpt <br><br>&lt;tr&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;th&gt;&lt;/th&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;div tal:define="results context/columnName" tal:repeat="results python:here.getColumnName()"&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;span
 tal:condition="results"&gt;&lt;/span&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;th&gt;&lt;input type="checkbox" id="selectedColumn" /&gt;&lt;/th&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/div&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp; &lt;/tr&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp; &lt;tr bgcolor="#ece9d8"&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;th&gt;&lt;/th&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;th tal:repeat="col_name python:here.getColumnName()"&gt; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;span tal:replace="col_name"/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp; &lt;/th&gt; <br>&nbsp;&nbsp;&nbsp;&nbsp; &lt;/tr&gt;<br>&nbsp;<br>&nbsp;&nbsp;&nbsp; &lt;tr align="right" bgcolor="#ffffff" tal:repeat="item batch" &gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td bgcolor="#ece9d8" length="0.5" &gt;&lt;input type="checkbox"
 id="selectedRow"/&gt;&lt;/td&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>here i want to&nbsp; put&nbsp; the data <br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/td&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &lt;/tr&gt; <br>&nbsp;&nbsp; <br><br>My question how i can fill my grid table with the data (by using my script python).?<br>When the user select the rows and colums how i can obtain the cell choosed for create the new table?<br><br>thanks for all suggestions<br>&nbsp;&nbsp;&nbsp; G.<br><br></div></div><br>
                <hr size="1"> 
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! 
Profitez des connaissances, des opinions et des expériences des internautes sur <a href="http://fr.rd.yahoo.com/evt=42054/*http://fr.answers.yahoo.com">Yahoo! Questions/Réponses</a>.</body></html>