Cannot Find View

JonPM

Well-Known Member
Licensed User
Longtime User
So just started using v1.9+and designer scripts and I am getting this runtime error:
java.lang.RuntimeException: Cannot find view: scvmain. All views in script should be declared.

I have already dim'd scvMain and initialized it (it is added in code, not in designer). The error is thrown on this line: scvMain.Panel.LoadLayout("MyLayout")

in MyLayout I don't have anything in the Scripts tab. Is there something obvious I am missing?

Also, not sure if this may be related or not, but I did at one point have the scvMain in the designer WITH code in the Scripts tab, but then changed my mind and removed all references in Designer & script. Perhaps there is a bug?
 

klaus

Expert
Licensed User
Longtime User
Without seeing your code and layout files it's impossible to help you.
Please post your project as a zip file (IDE menu Files / Export As Zip) so we could see what exactly you have done and how to give you directly a concrete answer.

Best regards.
 
Upvote 0

JonPM

Well-Known Member
Licensed User
Longtime User
Edit: after posting project I did a Cleanup and it seems to work now...
 
Upvote 0
Top