本帖最后由 nice 于 2014-6-12 16:55 编辑
我的待办摘要中获取作者名称 getname出错,不知道是什么原因。
代码如下
/*****************
var authorname = getWebUser().getName();
var starttime = getCurDate("yyyy-MM-dd HH:mm:ss");
var doc = getCurrentDocument();
var author =doc.getAuthor().getName();
var rtn="";
rtn=authorname+"于"+ starttime + "向您提交了《"+author+"的订货申请单》,请办理!";
rtn;
********************/
报错为 TypeError cannot call method "getName" of null |