🚀 Welcome to MDriven Learn –  MDriven is now on Discord!  Don’t miss the latest Release Notes.
OCLOperators canAccess
This page was created by Hans.karlsen on 2017-10-05. Last edited by Wikiadmin on 2026-09-12.

The canAccess operator is available on objects and checks if this object can access a supplied ViewModel based on the ViewModels Access Expression settings.

Template:

self.canAccess(<name of viewmodel as string>)

Example:

self.canAccess(User.ViewModels.UserSettings)

In the example above, we use the ViewModels operator to ensure that if the ViewModel name is changed, we get notified by the Designer.

See also:[edit source]

ViewModel access and security

OCLOperators ViewModels

Keywords: ViewModel, access, security