Dear all,
When I update the master agreement status, it works fine,but the status is blank.
Image may be NSFW.
Clik here to view.
But when i leave it to the outside,it can show the status.
Image may be NSFW.
Clik here to view.
Code is as follows:
ValueListValueIBeanHomeIfc valueListHome = IBeanHomeLocator.lookup(session,doc.getStatusRef()); | ||||
doc.getIBeanHomeIfc().upgradeToEdit(doc); | ||||
ValueListValueIBeanIfc valueList = valueListHome.findUniqueByNameType("Executed Agreement",1); | ||||
doc.setStatusRef(valueList.getLocalizedObjectReference()); | ||||
doc.getIBeanHomeIfc().save(doc); | ||||
doc.getIBeanHomeIfc().downgradeToView(doc); |
I don't know what the reason is,please help me ,thank you very much.