Page 1 of 1

Stack doesn't come to front upon first go to card

Posted: Thu Jan 26, 2017 8:37 pm
by dpatterson
Hello.

I have two substacks. One contains a datagrid with a list of customers. The other contains the fields required to edit a customer.
The datagrid has a custom column behavior with a mouseDoubleUp handler for selecting a row. The last thing in that handler is

Code: Select all

go to card "addEdit" of stack "customerAddEdit" 
If the add/edit stack is not open as with

Code: Select all

close card "addEdit" of stack "customerAddEdit" 
double-clicking a row opens the stack but does not make it the active window. The customer list remains the active window.

Actually, the add/edit window appears to be the active window for a fraction of a second and the list window becomes active again.

Once the add/edit window is visible, double-clicking a row in the customers list makes the add/edit window the active window as expected.

Everything that I have been able to find states that the go command makes the target card's stack the active window.

I must be doing something wrong here, somewhere. Hopefully someone out there has run into this before and can point me in the right direction.

TIA,
Dave

Re: Stack doesn't come to front upon first go to card

Posted: Fri Jan 27, 2017 4:32 am
by dunbarx
Hi.

Is it possible that the second click is bringing you back to the initial stack?

Craig Newman

Re: Stack doesn't come to front upon first go to card

Posted: Fri Jan 27, 2017 6:37 am
by dpatterson
Hmm. I would hope not since it's a double-click handler.
It shouldn't fire until after the second mouse up.

Besides, as I said in the original post, this only happens if the target stack isn't already visible.