NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Alberto on June 06, 2018, 05:10:52 PM

Title: How to refresh another browse
Post by: Alberto on June 06, 2018, 05:10:52 PM
Hi,
Popup Form, in one tab two browses, adding or modifiyng a record on the 1rst browse with a popup form let the user to press a button and add a record in the 2nd browse.
How to refresh the 2nd browse once exiting (saving or canceling) 1rst browse from?
See image
Thanks
Title: Re: How to refresh another browse
Post by: Bruce on June 07, 2018, 01:07:21 AM
you just know I'm going to need an example to see both the effect and what you are doing.
And please not your "whole app" - just take a shipping example and construct the same layout as you have here...

cheers
Bruce
Title: Re: How to refresh another browse
Post by: Alberto on June 07, 2018, 02:33:04 AM
I know but in this case its hard to do, more because of the mssql database.
May be with this question...
When you return from the 1rst browse form, this browse is refreshed.
How to refresh the 2nd browse too?, when I return from the form of the 1rst browse?
Title: Re: How to refresh another browse
Post by: Bruce on June 07, 2018, 05:15:22 AM
No, it's not hard to do.

Take one of the shipping TPS examples, like the Books (71) example, and set up the same layout as you have there.

cheers
Bruce
Title: Re: How to refresh another browse
Post by: Alberto on June 08, 2018, 07:39:29 AM
Ok, here it goes... example 71 modified.
Ive added a new menu Item "Test Add Manually" which calls the TestAddManually memory form, wich includes the Invoices browse and the LineItemsBrowse (not child of Invoices) filtered by Product='***test***'
Then you will see the Invoices and nothing in the LineItems.
Modify any Invoice, press the "Add an item manually" and save.
Nothing in the LineItems browse, to see what youve add you need to reload the page.
What I need is a way to refresh the LineItems browse once saving the Invoice record.
Title: Re: How to refresh another browse
Post by: Alberto on June 11, 2018, 06:02:09 AM
Bruce... did you get this one?
Title: Re: How to refresh another browse
Post by: Bruce on June 13, 2018, 12:40:10 AM
So first things first;

a) UpdateInvoices form, AddItemManuallybutton, ClientSide tab, add BrowseLineItems to Reset list.
This way you press the button, and the list on the window updates.

b) On the TestAddManually Form, BrowseInvoices field, ClientSide tab, add BrowseLineItems to reset list.
Then as you select a row, or edit, the browse, the line items browse updates.

cheers
Bruce