on 2011 Jan 17 11:23 AM
Hi Experts,
We are trying to change to status of all contracts in an agreement to executed using a script on the moment of saving the agreement. Therefore we did the following:
agreementHome = doc.getIBeanHomeIfc();
listOfContracts = doc.getContractDocuments();
for (iter = 0; iter < listOfContracts.size(); iter++)
{
// get the contract
currentContract = listOfContracts.get(iter);
// get the CTR homebean
contractHome = currentContract.getIBeanHomeIfc();
contractHome.upgradeToEdit(currentContract);
contractHome.changePhase(doc.getObjectReference(), "Executed");
contractHome.save(currentContract);
}
The script is not giving any errors, but it is also not changing the status. Any ideas?
Best regards,
Tom
Request clarification before answering.
Hi Tom,
try to call changePhase for the contract itself...:
...
contractHome.changePhase(currentContract, "Executed");
...
Hope this helps.
regards,
Mario
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.