Adobe liveCycle表单自动递增

/*
点击add按钮,增加一行。必须满足三个条件
 1.建立subform(top)、subform(a),subform(b),分别将a,b子表单嵌套在top表单中,为b表单添加“增加”和“删除”按钮;
 2.选中a表单,在右下binding面板设置repeat subform for each data item,打钩,根据需求设置每次增加的行数;
 3.选中“增加”按钮,在show下拉框中选择click事件,
 增加事件有三种写法:1、(相对定位)this.parent.resolveNode("a").instanceManager.addInstance(this.index);
 					 2、(绝对定位)xfa.form.form1.page.top.a.instanceManager.addInstance(this.index);
 					 3、_a.addInstance(1);
 在“删除”按钮增加事件:this.parent.resolveNode("a").instanceManager.removeInstance(this.index);
*/
this.parent.resolveNode("a").instanceManager.addInstance(this.index);

 

你可能感兴趣的:(Adobe liveCycle表单自动递增)