How to use
application.closeSolution([solutionToLoad],[method],[argument])
on clean way?
Currently with
application.closeSolution(“TestSolution”)
it mixes up foundset that contains tenants, for example.
Do I need to terminate session or sg further? How to improve?
So I need new session like if I’d close and then re-start again the Smart/Web client from Developer
In properties of my solution firstForm is frm_main_menu, loginForm is frm_login.
workflow:
-login to solution via the frm_login;
-clicked on button that invokes action which last line of code is
application.closeSolution("TestSolution")
-frm_login doesn’t appear but goes directly to the frm_main_menu. This causes that tenants are not loaded properly on restart, in my case .
How to restart the solution completely? So to go back to frm_login again? That will solve the problem, I think.
Do I need to unload all forms explicitly? How?
i think it pretty logical especially when the solution requires authentication…
Because what else can we do? If the solution requires authentication then closeSolution is the only solution when you logout.
The only thing is if the solution doesn’t require authentication what should we do then? Just also always close it? To be consistent?
I also don’t think that this will not happen a lot. If you use security/login then i guess the solution is configured to use it.