NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: jorgemir on January 11, 2011, 07:16:14 PM

Title: How to totaling browse after row change?
Post by: jorgemir 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
Title: Re: How to totaling browse after row change?
Post by: Bruce 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
Title: Re: How to totaling browse after row change?
Post by: jorgemir 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
Title: Re: How to totaling browse after row change?
Post by: Bruce on January 12, 2011, 09:25:36 AM
Popup form, or page form?

Cheers
Bruce
Title: Re: How to totaling browse after row change?
Post by: jorgemir 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
Title: Re: How to totaling browse after row change?
Post by: jorgemir 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
Title: Re: How to totaling browse after row change?
Post by: jorgemir 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
Title: Re: How to totaling browse after row change?
Post by: kevin plummer 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)