04-27-2017 11:54 AM - edited 02-03-2024 8:24 PM
Hi experts,
Initially I created a view containing a textview, button. Clicking on the button gives a popup window with a text, close button. For the close button, I wrote the following code...
currentPopupElement() is showing error, recommending currentContextElement(). ...,what is the attribute value refer to? Are we needed to create this in base view or in the popup view...
please clarify my doubt...If it is not the correct procedure, guide me the right one........
In the base view, maintain a context variable where you save the window instance variable.
Map and share the context between main window and popup window i.e. now the window context variable in main window is mapped to a window context variable in the popup window.
In the popup window, button close - action, get the context variable value and execute the destroy instance method. This will close the popup.
Regards,
Sharath
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.