NetTalk Central

Author Topic: How to refresh another browse  (Read 5316 times)

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
How to refresh another browse
« 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
-----------
Regards
Alberto

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: How to refresh another browse
« Reply #1 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

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: How to refresh another browse
« Reply #2 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?
-----------
Regards
Alberto

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: How to refresh another browse
« Reply #3 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

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: How to refresh another browse
« Reply #4 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.
« Last Edit: June 11, 2018, 04:55:01 AM by michelis »
-----------
Regards
Alberto

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: How to refresh another browse
« Reply #5 on: June 11, 2018, 06:02:09 AM »
Bruce... did you get this one?
-----------
Regards
Alberto

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: How to refresh another browse
« Reply #6 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
« Last Edit: June 20, 2018, 10:18:05 PM by Bruce »