Difference between revisions of "NF11 Inject Context Variables From Role"
From iDempiere en
(Created page with "= '''Feature:''' Inject Context Variables From Role = '''Goal:''' Technical '''Developer:''' muriloht '''Description:''' Now you can define context varia...") |
Tag: visualeditor |
||
| Line 9: | Line 9: | ||
Now you can define context variables to inject in the context from a Role, for example: | Now you can define context variables to inject in the context from a Role, for example: | ||
| − | [[File:01 Inject From Role.png|thumb]] | + | [[File:01 Inject From Role.png|thumb|alt=|none]] |
| + | |||
In this example the following context variables will be available after login , in this case only with Role ''Garden Admin '': | In this example the following context variables will be available after login , in this case only with Role ''Garden Admin '': | ||
@+InfoProductShowHistory@=N | @+InfoProductShowHistory@=N | ||
| + | |||
@+RoleLevel@=50 | @+RoleLevel@=50 | ||
| Line 24: | Line 26: | ||
'''Technical Info:''' [https://idempiere.atlassian.net/browse/IDEMPIERE-5647 IDEMPIERE-5647] | '''Technical Info:''' [https://idempiere.atlassian.net/browse/IDEMPIERE-5647 IDEMPIERE-5647] | ||
| − | |||
[[Category:New Features|T]] | [[Category:New Features|T]] | ||
[[Category:New Features w11|T]] | [[Category:New Features w11|T]] | ||
[[Category:New Features Technical]] | [[Category:New Features Technical]] | ||
Revision as of 05:51, 27 March 2023
Feature: 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:
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.
Technical Info: IDEMPIERE-5647
