when i want to close a form in dialog i use the following code to do that:
- Code: Select all
controller.getWindow().hide()
But sometimes - not always - i get this error message:
- Code: Select all
TypeError: Cannot call method "hide" of null
It seems that
- Code: Select all
controller.getWindow()
Is it better to use
- Code: Select all
application.getWindow().hide()
If yes, what is the difference between this methods?
Thanks,
Alex