AccessExpression
(Created page with "ViewModels has a rooted AccessExpression that should return true or false (empty defaults to true). This expression controls if the ViewModel is shown or not - the evaluation...")
 
(Automatically adding template at the end of the page.)
 
(7 intermediate revisions by 4 users not shown)
Line 1: Line 1:
ViewModels has a rooted AccessExpression that should return true or false (empty defaults to true). This expression controls if the ViewModel is shown or not - the evaluation is done after any [[Access control system in MDriven|accessgroup]] evaluation. This expression complements the accessgroups as this has the ability to check the root objects values and not only global values as accessGroups.
ViewModels have a rooted AccessExpression that should return true or false (empty defaults to true). This expression controls whether the ViewModel is shown or not - the evaluation is done after any [[Training:Access control system in MDriven|accessgroup]] evaluation. This expression complements the accessgroups as it checks the root objects' values and not only global values as accessgroups.


The AccessExpression can be checked prior to ViewModel creation with the ocl [[OCLOperators canAccess|CanAccess]] operator.
The AccessExpression can be checked before ViewModel creation with the OCL [[OCLOperators canAccess|canAccess]] operator.
 
'''Note:''' Prior to '''2021-02-01''', the AccessExpression and AccessGroup.ViewEnableExpression had issues in both WPF and Turnkey - but are now fixed.
[[Category:View Model]]
{{Edited|July|12|2024}}

Latest revision as of 15:26, 10 February 2024

ViewModels have a rooted AccessExpression that should return true or false (empty defaults to true). This expression controls whether the ViewModel is shown or not - the evaluation is done after any accessgroup evaluation. This expression complements the accessgroups as it checks the root objects' values and not only global values as accessgroups.

The AccessExpression can be checked before ViewModel creation with the OCL canAccess operator.

Note: Prior to 2021-02-01, the AccessExpression and AccessGroup.ViewEnableExpression had issues in both WPF and Turnkey - but are now fixed.

This page was edited 114 days ago on 02/10/2024. What links here