Skip to main content

Inject Context Variables From Role

Goal: Technical

Developer: muriloht

Description:

Now you can define context variables to inject in the context from a Role, for example:

01 Inject From Role

In this example the following context variables will be available after login , in this case only with Role *Garden Admin *:

@+InfoProductShowHistory@=N

@+RoleLevel@=50

If you need to define multiple context variables to inject, you must define one per line, in other words, the list of variables is new-line separated.

PLEASE NOTE a plus ( + ) prefix is added to these variables to differentiate them from the normal window context variables.

You can use these variables anywhere in the window definition, like the where clause, the read only logic, display logic, etc.

Since Release-12.2025-01-25 this also includes context variables in master roles.

See also:

Inject Context Variables From Menu

Technical Info: IDEMPIERE-5647


Source: Wiki