on 09-12-2012 6:48 AM
ESO Experts,
I am trying to change the status(VLV and non-editable) of Master Agreement on a certain condition by using the following code.
statusHome = IBeanHomeLocator.lookup(session, doc.getStatusRef());
status = statusHome.findUniqueByNameType("Executed", 1);
doc.setStatusRef(status.getLocalizedObjectReference());
But after executing the script the status is showing as blank. Appreciate if you can provide your comments on this.
Best Regards,
Adarshpal Brar
Hi Adarshpal,
Your code looks ok to me. Have you checked the logs for any errors? You may want to check if the status variable is what you are expecting. I would suggest writing it to the log to troubleshoot.
Regards,
Vikram
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.