Hello. It is great set of elements and actions in ForeUI, but I can’t understand how I can close an opened page. Assume we have a page with a tabset. On the first tab I have some logic with buttons and popups made by opening new page with main page as a “master page”. But when I click on the second tab, I still see page opened via the first tab’s buttons and don’t know what I should do to close it.
I guess you mean the approach to simulate popup window introduced on this page? http://www.foreui.com/doc/html/index….
If so you just need to switch back to the main page to “close” the popup window, using the “Go to Page” action.
In your example, if you want to “close” the popup window when clicking the second tab, you just need to handle the “Selection Changed” event for the Tabs element and call the “Go to Page” action to switch back to the main page. Like this:
Hi, ViVi, I’ve tried as you write, but the problem is (as I wrote in other question) that the ‘Selection Changed’ event of Tab element fired even if I just change selected row of a table inside the tab and I can’t use it to avoid unpredictable behavior.
Sorry, may be my English is too bad and I can’t explain my problem.
Let’s try again.
I have a tabset with two tabs. Each tab has some elements including a table.
I add a simple action to ‘selection changed’ event of the tabset.
For example, ‘show message’:
And during the simulation I see this message when I change selected row of the table. I think it is wrong and this event have not to be fired from the table.
I am sorry that I misunderstood the question while your description was quite clear 🙂
Of course I understand that it also brings trouble in your case. The work around in my mind is to check if the event is really from the Tabs (tabset):
I hope this can help.
Thank you, it helped.
This question is now closed