Sequencing and Sorting in Actions

Sequencing of actions is of great importance. In Kuika, actions added to screens or elements during the application development process work in a linear order. That is, the actions you add to a screen or element are listed in the Actions section under the Properties panel in the order of addition (from the first added action to the last added action). The working order of multiple actions you add during the application development process proceeds in this linear order.

According to this order, the first action added will run first, followed by the actions added after it. The order directly affects the interactions between actions. For example, the return values of an action can be used as parameters for subsequent actions.

Since actions work sequentially, the output of one action can be used as input for the next action. This ensures that data flows correctly between actions and that the application works correctly.

Sample Scenario: Add Staff Page

When the Save button is clicked on the Add a Personnel page, the following steps should take place:

  1. Staff information should be added.
  2. A notification should be shown that the staff addition was successful.
  3. Return to the Staff Listing screen.

Three different actions are used to ensure this sequence of actions:

  1. Save Staff: Special action to add staff.
  2. Notify: Action that shows a notification that staff has been added.
  3. Go Back: Action that returns to the Staff Listing screen.

These actions should work in order:

  • First, the Save Staff action will be triggered and the staff will be added.
  • Then the Notify action will be triggered and a notification will be shown that the staff addition has been completed successfully.
  • Finally, the Go Back action will work, redirecting the user to the Staff Listing screen.

You can change the order of the actions you add to the screen or element later. You can follow these steps to change the action order:

  1. Go to the Properties section of the relevant screen or element.
  2. Under Actions, you will see the actions you have added listed in order.
  3. Click on the action you want to change the order of and drag and drop the action to the desired order while holding down with the mouse.

This will change the order of the actions and allow you to organize the flow of your application in the way you want.