Practical expressions to get insights into your model content

All ViewModels that have at least one action that shows it:

Span.allinstances->select(span|span.ShowByActions->notEmpty)->collect(span|span.Name,span.Class.Name,span.Category.Name,span.ShowByActions.ListPresentationTypedDetails->ascommalist,span.CodeComment)

All actions that navigate to another view:

AbstractAction.allinstances->select(aa|aa.BringUpViewModel->notEmpty)->collect(aa|aa.Name,aa.OclType.asstring,aa.ListPresentationTypedDetails,aa.MenuGroup.Name,aa.ViewModelIsModal,aa.ViewModelIsPopUp)

All serverside ViewModels:

Span.allinstances->select(span|span.ShowByActions->isempty and span.CriteriaForServerSideExecute->notempty) ->collect(span|span.Name,span.Class.Name,span.Category.Name,span.CodeComment)

All ViewModels that have the ReportName column - indicating that they are a template for OpenDocument reports:

Span.allinstances->select(span|span.OwnedColumns->exists(c|c.Name='ReportFileName')) ->collect(span|span.Name,span.Class.Name,span.Category.Name,span.OwnedColumns->select(c|c.Name='ReportFileName')->first.Expression,span.CodeComment)

All actions that do not navigate - meaning they do something else - like change data:

AbstractAction.allinstances->select(aa|aa.BringUpViewModel->isEmpty)->collect(aa|aa.Name,aa.OclType.asstring,aa.ListPresentationTypedDetails,aa.MenuGroup.Name,aa->safecast(ContextAction).ViewModelContext.Name,aa->safecast(ClassAction).ClassToPerformActionOn.Name,aa.AreYouSureQuestion)
This page was edited 1 days ago on 04/26/2024. What links here