Where to fill default values of a form in ActionForm ?

2002-12-01 Thread Zsolt Koppany
Hi, right now I use the reset method to fill the form with some default values but I see in my logs that reset is called when I click on the cancel button. Because I fill default values from a database I don't want to execute this query when the form is being cancelled. What is the best way

RE: Where to fill default values of a form in ActionForm ?

2002-12-01 Thread edgar
You need a default action which fills in the default values. The sequence I use is Lookup to existing records / Add new (fill defaults) Various form navigation / calculation actions Save Additionally, in the validation action I test for the save prior testing form valid

Re: Where to fill default values of a form in ActionForm ?

2002-12-01 Thread Gemes Tibor
2002-12-01, v keltezssel Zsolt Koppany ezt rta: Hi, right now I use the reset method to fill the form with some default values but I see in my logs that reset is called when I click on the cancel button. Because I fill default values from a database I don't want to execute this query