Hello,
Why does the comment "variable ...is not found" when I deploy the application? When I run "desktop app view", there is no issue.
Printable View
Hello,
Why does the comment "variable ...is not found" when I deploy the application? When I run "desktop app view", there is no issue.
Hi,
Check that you are not trying to access that field before the table has been opened. Is the App still loading?
The Lianja.isLoadingApp() method can be used to check if the App is still loading.
Regards,
Yvonne
how to open the table
And how to use The Lianja.isLoadingApp(). Where do I find the reference about it?
If the field is being referenced in a data-bound control - a formitem in a Canvas or Form Section, or a column in a Grid Section - then the database and table will be opened for you automatically. You just need to check that you have deployed your database.
Deploying to Local Directory
Documentation Category: Deployment
If you are referencing the field in code you have written in a .prg and you are relying on the table already being open because it is used in data-bound control(s), then you need to make sure that the App is not still loading (so all tables may not yet be open). In this case, you can use the Lianja.isLoadingApp() method in an IF statement
Regards,Code:if not Lianja.isLoadingApp()
// "App loaded"
else
// "App is still loading"
endif
Yvonne