Creating Statement

You can create a statement in logic editor either from the editor pane in the top, or from the view canvas pane in the bottom. These two approaches are described below.

Create statement from editor pane

You create a new statement in Action's logic editor by clicking on the ellipsis icon and selecting "Statement". You are presented with a search field where you can type one or more words describing what you want to achieve. System presents a set of suggestions to help with selecting appropriate command. Once you select a command, you are promoted to provide values for parameters.

This approach is preferable in following conditions:

You need a statement to interact with UI, and the application UI is not yet available. You are unable to capture Context view and required to work with abstract elements.

You need to create statements for general logic, API services, database etc.

Create statement from View Canvas

When the application UI is already developed and you are able to capture views, this approach is preferable for statements related to UI interaction. In the view canvas, mouse-over on the particular element you want to write a statement and right-click. You are presented with set of possible commands on that element. Depending on the type of the element, one of the commands is already pre-selected.

You can filter or scroll through the commands list to select the appropriate command. Once you select the command, you are navigated to the code editor area with the New Statement structure showing up. Continue creating the statement by filling values for parameters.

Important Note:

When hovering on an element in view canvas, make sure to select correct element before right-clicking. It may be possible there are multiple elements in close proximity (in the DOM hierarchy). Analyze the tooltip on element hover and decide on the correct element before proceeding with statement creation.