vijaypr.chak
25 Aug 2008, 6:42 AM
Hi,
We are using a ext checkbox component which is defined as below,
xtype": "checkbox",
"id": "noteForm_propagate",
"fieldLabel": "Propagate Note to Related",
"widthFactor" : -1,
"showOn": "new",
"name": "propagate"
"xtype": "panel",
"id": "noteForm_propagaterules",
"html": test",
"name": "cannotpropagate"
and called from a javascript file as below
this.editNoteWindow.checkComponent = function(theContainer, theComponent, itemIndex){
if(theComponent.id)
{
if(theComponent.id == "noteForm_propagate")
{
return(false);
}
if(theComponent.id == "noteForm_propagaterules")
{
return(true);
}
}
The issue is for all cases that is returning false, browser throws back this.wrap undefined error, i.e, for noteForm_propagate cases above.
This was working fine with ext2.1, but throws this.wrap undefined error with ext2.2
Is there any changed made to Ext.window in 2.2, since "editNoteWindow" above extends Ext.window and it seems checkComponent is not a property of Ext.window any more.
Any help appreciated
I also verified all the threads in this forum, but could not a find a near match.
Thanks.
We are using a ext checkbox component which is defined as below,
xtype": "checkbox",
"id": "noteForm_propagate",
"fieldLabel": "Propagate Note to Related",
"widthFactor" : -1,
"showOn": "new",
"name": "propagate"
"xtype": "panel",
"id": "noteForm_propagaterules",
"html": test",
"name": "cannotpropagate"
and called from a javascript file as below
this.editNoteWindow.checkComponent = function(theContainer, theComponent, itemIndex){
if(theComponent.id)
{
if(theComponent.id == "noteForm_propagate")
{
return(false);
}
if(theComponent.id == "noteForm_propagaterules")
{
return(true);
}
}
The issue is for all cases that is returning false, browser throws back this.wrap undefined error, i.e, for noteForm_propagate cases above.
This was working fine with ext2.1, but throws this.wrap undefined error with ext2.2
Is there any changed made to Ext.window in 2.2, since "editNoteWindow" above extends Ext.window and it seems checkComponent is not a property of Ext.window any more.
Any help appreciated
I also verified all the threads in this forum, but could not a find a near match.
Thanks.