NetTalk Central

Author Topic: Refresh form after popup  (Read 3182 times)

Ubaidullah

  • Full Member
  • ***
  • Posts: 125
    • View Profile
Refresh form after popup
« on: October 04, 2011, 01:26:23 AM »
Hi,

I have a NetWebForm (A) that has a NetWebBrowse in it. The NetWebBrowse calls a NetWebForm (B) in popup mode to update its records. I have some buttons on NetWebForm (A) that need to be hidden/unhidden after the popup NetWebForm (B) is called. I am setting the required session variables in the popup NetWebForm (B) but I don't see the any call to NetWebForm (A) from the WebHandler after the popup is closed. I need to make the WebHandler call NetWebForm (A) with a stage of Net:Web:Div.

So, how do I add the update buttons that call NetWebForm (B) to the reset list?

Thanks & Regards,
Ubaidullah Nubar.





Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Refresh form after popup
« Reply #1 on: October 11, 2011, 03:11:57 AM »
Sorry, UN, I was confused when I read in on NetTalkCentral, and re-reading it hasn't helped.
I think it needs an accompanying example if I'm to answer correctly.
 
cheers
Bruce

Ubaidullah

  • Full Member
  • ***
  • Posts: 125
    • View Profile
Re: Refresh form after popup
« Reply #2 on: October 11, 2011, 04:02:41 AM »
Sorry for not being clear.

Please see the attached app which is a modified form of example 1 BasicBrowseAndForm.

I have added a NetWebForm called 'ContainingForm' that calls the MailboxesBrowseControl.

The form has one entry string and one button. Any value entered in the string is stored in the session variable LOC:BtnText. The button takes the value of this session variable and uses it for its text in the Value::LOC:MyButton routine. So far, so good.

Now, the MailboxesFormControl sets the session variable LOC:BtnText in its ValidateRecord routine.

I want the button text in 'ContainingForm' refreshed with the value set in 'MailboxesFormControl' when the user closes the popup. How do I achieve this?

To illustrate, I have this:

Form A ---> Browse ---> Form B

Form B is a popup which sets a session variable and I need to refresh a field in Form A with this session variable's value.

Hopefully, it is clearer.

Thanks & Regards,
Ubaidullah Nubar.

[attachment deleted by admin]