NetTalk Central

Author Topic: How to totaling browse after row change?  (Read 5365 times)

jorgemir

  • Jr. Member
  • **
  • Posts: 71
    • View Profile
    • Email
How to totaling browse after row change?
« on: January 11, 2011, 07:16:14 PM »
Hi.
I call a form with change action. I need to reflect the total at one total column. How I can do this? I know I can using an Other button, but I need to use a change button instead. It is possible?
Thanks
Jorge

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: How to totaling browse after row change?
« Reply #1 on: January 12, 2011, 02:20:08 AM »
So you have a button on the browse...

Does the button call a form in popup mode, a form in page mode, or just "does something" behind the scenes?

What you want is to refresh the whole browse when the button action is finished right?


cheers
Bruce

jorgemir

  • Jr. Member
  • **
  • Posts: 71
    • View Profile
    • Email
Re: How to totaling browse after row change?
« Reply #2 on: January 12, 2011, 06:17:39 AM »
This is a browse and form combination. The browse has some rows and I want the customer change only the quantity field. I put a change button to call the form. When form returns to browse I want the totaling field updated in the browse, but automatically. For now, the browse refresh the totaling field only if I refresh the whole browse.
I try with a callbrowse after the form call but this creates an infinite cycle and it does not stops.
If I use an Other button to call the form I can use the Refresh browse row or refresh whole browse but I can not manage the form.

the question is: How I can refresh the browse after form returns?.
Thanks
Jorge

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: How to totaling browse after row change?
« Reply #3 on: January 12, 2011, 09:25:36 AM »
Popup form, or page form?

Cheers
Bruce

jorgemir

  • Jr. Member
  • **
  • Posts: 71
    • View Profile
    • Email
Re: How to totaling browse after row change?
« Reply #4 on: January 12, 2011, 10:46:18 AM »
PopUp form. It receives the quantity, multiply by price, saves and returns  to browse. I need to refresh the totaling column Total at browse once the popup closes.
Thanks

jorgemir

  • Jr. Member
  • **
  • Posts: 71
    • View Profile
    • Email
Re: How to totaling browse after row change?
« Reply #5 on: January 14, 2011, 07:41:16 AM »
Still no joy. I can get the browse to refresh totaling column after return from form. Is there is any way? thanks Bruce.
Jorge

jorgemir

  • Jr. Member
  • **
  • Posts: 71
    • View Profile
    • Email
Re: How to totaling browse after row change?
« Reply #6 on: January 24, 2011, 01:52:08 AM »
Hi. I had not come to the solution..Only way I can do is to manually reload the browse after update. Is there is anyway to recalculate browse total after return from a popup form? Thanks
Jorge

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: How to totaling browse after row change?
« Reply #7 on: January 24, 2011, 02:41:44 AM »
Try this:

In the Embed

ValidateRecord  Routine

        p_web.setValue('_ParentProc','')       !added to auto refresh the browse
        p_web.DeleteValue('_EIPClm' )
        YourBrowseProcName(p_web)