Monday, September 24, 2018

Ways to Cancel nlobjAssistant

1. Cancel Assistant and be Redirected to Another Resource But be able to Pick up from where it Left Off: 

else if (assistant.getLastAction() == "cancel")
{
nlapiSetRedirectURL('tasklink', "CARD_-10");
assistant.setCurrentStep(assistant.getLastStep());
}

 
2. Cancel assistant and be Redirected to a Resource and Start all Over to the Assistant:

else if (assistant.getLastAction() == "cancel")
{
nlapiSetRedirectURL('tasklink', "CARD_-10");
assistant.setCurrentStep(assistant.getStep("companyinformation")); //where 'companyinformation' is the first step
}

No comments:

Post a Comment