通过书写代码,监听事件,可实现行内联动。

本例文件位置:安装目录\YZSoft\request\forms\Expense.js。

体验:应用模块->发起申请->报销。

代码:

listeners: {

   scope: me,

   change: 'onTypeChange'

}

onTypeChange: function (field) {

   var me = this,

       block = field.up('yzrepeateritem'),

       fields = block.getFields();

   fields.itemcomments.setValue(field.getValue());

}

Created with the Personal Edition of HelpNDoc: Easily create HTML Help documents