Difference between revisions of "NF11 Inject Context Variables From Role"
(Created page with "= '''Feature:''' Inject Context Variables From Role = '''Goal:''' Technical '''Developer:''' muriloht '''Description:''' Now you can define context varia...") |
CarlosRuiz (talk | contribs) (master roles) |
||
| (2 intermediate revisions by 2 users not shown) | |||
| 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 21: | Line 23: | ||
You can use these variables anywhere in the window definition, like the where clause, the read only logic, display logic, etc. | You can use these variables anywhere in the window definition, like the where clause, the read only logic, display logic, etc. | ||
| + | |||
| + | Since [[ChangeLog_Release_12#2025-01-25|Release-12.2025-01-25]] this also includes context variables in master roles. | ||
| + | |||
| + | '''See also:''' | ||
| + | |||
| + | [[NF8.2 Inject Context Variables From Menu|Inject Context Variables From Menu]] | ||
| + | |||
'''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]] | ||
Latest revision as of 13:49, 25 January 2025
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.
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
