AccessExpression
(Adding message template to the top of the page)
(Replacing message template with parser tag)
Line 1: Line 1:
{{message|Write the content here to display this box}}
<message>Write the content here to display this box</message>
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.
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.



Revision as of 07:37, 17 June 2024

This page was created by Hans.karlsen@mdriven.net on 2017-10-05. Last edited by Stephanie@mdriven.net on 2025-02-10.

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.