AppWizard switch screen from code

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • AppWizard switch screen from code

      Hi,

      Does anybody know how to switch to another screen from code? I have an error screen that I need to show when the application detects and error. Show it to the user and when the user dismisses, return to the previously shown screen.
    • Hello Marcel,

      Currently it is not possible to switch a screen from code. We are working already on API functions to allow the user to trigger any job which can be done via AppWizards interaction window.

      For now you can use variables as a workaround. To do so follow the steps below.

      1. Create two screens ID_SCREEN_00 and ID_SCREEN_01
      2. Add a variable to your project
      3. On screen ID_SCREEN_00 add an interaction which has the following properties:
      - Emitter: ID_VAR_00
      - Signal: VALUE_CHANGED
      - Job: SWAPSCREEN - select swap to ID_SCREEN_01
      - Click the "+" in the condition column to add a condition which checks for:
      - ID_VAR_00 == 1
      4. On screen ID_SCREEN_01 add an interaction which has the following properties:
      - Emitter: ID_VAR_00
      - Signal: VALUE_CHANGED
      - Job: SWAPSCREEN - select swap to ID_SCREEN_00
      - Click the "+" in the condition column to add a condition which checks for:
      - ID_VAR_00 == 0
      5. Within your code you can now set the value of the variable ID_VAR_00 either to 1 or 0. This will cause the interaction to be triggered and the screens to be swapped.

      Regards,
      Sven