Q: Dynamic add/edit form for a product
Is there any way to create an add (or edit) form for a product on the fly? this is what I'm trying to do: I have a product from which I'm going to derive many other products, and I'd like to have some variable (say _data) inside this class that specifies some parameters (like a few files) that have to be managed via the usual add and edit interfaces. In the derived products I could just specify some custom value for this variable, and the forms would be automatically generated. Any ideas on how to do this? Many thanks to the great zope community! |G|
aaa@simplesky.com writes:
Is there any way to create an add (or edit) form for a product on the fly? In principle, yes.
Look at "OFS.PropertyManager.manage_propertiesForm". It "creates" a form based on the currently available properties. Dieter
participants (2)
-
aaaï¼ simplesky.com -
Dieter Maurer