I have written a new document plugin that should just change the value of a certain property when executing the plugin. This works fine but the value has not been saved to the backend. It is strange because after executing the plugin the value has been changed - it is just not persistet…
Here is my code snippet:
public void onClickEvent(OwObject oObject_p, OwObject oParent_p, OwClientRefreshContext refreshCtx_p) throws Exception
{
OwProperty assignee = oObject_p.getProperty("D:smileysurprised:wd:hrdocument.owd:documentAssignee");
OwBaseUserInfo userInfo = getContext().getCurrentUser();
if (null != assignee && null != userInfo) {
assignee.setValue(userInfo.getUserDisplayName());
}
if (null != refreshCtx_p) {
refreshCtx_p.onClientRefreshContextUpdate(OwUpdateCodes.UPDATE_OBJECT_PROPERTY, null);
}
}