Hello,
I created a branch from the DataGridField trunk :
https://svn.plone.org/svn/archetypes/Products.DataGridField/branches/quadra-columns_from_methods-1.6
I added possibility to set DataGrifField and DataGridWidget columns
parameters to a string containing a function name.
The function is then called on the instance to retreive the column ids
and column definitions (like vocabulary parameter of an at field).
This allows columns list to be computed according to certain
informations on the portal instead of being static.
I use this to create a DataGrid field with documents id/title as columns
to store related datas.
It could be used to load columns from a configlet or an ATVM vocabulary
to allow end users to change column list themselves without editing code.
Do you think this feature should be merged to the trunk and integrated
in the next release ?
Regards,
Jonathan Riboux
Quadra Informatique
_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers