0
我需要的ID值,这样做:如何获取物品的id值(物品内)?
Application.Exaple = Ext.extend(Ext.form.FormPanel, {
record_id : 0,
initComponent : function() {
Ext.apply(this, {
items: [
{
name : 'id',
id : 'id',
fieldLabel : 'ID',
readOnly : true,
hidden : true,
listeners : {
'render' : function() {
this.record_id = this.value;
}
}
},
{
name : 'pum',
id : 'pum',
handler : function() {
alert(this.record_id); // not work
}
,但不起作用。我究竟做错了什么?