Italiano
Instant Developer Foundation Documentation
  • Web applications tutorial
  • Accessing the application

Excluding functionalities based on role

copy link
<< Previous video
View in a full screen window.
Next video >>

Transcription

Foundation allows you to set up a hierarchy of Operational Roles in an application; when starting the application it is necessary to declare with which role it must be performed, so that the construction of the graphical interface and related functions are those appropriate to the role (we have the opportunity to define what to show and which functions to allow it based on the application access role).

The principle is simple everyone can do everything, except what is prevented in the Application Role or in the higher-level Roles: for example, it is possible to set that users of a certain Role do not see some menu items or panel fields or other elements of interface, or that for certain panels it is possible to perform only searches and not insertions.

All project objects can be dragged onto a Role to activate its limitations: if you drag a panel object we can decide its functionality (search, update, insert, delete), if you drag a menu item, a panel field or other objects these would become Not Visible , for the role and for all the Roles in the levels below.

For example, let's add some definition to the Registered Customer role:

we drag the entire command set SetConfigura .

the command Reservations ,

Let's move on to the Apartments , Apartments Panel ,

Command Button Other Features .

Let's see the effect by going to compilation.

I log in as administrator, the profile on my database was rossi / rossi , and we open the Users Screen .

We can create a new user as Registered Customer (customer / customer).

Now I try to exit the application and return as customer / customer ,

As you can see, the interface is modified based on the user role!

As you may have noticed, the configuration of roles and features is to be carried out in the design phase using the Foundation environment; if you wanted to set dynamic configurations? For this there is a feature called RTC, which is not part of this tutorial, but is reported on the documentation that allows you to make configurations at runtime.

Changed on: 17/11/2023 / From version: 20.5.8000

Is this article helpful?

Thank you for your feedback!

Need more help?

Check out the forum

See also

    Download the sample project You Bb Project.zip