Hello Community!
I am developing a functionality such as, a data grid within a detail, is populated when I Click a button. In the same time when I click the button I want to reload the grid data. Which is the proper syntax for the callback function in Creatio, because i havent seen many examples in the Community.
onGenerateButtonClick: function(callback,scope)
{
var currentRecordId = this.get("MasterRecordId");
var args = {
sysProcessName: "FZProcess_dc5a9de",
parameters: {
RecordId: currentRecordId,
Amount: FZAmount,
Interes: FZInteres,
StartPaymentDate: FZStartPaymentDate,
Tenor: FZTenor
}
}
this.reloadGridData();
ProcessModuleUtilities.executeProcess(args);
}
I want to use this.reloadGridData(); inside a callback, after the ProcessModuleUtilities.executeProcess(args) is finished , which is the proper way to do this ?