Adding Commands

Custom Actions provide the possibility to expose PL/SQL methods in IFS Applications through Aurena Pages and Commands provides the functionality to execute Custom Actions, navigate between application pages, navigate to external URLs and to execute Quick Reports. The navigations can be done with parameters if required.

Contents

Commands

Commands are added as buttons to pages and can be added to the top header or above some page sections.

Commands are added to Aurena Pages using the Page Designer. There are four types of Commands that can be added to pages:

Command Groups

All commands are placed in a command group. Where the command group can contain a single command, multiple commands or even structures where a command group contains command groups. The main elements for which commands can be added are pages and lists. The top attribute for commands structure on these elements are the optional attribute Command Groups. This attribute is optional so it is not always present on a page or a list. If that is the case, expand optional attributes by clicking on (...) With command groups available, click (+) to add a command or command group.

There are two ways to add a command

Execute Action Command

Execute action command is a command that executes an action in the projection. The action can be a core action, an action added by a customization or a custom action. Custom Actions can be added to a Projection either in the New Projection Configuration assistant or by modifying an existing Projection Configuration in Projection Configuration Page. See Custom Actions for more information

Add an Execute Action type command

  1. Navigate to the Page where Commands should be added and open the page designer.
  2.  If the Active Page group does not show Command Groups attribute click (...) to show optional attributes.
  3. Add command by clicking (+) on the Command Groups node.
  4. Select command type to be created. I.e. Execute Action
  5. Enter a label for the command
  6. From the Action drop down select the action to be executed. It is only possible to execute actions provided by the page projection
  7. Choose method, this attribute only makes a difference is the command is executed on a list with multiple records selected. For single record pages method action is the typical choice. This attribute is optional and will default to action if left empty.

    Action: states that each record in the selection will be treated individually and one server call per record will be performed. With action method each successful call is committed so an error occurring will only roll back the record with the error.

    Bulk Action: All selected records will be collected and called in one bulk execute. The server will perform the loop over the records and call the action for each record. With a bulk execute an error cause the server to rollback all changes made during the transaction.
     
  8. If the action to be executed has parameters then values needs to be mapped. In order to map the parameters click on the edit icon in front of the Parameter Mappings and Edit Key Values. The values assigned (mapped) can either be record attributes values or static. Use the drop down for a list of the available attributes for the record.

  9. With all attributes added as needed close the dialog.

    Added Commands will be listed with other Commands in the page. Since the Command was added to the top level of active page it will be listed on top of the Page. It is possible to add Commands for some page sections as well.

Navigation Link Command

A navigation link command is a command that will navigate to an internal target. e.g. page

Add a Navigation Link type command

  1. Navigate to the Page where Commands should be added and open the page designer.
  2.  If the Active Page group does not show Command Groups attribute click (...) to show optional attributes.
  3. Add command by clicking (+) on the Command Groups node.
  4. Select command type to be created. I.e. NavigationLink

  5. Set a Label to the Command and choose the Path to the Page that should be navigated to.

  6. If any parameters should be added, map the parameters in order to navigate to the target page with filtered results for the selected record. In order to map the parameters: click on the edit icon in front of the Parameter Mappings and Edit Key Values. Submit all the information and the created Command will be displayed under the Commandgroups as below.

     

  7. Added Command will be listed with other Commands in the page. Since the Command was added to the active page it will be listed on top of the Page. It is possible to add Commands for some page sections as well.

    Once the Command button is clicked it will be redirected to Page that needs to be navigated with the filtered records

External Navigation Link Command

External navigation link is simply put a web reference. e.g. http, https

Adding an ExternalNavigationLink type Command

  1. Navigate to the Page where Commands should be added and open the page designer.
  2.  If the Active Page group does not show Command Groups attribute click (...) to show optional attributes.
  3. Add command by clicking (+) on the Command Groups node.
  4. Select command type to be created. I.e. ExternalNavigationLink
  5. Set a Label to the Command and write the URL that should be navigated to.
    Current supported protocols are: http:// and https://

  6. If any parameters should be added, provide an URL with the parameters (one or several) included in the URL field and then and then click on the edit icon to the right of the URL field.
  7. Clicking on the edit icon will take you to an editor where parameters can be edited. To use multiple parameters, these needs to be included in the URL in Step 3.


    Confirming and closing will update the URL.

    Note that the URL with its parameters can be defined manually without using the Edit Key Values editor.
  8. An added Command will be listed with other Commands in the page. Since the Command was added to the active page it will be listed on top of the Page. It is possible to add Commands to some page sections as well. Once the Command button is clicked it will navigate to the URL defined in the configuration setup.

 

Execute Quick Report Command

A command that will execute a given quick report

Adding a ExecuteQuickReport type Command

  1. Navigate to the Page where Commands should be added and open the page designer.
  2.  If the Active Page group does not show Command Groups attribute click (...) to show optional attributes.
  3. Add command by clicking (+) on the Command Groups node.
  4. Select command type to be created. I.e. ExecuteQuickReport
  5. Fill in the dialog:

    Field Description

    Label

    The Custom Command label.

    QuickReportType

    All installed Quick Report types are listed in the dropdown menu. This value is taken as a filter for the QuickReport field values.

    QuickReport

    All available Quick Reports of the selected Quick Report type. If the Quick Report type is not selected it will display all available Quick Reports for this instance.
    ParameterMappings The key value editor allows the end user to map context values as report parameters. Currently this is available for SQL Quick Reports only. Once the parameters are mapped, the report parameter dialog will be shown with parameter values pre populated
    DirectExecute Setting this value to true will execture the report without promting the parameter dialog. Example: for an SQL Quick Report where the user have mapped the context parameters they can set this to true. And the report will directly display the result.

 

NOTE: Once added, only some attributes of the command (example: label) can be edited. To edit other attributes, remove existing command and re-create it with desired values.