-
1 Aug 2011 5:48 AM #1
RawEditor F is undefined
RawEditor F is undefined
Hi, i have a question, with this piece of code can i resolve f.is undefined?
Example:
When i Run for First Time my Form with a Raw Editor, all is Fine, but if i close my Form , and then i decide to open my form Again , and if i try to edit the Raw editor , Firebug rise a bug: f is undefined in RawEditor.js line:
f.setValue(val);
this.values[f.id] = Ext.isEmpty(val) ? ” : val;
i forgot to tell ya sothing , The f is undefined rised, when i close my form with action:’close’,
and before call my form again, i do first: MyDataStore.removeAll(); F is undefined , is a bug from this line: fields = this.items.items
so if f is empty :
f = fields[i];
.
.
.
f.setValue(val); ////<—–Here Rise the bug.
Thank you
-
1 Aug 2011 7:13 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,714
- Vote Rating
- 438
What do you mean close the form? Is the form being destroyed?
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
1 Aug 2011 9:51 AM #3
Yep
Yep
Yep , i close my form (Destroy all components), i i've been traying with action:hide, but all the stuff in my form appears incomplete (Text boxes, labels, etc), so i decided to use: action:close. but when i call my form again, raweditor raise f is undefined when i try to use it again. thanks
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote