表单的文本字段控件,如何获得个人的属性值
我在表单中添加了文本字段控件,使用脚本如下:
var attributeList = this.org.getPersonAttribute( this.workContext.getWork().creatorIdentityDn, post1 );
return attributeList.pos1;
想获取里面的属性值和描述,但是这段脚本没有返回任何信息
creatorIdentityDn您传的是身份,应该传个人creatorPersonDn var attributeList = this.org.getPersonAttribute( this.workContext.getWork().creatorPersonDn, post1);
return attributeList.post1;
修改后 还是获取不到个人属性的值 是哪里错了么 post1您有定义变量吗?您这里如果没定义变量是需要加引号的 var post1 = String;
var attributeList = this.org.getPersonAttribute( this.workContext.getWork().creatorPersonDn, post1 );
return attributeList.post1;
是这样定义变量的么? 还是无法返回人员属性 return attributeList.post1; 那您这里post1是什么?
您debugger看一下,attributeList是一个数组 post1是值个人属性里的属性名,想通过那条脚本返回取得属性里面的值 您debugger看一下,attributeList是一个数组,看看它的数据格式,是否有取到东西
页:
[1]