Skip to main content

Veritran Docs

Invoke a Screen-type Interface

Invoking a screen-type interface allows you to use the screens flows created as interfaces of a module in the screens of a parent app or module. To invoke an interface, you must be working in the screens editor.

To be able to invoke a screen interface from the screens editor, previously create the interface and link the module to the parent app or module. The instructions below set an example on how to invoke a screen-type interface from the parent app but apply if you are invoking the interface from either an app or another module.

In this example, you need to reuse an onboarding screens flow. The flow includes three screens. You will invoke the first screen of this onboarding screens flow from the Sign in button that appears in the parent app screen. Then, you will define that the user must be reidrected to the GoldBank app home page when they click on the Ready to start! label that appears in the last screen of the screens flow. To achieve the redirection, you will set a message in the interface that asks the parent app to execute an action: that action will be to show the home page of the GoldBank app.

  1. Go to Apps & Modules. Click Modules to open the tab.

    message_interface_COMP_INTER.gif
  2. Find the Login_module module and click on the module card to be redirected to the Overview.

  3. Click Screens. The three screens that are part of the screens flow are Onboarding Step, Onboarding Step 2 and Onboarding Step 3. The three screens are linked between them so when the user clicks on the right arrow, they are taken to the next screen.

  4. Find the Onboarding Step 3 screen and double click on the screen card to open the screens editor.

  5. Go to the left panel and click Treeview to open the tab. Find the TxtLbl_Start component and click it to select it in the canvas.

  6. Go to the right panel and then click Actions to open the tab.

  7. Go to the Events & Actions section. In the OnClick attribute, click the vertical three dot icon. The Create New Link modal opens, where you can invoke the screen interface message set, that will allow you to set an action to occur when the user clicks on the Ready to start label. Refer to the instructions below to learn how to invoke the message.

    1. In the Select link type drop-down menu, click the arrow and select Interface Message.

    2. In the Select Message field, click the arrow and select Onboarding_interface@Onboarding_interface: SHOW NEXT.

  8. Go to the saving options and click Save and close. Complete the Commit message with the description Changes to Start label component and click Save and close. Then, click Close in the confirmation message to go to the Screens page.

  9. Go to the Overview and click Apps & Modules. Then, click Apps to open the tab.

  10. Find the GoldBank app and click on the app card.

  11. In the Overview, click Settings (Overview > Settings).

    Note

    Enabling dependencies allows you to use the module’s content in the screens editor for the app selected. To learn more about dependencies, read Settings.

    DEPENDENCIES.gif
  12. Click Dependencies to open the tab.

  13. Find the Login_module module and click the toggle switch to link it to the GoldBank app.

  14. Click Save & Close to save changes and be redirected to the Overview.

  15. In the Overview, click Screens. Find the Sign in screen and click Design or double click the screen card.

    Note

    You can also access the screens of the app in Branch Edition > Screens.

    SCREEN_INTERFACE_STEP_2.gif
  16. Once the screens editor opens, go to the left panel. Click Treeview . The treeview tab contains a list of all the components in the screen.

  17. Click Button to select the Sign in button component.

  18. Go to the right panel and then click Actions to open the tab.

  19. Go to the Events & Actions section. In the OnClick attribute, click the vertical three dot icon. The Create New Link modal opens, where you can invoke the screen interface and configure it according to the parameters set when you created the interface. Refer to the instructions below to learn how to invoke the interface.

    1. In the Select link type drop-down menu, click the arrow and select Module Screen.

    2. The Link to Module modal opens in the Target tab. This modal contains three tabs: the Target tab contains the modules linked as dependencies to the parent app; the Inputs & Outputs tab contains the Inputs, Outputs, Events and Messages parameters configured in the interface; the Find the Login_module module and click it.

      Note

      The Link to Module modal contains three tabs:

      • Target tab: contains the modules linked as dependencies to the parent app.

      • Inputs & Outputs tab: contains the Inputs, Outputs, Events and Messages parameters configured in the interface.

      • On Next tab: allows you to set actions to be triggered after the screens flow finishes. This tab must not be configured.

    3. Go to the Use default settings checkbox and unselect it, so you can configure the screen interface settings.

    4. Go to the Inputs & Outputs tab and click Messages. For this example, you will only work on the Messages tab.

      Important

      Event parameters must not be configured for screen-type interfaces.

    5. Go to the SHOWNEXT parameter. As configured In the Messages Mapping field, you must enter the syntax that represents the app screen that will be shown once the screens flow finishes. For this example, enter VV01|contents1:S004. Now, when the user clicks on the Ready to start! label mentioned above, the interface message will be triggered, that will in turn invoke the screen defined in this parameter.

    6. Click Ready to link.

Best practice

As a best practice, modules - and therefore, their interfaces - should not have a theme applied. Hence, when an interface is invoked in the screens editor, the component or screens flow will inherit the theme applied to the parent app. Applying a theme to a module affects the reusable nature of the module.