Yes, I would like to. Kind regards, Karsten.
2008/4/24, Ed Leafe <[EMAIL PROTECTED]>: > On Apr 23, 2008, at 4:56 PM, Karsten Weinert wrote: > > > Now when I add a new row to the parent, automatically a new child row > > is created and if I enter some information in the textbox it is > > flushed to the dataset. > > > > But when I move to the next parent row and back, a requery is > > executed which > > clears the information just entered. > > That is not correct behavior. Bizobjs can have multiple cursor > objects; when a parent bizobj's PK changes, the child's _CurrentCursor > should change to a new one specifically for that parent record. If you > navigate back to the original parent record, it should re-set the > child's _CurrentCursor to the one that was originally associated with > that parent PK. > > This is the code in dBizobj: > > for child in self.__children: > # Let the child know the current dependent PK > if child.RequeryWithParent: > child.setCurrentParent(pk, fromChildRequery=True) > if not child.isAnyChanged(): > child.requery() > > So the only way I could see that the child is getting requeried is if > isAnyChanged() is returning False. > > Do you feel comfortable doing some testing to figure this out? I > would give you a modified version of the files in question that > includes some debug output lines, and you would run through your app > as you are doing now. Afterwards, send me your observations as well as > the debug output. > > > -- Ed Leafe > > > > > [excessive quoting removed by server] _______________________________________________ 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]
