|
|
我的脚本
var doc = getCurrentDocument();
var value = doc.getItemValueAsString("收件人2");
if(value == null || value.trim().length() <= 0){
doc.findItem("收件人2").setValue("草稿");
var process = getDocProcess(getApplication()); //Document操作类
process.doUpdate(doc);
}
是写在动作执行后脚本里的
前台点按钮时报错
JavaScriptRunning:[FormName:力凯水务协同办公(OA)管理系统/公文收发/FileDispatch Activity Action(11e1-4e4c-973af5c7-a1ba-d9722f7701e3).保存草稿afterActionScript]: TypeError: Cannot call method "setValue" of null (11e1-4e4c-973af5c7-a1ba-d9722f7701e3).保存草稿afterActionScript#4)
返回 |
|