The Interactions tab says what the application does when the user acts: for each event (a click, an input, a window opening…), you chain actions picked from a palette, without writing code.
Choosing an event
On the left, choose the window, then an event in the tree: the window (Opening, Closing), then each of its controls and their events. The "Used events only" switch shows only those that already have actions.
Event
When
Opening, Closing
the window opens or closes
Click
click on a label, a button, an image, a link
Double-click
double-click on a row of a list or table
Change
the value of a field, check box, slider… changes
Validation (Enter)
Enter key in a text field
Selection
another item is chosen in a list, a selector, a table
Chaining actions
In the center, the timeline shows the event's actions, run from top to bottom. Click an action in the "Add an action" palette to add it; its parameters are set on the right. The Move up, Move down and Delete buttons rearrange the timeline.
The 26 actions
Windows
Action
Parameters
Open a window
the window; "Close the current window"
Close a window
the window (by default, the current window)
Quit the application
—
Dialog
Action
Parameters
Show a message
the message; the kind: Information, Warning, Error
Ask for confirmation
the question; the "If yes" and "If no" actions
Send a notification
the title and the message
Controls
Action
Parameters
Change a property
the control, the property (value, text, visible…), the new value
Show / hide
the controls; visible or not
Enable / disable
the controls; enabled or not
Clear fields
the controls (none checked: all)
Check required fields
the fields; an optional message. If one is empty, the following actions are not run
Set focus
the control
Data
Action
Parameters
New record
the entity; clears the bound controls
Save the record
the entity; inserts or updates the record from the bound controls
Load a record
the entity, the record key
Delete the record
the entity; "Ask for confirmation"
Browse records
the entity; First, Previous, Next, Last
Fill a table
the table; an optional condition
Reports
Action
Parameters
Print a report
the report; "Print preview"
Export a report
the report; the format: PDF, ODT, ODS, ODP, ODG, DOCX, XLSX or PPTX; the file (empty: the report name)
System
Action
Parameters
Open a web address
the address
Copy to clipboard
the text
Change language
the language
Logic
Action
Parameters
If… then… else
the condition; the "Then" and "Else" actions
Call a procedure
the procedure of a scripts module; the arguments, separated by commas
Argile code
a few lines of Argile, with highlighting and completion
Conditions and branches
"Ask for confirmation" and "If… then… else" have two branches. Click a branch: new actions will go into it ("— new actions will go here"). Branches can be nested as deeply as needed.
Expressions
The "value", "condition", "key", "address"… parameters are Argile expressions: a text in quotes, a number, the value of a control, a calculation.
Each expression is checked as you type: "Valid — type string", or the exact error ("Expected type boolean, found integer"). A control of another window is referred to with its window's name: FEN_Clients.SAI_Nom.value.
Converting to code
"Convert to code" replaces the event's actions with a single, equivalent "Argile code" action, to go further than the palette allows (see Argile). Message texts join the message catalog, with their translations. The conversion only happens when you ask for it and can be undone with Ctrl+Z.