Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

...

...

...

...

...

...

...

...

...

...

...

Overview

The purpose of this lesson is explain the Actions in Wayfast. This “Actions” are events that allow us to interact with our Project DB. To make this connection, it’s mandatory to associate an action with a control. In previous tutorials, we analyzed how to create controls and how they are connect to dataset. Actions will be connected to those entities when the application user has to interact with the interface.     

Actions

Preconditions

We need to create a Dataset and Controls in our project’s page:

...

Now we have the new objects available in Wayfast Application to associate with Controls and Actions.

...

How to create new Action?

Return to Page’s information details.

...

Verify in the DB that the “Hola_Mundo_Acciones” table has the new input values inserted through the app

...

How to update Dataset with new Action created?

If the action created and linked to the control (button) is updating the DB but the new data is not displayed on screen in the moment that we inserted, we need to check how the new action is connected to the Dataset.

...

Input new data and click “Agregar” button. Every time that we click on the button, the Dataset will be executed and consequently, the information will be refreshed in the grid.

Recap

In the first part, we reinforced the preconditions to create pages with basic structure (dataset and controls) and then we learnt about how to create new action items and how they can be related to these Controls previously created. In the second part, we verified how the interaction is executed in the application environment and how this can be edited to adjust the interaction regarding what we display and what we insert in the DB.

...