Practical expressions to get insights into your model content
No edit summary |
(Replacing message template with parser tag) |
||
(6 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<message>Write the content here to display this box</message> | |||
All ViewModels that have at least one action that shows it: | 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) | Span.allinstances->select(span|span.ShowByActions->notEmpty)->collect(span|span.Name,span.Class.Name,span.Category.Name,span.ShowByActions.ListPresentationTypedDetails->ascommalist,span.CodeComment) | ||
Line 9: | Line 10: | ||
All actions that do not navigate - meaning they do something else - like change data: | 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) | 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) | ||
[[Category: | [[Category:Model]] | ||
[[Category: | [[Category:OCL]] |
Latest revision as of 08:05, 17 June 2024
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 13 days ago on 06/17/2024. What links here