Servoy Developer
Version 3.5 b2-build 502
Java version 1.5.0_10-b03 (Windows XP)
After application.showFormInDialog()
The currentcontroller doesnot get reset tothecurrent form.
It says as the dialog controller.
Reproducable:
Show form indialog
close form indialog
application.output(currentcontroller.getName())
you’ll get the dialog form, even though the form is no longer showing
Did you file this in the support system?
Paul
Well, I guess if you bring it down to bare minimals in a sample solution, to rule out coding errors and you still get the same behavior, it’s save to assume it doen’t work correctly, so you could create a case in the support system.
Based on the info you provided, it’s not possible for anyone to reproduce your coding scenario, so it’s a bit difficult to determine if you might have made a coding error.
Paul
HI,
Did you try the latest and greatest (3.5 RC2)?
Rob
This issue has been fixed for next release, Servoy 3.5 RC 4.
When closing a modal dialog in the smart client, currentcontroller will refer to the calling form again.
Please note that the currentcontroller always refers to the visible form.
This means that currentcontroller will refer to the called form in the calling method in the statements following showFormInDialog() when showFormInDialog() is non-blocking.
This is the case for a non-modal dialog and for a dialog in the web-client.
Rob