View.confirm(message, callback)
View.confirm(message, callback)
Displays a confirmation dialog.
Parameters:
message
(String): message text.
callback
(function reference): callback function
Example:
View.confirm(message, function(button) {
if (button == 'yes') {
record.isNew = false;
record.setValue('activity_log.status', 'CANCELLED');
controller.mainDataSource.saveRecord(record);
if (controller.mainPanel) {
controller.mainPanel.refresh(); }
}
});