view select 多选
var calendarM = this.data.calendarM;this.view.select({
"application": "**",//数据中心中的应用
"view": "**", //视图的名称
"isMulti": false, //只允许单选
"width": "800px",
"height": "610px",
"filter": [
{
"logic":"and",
"path":"$work.startTimeMonth",
"comparison":"==",
"value":calendarM,
"formatType":"textValue"
}
}, function(items) {
//如果选择了某个数据,将数据赋值给表单输入框
if (items.length) {
var lid = this.target.json.id.split("..");
var cline = lid[2];//获取当前行
this.form.get("datatable").getModule(cline, "subject_1").setData(items[0].data.subject_1);
}
}.bind(this));
这个isMulti 无论设置true或者false 都是单选 可以多选 然后插入到datatable中吗
多行的话您需要通过数据表格的addLine去添加
页:
[1]