selectAction()
Last updated 2/02/2025
Select the action ID to generate a report
The following code selects the report associated to the action ID. With the code attached to an action button, the report will generate when the action button is clicked.
Select the action ID to generate a report
function GenerateReport(five: Five, context: any, result: FiveError) : FiveError {
five.selectAction('StaffPhoneExtensions');
return five.success(result);
}
Select the action ID to generate a report
function GenerateReport(five, context, result) {
five.selectAction('StaffPhoneExtensions');
return five.success(result);
}
Select a form action and associated form record
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.
Select a form action and associated form record
function SelectCustomerRecord (five: Five, context: any, result: FiveError) : FiveError {
five.selectAction('Customers', five.field.CustomerKey);
return five.success(result);
}
Select a form action and associated form record
function SelectCustomerRecord (five, context, result) {
five.selectAction('Customers', five.field.CustomerKey);
return five.success(result);
}
Select an action ID
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);
}
Select a form action, a form record, and open a page
The following code selects the Customers form action using the current customer's record key and opens the Addresses page.
Select a form action, a form record, and open a page
function OpenCustomerRecord(five: Five, context: any, result: FiveError) : FiveError {
five.selectAction('Customers', five.field.Customer.CustomerKey, 'Addresses');
return five.success(result);
}
Select a form action, a form record, and open a page
function OpenCustomerRecord(five, context, result) {
five.selectAction('Customers', five.field.Customer.CustomerKey, 'Addresses');
return five.success(result);
}