OCLOperators clear
This page was created by Hans.karlsen on 2018-07-13. Last edited by Restore-user on 2026-10-21.
The clear operator removes all elements from the collection it is applied to. It is used on many-role associations or any mutable ViewModel list. After calling clear, the list becomes empty.
Examples
Clear a role inside a Customer ViewModel Action
self.Orders->clear
Removes all Orders associated with the current Customer.
