selectAction()
Last updated 14/02/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);
}
Select the action ID SectorStocks
function ClickSector(five, context, result) {
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.
Select a form action and associated form record
five.selectAction('Customers', '51435f83-339c-4794-a765-b8f301e1151b');