Ok, now I have a clue what is going wrong.

I set beforeSave and afterRequery on the child as discussed in prior
postings. Also I set NewChildOnNewRecord and NewRecordOnNewParent to
True.

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. So practically, all that is missing is a
"save changes" dialog if I move along the parent row.

I could alter the child's beforeRequery method to check for
isChanged(). But since some gui operation is required, some code to
the form must be added, too. But where?

Kind regards,
Karsten.

2008/4/23, Karsten Weinert <[EMAIL PROTECTED]>:
> I just learned about the afterRequery method and tried to call new() there:
>
>    def afterRequery(self):
>        if self.RowCount == 0: self.new()
>
> but the problem persists, anyway.
>
> Kind regards,
> Karsten.
>
> 2008/4/23, Paul McNett <[EMAIL PROTECTED]>:
> > Karsten Weinert wrote:
> > > It is not saved, if I enter something in the optional info textbox and
> > > hit "next" directly.
> >
> > I've been noticing some cases where values aren't getting flushed unless
> > you tab off the control. Even if I manually do a flushValue() on the
> > control, it won't actually flush until the control loses focus. It
> > shouldn't be this way, and it wasn't always this way, but so far I've
> > been unable to reduce it down to a testable sample and do regression
> > testing to figure out when the problem was introduced.
> >
> > I'm not saying we are seeing the same problem, but it could be that we are.
> >
> > Paul
> >
> >
[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]

Reply via email to