Standard Actions

M# provides pre-written button actions, for functionality which is used very commonly. In this tutorial we will have look at the standard button actions provided in M#. All the button actions have standard attributes e.g. is disabled, criteria etc.

Break the execution

This action breaks the execution of following actions and returns from the button event. This action is usually used in conjunction with a criteria. M# generates a return keyword in C# code. We have implemented this action with a role criteria, as the screenshots below show.

Browser Back

This action redirects the user to the previous page in browser history.

Close Browser Window

This action is used to close the browser window. M# generates client side code for this action.

Close Modal

This action is used close modal window page (For information on modal pages please read Modal VS Standard in chapter 6). M# generates a client side hander for this action.

Close Modal Refresh Parent

This action is also used for closing modal, it also refreshes the parent module

Close Modal Refresh Parent Fully

This action closes the modal page and refreshes the full page. M# generates client click event for this action and sets the parent window location to reload the same parent page.

DataBind

This actions calls the “DataBind()” of the module, which binds a data source to the invoked server control and all its child controls.

Log Off the User

This action logs off the logged in user. M# calls the “LogOff” method on “App.Context.User” instance to log off the user (For more information on “App.Context.User” please view tutorial Role in chapter 13).

Print the Page

This action generates client side hander, which calls javascipt "Window.Print()" to print the page.

Refresh Page

This action generates server side button hander and redirects to the same page, causing page refresh.

Return to Previous Page

This action uses the “RetrunUrl” querystring to redirect user to the previous page. M# generates client side button handler for this action.

Return to Previous Page Keep Running

This is same as the above action but remaining button work flow will be completed.

Please wait

This action displays please wait animation until the button work flow is completed.

Please Wait Block Screen

This action also shows the please wait animation, also restricting user access to the page contents.