On Apr 23, 2008, at 7:41 AM, Karsten Weinert wrote:
> In the minimal example below I can teach my form
> to display this optional info, but by default, if I enter new optional
> info, and move
> forward and back through the masters dataset, the entered
> information is lost.
You are most likely "losing" the data because you are not linking the
child to the parent. By setting up the child to automatically be added
and the parent link filled, you should avoid this.
You can then set up some code in your child's beforeSave() method to
check for non-empty values, and if none are found, issue a
self.cancel() to remove the empty record.
-- Ed Leafe
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]