NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: John Fligg on January 24, 2012, 11:52:12 AM
-
After Bruce pointed me in the right direction on another matter I managed to find another bug in my code.
Basically I have an invoice line form which. When this form is closed I need to update the totals of an invoice somewhere in the invoice form code.
I thought I was being clever and put my code in GotFocusBack on the invoice form which then recalculates things.
This worked fine until I ran it in mobile mode. Now I see the problem - GotFocusBack is only ever called after a popup form is closed and of course mobile does not use popups.
So the question is, which embed would I need to use to recalculate some totals on the invoice form after the invoice line form has closed? Clearly it is a got focus back scenario but needs to work in mobile mode.
Thanks
John
-
Sorry thought I would re-post as this one is holding me up now. Hopfully someone can help.
Thanks
John
-
first thought -
perhaps the update (of the session variable) should be in the Update LineItems form? In the Post Update / Post insert. Maybe, I'm not sure.
In the UpdateInvoice Form, I'd do it in GenerateForm routine.
cheers
Bruce