🚀 Welcome to MDriven Learn –  MDriven is now on Discord!  Don’t miss the latest Release Notes.
Action names
This page was created by Stephanie on 2023-06-05. Last edited by Edgar on 2025-01-20.

When declaring Actions in MDriven  you have the option of giving a name (required) and a Presentation (defaults to <Name>).

The reason for the two different properties are that the ActionName must be globally unique for all actions – it is used for presentation of the action and as reference name of the action. The presentation is however the text we use when presenting the action in a contextmenu or in the MDriven Prototype leftside action column.

Since the Presentation often resembles the Name we have introduced the following shorthand/activecontent:

ActionName Presentation value Presentation result
Somename <Name> Somename
SomeName <Name> Some Name
SomeName Extra1 <Name>

Extra2

Extra1 Some Name Extra 2
SomeName <AsString> “DefaultStringRep of context object”
SomeName <Name>

<AsString>

Some Name “DefaultStringRep of context object”
SomeName <AsString:Attribute1> “Value of attribute1 of context object”
SomeName Extra1 <Name>

Extra2 <AsString:Attribute1> Extra3

Extra1 Some Name Extra 2 “Value of attribute1 of context object” Extra 3

The context object is of course the object that the actions is acting on. So it is intended to be used with “Class actions”.

MDriven Chat

How would you like to chat today?

Setting up your conversation…

This may take a few moments