OCLOperators clear
Created by Hans.karlsen on 2018-07-13 · Last edited by Vale.buyondo on 2025-12-11.
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 callingclear, the list becomes empty.
Examples
Clear a role inside a Customer ViewModel Action
self.Orders->clear
Removes all Orders associated with the current Customer.
