Hello,
I want to create a page template who provide a dynamic table,
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.
in the second step he can create his own table by selecting the rows and
columns.
I create a script python for yeilding the column name of the original table in
a list like getColumnName() =[('id'),('title'),('address')]
and the data like getColumnData = [(1,), ('vincent ',), (1233,), (2,),
('nicolas ',), (,),
(3,), ('nani ',), (,),
(4,), ('roby ',), (,),
(5,), (' ',), (,), (6,),
(' ',), (,), (7,),
(' ',), (,), (8,),
(' ',), (1414,), (9,),
('e ',), (17484,), (10,),
('e ',), (17484,), (11,),
('e ',), (17484,), (12,)]
now in my the zpt
tr
th/th
div tal:define=results context/columnName tal:repeat=results
python:here.getColumnName()
span tal:condition=results/span
thinput type=checkbox id=selectedColumn //th
/div
/tr
tr bgcolor=#ece9d8
th/th
th tal:repeat=col_name python:here.getColumnName()
span tal:replace=col_name/
/th
/tr
tr align=right bgcolor=#ff tal:repeat=item batch
td bgcolor=#ece9d8 length=0.5 input type=checkbox
id=selectedRow//td
here i want to put the data
/td
/tr
My question how i can fill my grid table with the data (by using my script
python).?
When the user select the rows and colums how i can obtain the cell choosed for
create the new table?
thanks for all suggestions
G.
___
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
Yahoo! Questions/Réponses
http://fr.answers.yahoo.com___
ZPT mailing list
ZPT@zope.org
http://mail.zope.org/mailman/listinfo/zpt