I have a few questions regarding viewsLets assume that I have used the following code to add my variable to the view:
1. When I execute ReplaceView "View1" will all of the variables with this view be wiped from memory?
2. What would be the easiest way to clear the values in window.App.View2.MyTestClassInstance when the view is closed?
3. Can I pass a view to a Javascript Function?
Hello John,
The above code can't work... if you did not place the Javascript code between the StartJS and EndJS actions. But you did not shown these actions in the shown code.
1. When I execute ReplaceView "View1" will all of the variables with this view be wiped from memory?
No. The variables stil in memory except if you manually assign a value of null to them, for example.
2. What would be the easiest way to clear the values in window.App.View2.MyTestClassInstance when the view is closed?
Probably this is enough:
3. Can I pass a view to a Javascript Function?
Yes; You can pass the "window.App.View2" for example.
Everybody can read the DecSoft support forum for learning purposes, however only DecSoft customers can post new threads. Purchase one or more licenses of some DecSoft products in order to give this and other benefits.