使用createDocument进入创建内容表单,带过去的数据获取不到
如题,使用
this.form.createDocument("xx栏目", "xx分类", {"id": '0c8adb84-0d71-47fa-b4ea-9558cd77498d'},this.session.user.identityList[0].distinguishedName, function(json){
// this.form.notice("创建成功!", "success");
this.form.get("view").reload();
}.bind(this));
进入创建内容表单页面,在表单页使用:
this.documentContext.getDocument()
无法获取到传过来的id数据???请问应当如何获取?
this.document.getDocument() 是获取内容管理实例数据,业务数据要使用 this.data 来获取,您这里获取id的代码是: this.data.id
页:
[1]