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
Code:
if not Lianja.isLoadingApp()
// "App loaded"
else
// "App is still loading"
endif
Regards,
Yvonne
Bookmarks