Skip to main content

selectAction()

Last updated 4/07/2024

Example One

The following code adds the Sector value to the

variable
property on the
Five
object using the chart's xValue. The SectorStocks action ID is passed into the
selectAction()
function to display the action associated to the action ID.

Select the action ID SectorStocks
function ClickSector(five: Five, context: any, result: FiveError) : FiveError {
five.setVariable('Sector', context.xValue);
five.selectAction('SectorStocks');
return five.success(result);
}

Example Two

The following code selects the form associated to the action ID and selects the form record using the optional

recordKey
parameter which is the primary key.

JavaScript
Select a form action and associated form record
    five.selectAction('Customers', five.field.CustomerKey);