Global actions
No edit summary
Tag: 2017 source edit
 
(16 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Category:The MDriven Book]]
<message>Write the content here to display this box</message>
[[Category:Actions]]
=== Definition ===
Main menu actions are called GlobalActions. We start by bringing up the Actions definition window:
Global actions are Main Menu actions. They often bring up a view that is not rooted in a specific object but rather helps the user find objects to work on in other views. Un-rooted views are commonly referred to as Seekers (these help the user search/filter a large set of objects in the database) or as browsers (these show all available instances of a Class).


[[File:Main Menu actions image 1.png|frameless|link=https://wiki.mdriven.net/index.php/File:Main_Menu_actions_image_1.png]]
=== Where to find them ===
Open the global actions window by clicking on the gears icon on the MDriven Designer.  


We add some GlobalActions and give them names based on what we want them to do in the end:
[[File:Global actions 1.png|frameless]]


[[File:Main Menu actions image 2.png|frameless|link=https://wiki.mdriven.net/index.php/File:Main_Menu_actions_image_2.png]]
As you see this view,


If I run this as is with MDriven prototyping, I get this main menu:
[[File:Global actions image 3.png|frameless|731x731px]]


[[File:Main Menu actions image 3.png|frameless|link=https://wiki.mdriven.net/index.php/File:Main_Menu_actions_image_3.png]]
you can click on the actions to the left or add global actions. To the right, you see the current main menu. Global actions are what build the main menu.  


But we want to organize the menu, so we create some Menu-Groups:
There are '''5''' standard actions:
# '''Exit''': Exit isn't used usually in a web application but is used in a Windows application to quit the application. It is used to exit applications not used on the web.
# '''Refresh''': reloads data from the database - usually not used in a web application either.
# '''Save''': Saves the current changes
# '''Redo''': Redoes what has been undone in multiple steps
# '''Undo''': Undoes what has been changed in multiple steps
If you delete or don't see the standard actions - say you delete "exit" - you can click on ensure standard actions and these five actions will be added.   


[[File:Main Menu actions image 4.png|frameless|link=https://wiki.mdriven.net/index.php/File:Main_Menu_actions_image_4.png]]
'''Beware''' that this window can be made smaller and hide buttons. Keep the actions windows big enough to see the ensure standard actions and the delete button for an action. 


[[File:Main Menu actions image 5.png|frameless|link=https://wiki.mdriven.net/index.php/File:Main_Menu_actions_image_5.png]]
<span class="col-orange">The MDriven Book</span> - '''Next Chapter:''' [[Training:Action names|Action names]]
 
[[Category:The MDriven Book]]
Now, I can decide in what group my actions should be:
[[Category:Actions]]
 
[[File:Main Menu actions image 6.png|frameless|link=https://wiki.mdriven.net/index.php/File:Main_Menu_actions_image_6.png]]
 
then I get this result when prototyping:
 
[[File:Main Menu actions image 7.png|frameless|link=https://wiki.mdriven.net/index.php/File:Main_Menu_actions_image_7.png]]
 
To get the internal order and dividers into the menu, I need to set the Divider group for the items. If this differs between two actions, they will be separated by a divider. If it is the same between two actions, the actions will be sorted on the “Sort order in Group” value within the group.[[File:Main Menu actions image 8.png|none|thumb|link=https://wiki.mdriven.net/index.php/File:Main_Menu_actions_image_8.png]]This is what I get in prototyping now:
 
[[File:Main Menu actions image 9.png|frameless|link=https://wiki.mdriven.net/index.php/File:Main_Menu_actions_image_9.png]]
 
If I want to organize the actions in sub-menus, I do this by declaring a new Menu group:
 
[[File:Main Menu actions image 10.png|frameless|link=https://wiki.mdriven.net/index.php/File:Main_Menu_actions_image_10.png]]
 
And I use that group on the actions I want in the submenu:
 
[[File:Main Menu actions image 11.png|frameless|link=https://wiki.mdriven.net/index.php/File:Main_Menu_actions_image_11.png]]
 
The strategy for creating context menus is exactly the same.
 
The MDriven Book - See: [[Action names]]

Latest revision as of 06:51, 24 June 2024

Definition

Global actions are Main Menu actions. They often bring up a view that is not rooted in a specific object but rather helps the user find objects to work on in other views. Un-rooted views are commonly referred to as Seekers (these help the user search/filter a large set of objects in the database) or as browsers (these show all available instances of a Class).

Where to find them

Open the global actions window by clicking on the gears icon on the MDriven Designer.

Global actions 1.png

As you see this view,

Global actions image 3.png

you can click on the actions to the left or add global actions. To the right, you see the current main menu. Global actions are what build the main menu.

There are 5 standard actions:

  1. Exit: Exit isn't used usually in a web application but is used in a Windows application to quit the application. It is used to exit applications not used on the web.
  2. Refresh: reloads data from the database - usually not used in a web application either.
  3. Save: Saves the current changes
  4. Redo: Redoes what has been undone in multiple steps
  5. Undo: Undoes what has been changed in multiple steps

If you delete or don't see the standard actions - say you delete "exit" - you can click on ensure standard actions and these five actions will be added.   

Beware that this window can be made smaller and hide buttons. Keep the actions windows big enough to see the ensure standard actions and the delete button for an action. 

The MDriven Book - Next Chapter: Action names

This page was edited 9 days ago on 06/24/2024. What links here