Mustansir Ghor <firstname.lastname@example.org>
||Thu, 08 Feb 2018 15:47:24 -0500
Why is that in rowset_OnNavigate we use this.parent.parent and can not use form. I need to use this method else where so need to see if I can still further manipulate.
Mervyn Bick Wrote:
> On 2018-02-04 12:08 PM, Mustansir Ghor wrote:
> > Dear Mervyn
> > Thanks for your reply
> > Do you mean that the value shown when you navigate to the second record
> > is the value for the first record and when you navigate to the third
> > record the value shown is for the second record? YES
> > YES , that is what happening.
> While testing a progress bar driven by total_invoice() I had to add a
> sleep(.5) command in the loop to see if the progress bar actually
> worked. I noticed that the total didn't update until the loop had
> finished. I should have thought of that first (there isn't a total
> until the loop is done) but with my test tables the code worked so
> quickly that the delay wasn't apparent.
> The solution, together with a progress bar, would be to blank the
> entryfield before executing total_invoice().
> function rowset_onNavigate(type, nRows)
> this.parent.parent.entryfield1.value = ' '
> this.parent.parent.entryfield1.value= class::total_invoice()