cancel
Showing results for 
Search instead for 
Did you mean: 

How to kill the second instance ?

Former Member
0 Kudos

Hi

I am working on a pop window developement, where on click of a button from my main view, I populate some records in table format and show in a pop window. however, when there are large number of records, it takes a few more seconds to display the window and by that time, when we again click on the button, the second instance, gets intiated and throws a error ? what needs to be done / written to check/arrest/ validate that ?

thanks in advance

sathya

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Sathya

Store the window handle in a context and check the context before opening a window , open only if it is null . Clear the context after you close the window

Regards

Pran

Former Member
0 Kudos

Hi,

I feel that your problem can be solved if you give window.destroy() while closing the window instead of/along with window.close() as with the latter the instance would remain however the earlier clears any available instance.

Pls post your feedback

Regards

Noufal

Former Member
0 Kudos

Noufal,

It is simply necessary to understand that:

1. <b>create</b> is paired with <b>destroy</b>

2. <b>show</b> is paired with <b>close</b>

3. [2] may be called only within [1]

VS

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

In the onAction function disable the button and enable it

after destroying the child window.

Regards,

Kavitha

Former Member
0 Kudos

This is a "NO-OP" code, since currently all WD "pop-over" windows are modal

VS

Former Member
0 Kudos

Thanks a lot, I got the required information from all of you.

Thanks

sathya