It's possible to configure a welcome screen, for the whole application but not per user.
But if you have only one dashboard screen, as welcome screen, you could take care of the user in onLoad event of the screen (with VisionX). So, simply create a WelcomeDashBoard screen and use onLoad to close the screen immediate.
Use the users table and add define a combobox with the workscreens table. Use id, text and classname. Add a filtereditor for the username to the screen. In onLoad set the filter value to the current username. Use the open workscreen action. But it's not possible to use the value from the users table. You need to change the "null" parameter in source code to, e.g.
- Code: Select all
Text.val(new Var(rdbUsers,"WORK_CLASSNAME"))
This is my action code:
- Code: Select all
filterUsers.setValue(getConnection().getUserName());
getApplication().openWorkScreen(Text.val(new Var(rdbUsers,"WORK_CLASSNAME")));
close();
Sure, it's also possible to do the whole thing with Source Code, very easily:
First you need the user storage in your Session LCO (= Session.java). You need an application class which extends from ProjX. Configure this class in web.xml/mobile.xml and all launch configurations.
VisionX will detect the class automatically but won't change the config files.
In your application, use the getConnection to create a new RemoteDataSource and use this datasource for a new RemoteDataBook.
Simply override initUser to load user-data and after-logout to close the datasource. Simply override openWelcomeScreen and open your configured screen.
The
example application Packung! contains an example for initUser/afterLogout...