Re: Processing of repeater row values in flowscript

2005-12-14 Thread Fabrizio Sitzia
Hello A simple answer (...but complex on the long run) --- 1. PRE-PROCESSING // first row model.terrains[0].id= my_first_id; model.terrains[0].terr_name = my_first_terr_name; model.terrains[0].terr_size = my_first_terr_size; model.terrains[0].select=

Re: Processing of repeater row values in flowscript

2005-12-14 Thread Derek Hohls
Fabrizio Thanks for the long and detailed reply - much appreciated! Quick response _ I have to take the simple approach now .. I have looked at Hibernate before and the leaning curve is too complex to manage for this project (never mind I have to learn JavaBeans as well!). Perhaps next year,

Re: Processing of repeater row values in flowscript

2005-12-14 Thread Fabrizio Sitzia
Hello Derek, Answers to your questions: 1. There's no need to instantiate the model.terrains[] array. An assignment like model.terrains[0].id = xxx will automagically create your first repeater row. 2. ...Must I store all the IDs in a separate array before they go to the form, and then

Processing of repeater row values in flowscript

2005-12-13 Thread Derek Hohls
I need to be able to do some pre- and post- processing of values that will be contained in repeater rows in a CForm. The form defn will look something like: fd:widgets fd:field id=title required=true fd:labelTitle/fd:label fd:datatype base=string/ /fd:field fd:repeater