This is driving me crazy. I have a pop up window that works perfect the first time, but doesn't work right after that. It's a standard create item window like the doodle walkthrough. I have a text field that contains a value, I need to grab that value from the modal window when it is opened. I have tried multiple methods and all end one of two ways, no value, or it grabs the value the first time the modal window opens, but subsequent times I get the value I had the first time, not an updated value. It's like the value is cahed.
As can be seen in the below code, I'm currently trying a simple Ext.getCmp expression to get the value. But if the field 'field-this_field-value' changes, the next time I open the modal window, my window field value does not change. How do I force it to run the getValue function again?
,fields: [{
xtype: 'textfield'
,name: 'this_field'
,value: Ext.getCmp('field-this_field-value').getValue()
,anchor: '100%'
},