Practical expressions to get insights into your model content
No edit summary
No edit summary
Line 1: Line 1:
<message>Write the content here to display this box</message>
<message>Write the content here to display this box</message>
Note: The OCL Expressions below can only be executed in MDriven Designer Model Debugger
[[File:2024-06-30 18h30 29.png|none|thumb|884x884px]]


'''NOTE:''' The OCL Expressions below can only be executed in the MDriven Designer Model Debugger.[[File:2024-06-30 18h30 29.png|none|thumb|884x884px]]


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

Revision as of 06:02, 1 July 2024


NOTE: The OCL Expressions below can only be executed in the MDriven Designer Model Debugger.

2024-06-30 18h30 29.png

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 2 days ago on 07/01/2024. What links here