
Originally Posted by
aconran
We've had one or two reports of similar things. If you search the metadata for this id can you find it? Are you able to share the project with us (you can privately at architect.feedback at sencha.com)?
I search everywhere in my app folder. I recheck in the metadata folder. I can find several MyComboBox (like "designer|userClassName": "MyComboBox35",) but no MyComboBox38

Originally Posted by
aconran
Yes, but in general this is against best practices. What if you needed to show two of those components at the same time? This would break down. The best thing that you can do is assign itemId's. itemId's are just like id's except for the fact that they must be unique to their particular container. Id's on the other hand must be unique to the entire global page.
So if I have "'overall_total" as itemId in two differents active window, there will no conflict.
Those windows are invoked by different user at different stage as they are part of strict workflow.
Well, I set both with the same value.
So for this code:
Code:
on_ctrib_cd: function(field, newValue, oldValue, options) {
Ext.getCmp('ctric_total').setValue(newValue +
Ext.getCmp('ctrib_ca').getValue() +
Ext.getCmp('ctrib_cb').getValue() +
Ext.getCmp('ctrib_cc').getValue() +
Ext.getCmp('ctrib_ce').getValue());
Ext.getCmp('overall_total').setValue(Ext.getCmp('ctrib_total').getValue()+
Ext.getCmp('ctria_total').getValue()+
Ext.getCmp('ctric_total').getValue());
}
keep the itemIds and remove the ids propery then change my code as:
Structure: Window->Form->TabPanel->Panel->Fieldset->NumberField
Code:
on_ctrib_cd: function(field, newValue, oldValue, options)
var oForm = field.up('form');
oForm.down('#ctrib_total').setValue(newValue+
oForm.down('#ctrib_bb').getValue()+
oForm.down('#ctrib_bc').getValue()+
oForm.down('#ctrib_bd').getValue()+
oForm.down('#ctrib_be').getValue());
//oForm.down('#overall_total').setValue(oForm.down('#ctrib_total').getValue()+
oForm.down('#ctria_total').getValue()+
oForm.down('#ctric_total').getValue());
}