I want to do some actions when the NEXT button is clicked in a business process flow, i have followed thebelow thread :
and implemented the below code, just to get the current Active stage before performing my action, i registeredd this code on the onLoad event of the BPF entity, but i cant seem to find the script in my debugger when I load the entity the BPF is registered against. some with better knowledge, please help. Cheers
function updateDate(context) {
var formContext = context.getFormContext();
formContext.data.process.addOnStageChange(onStageChange)
}
function onStageChange(context) {
var formContext = context.getFormContext();
if (ExecutionContextObj.getEventArgs().getDirect() == "next") {
var activeStage = formContext.data.process.getActiveStage();
if (activeStage) {
}
}
}
*This post is locked for comments