This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information

Home Screen

Frequently asked questions about VisionX.

Home Screen

Postby lucdep » Fri Feb 22, 2019 7:21 pm


Is it possible to assign a specific home screen to a user when starting a session?
I have different dashboards and depending on who is login in a different dashboard (= home screen) should open.
Like CRM dashboard for sales, operations dashboard for production,...
I could add a home screen field to the users table.

Is this possible in Vision X?


Posts: 32
Joined: Wed Oct 10, 2018 12:01 pm

Re: Home Screen

Postby rjahn » Sat Feb 23, 2019 1:13 am

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
getApplication().openWorkScreen(Text.val(new Var(rdbUsers,"WORK_CLASSNAME")));

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 (= 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...
Posts: 40
Joined: Sun Sep 13, 2009 1:54 pm

Re: Home Screen

Postby rjahn » Sat Feb 23, 2019 1:14 am

It's also possible to open a specific work-screen in onLoad, if you check the role of a user, e.g. if a user has the sales role, open the SalesDashboard.

In this case, you don't need an additional field in users table and no custom code.
Posts: 40
Joined: Sun Sep 13, 2009 1:54 pm

Return to VisionX