Answered: loadRecord() doesn't load the record

Answered: loadRecord() doesn't load the record

I just got through the Ext JS 4 MVC Application Architecture guide (http://docs.sencha.com/ext-js/4-0/#!...n_architecture) and am now going back and tweaking things to try and learn more. One of the first things I decided to do was to change the main grid view from a single grid that pops up a window, into a panel with a border layout that has the grid in the center region and a form in the east region. My "app.js" looks like this:

I can't get a record to load in the form. The useredit does not display the values. However, if I change the view to extend Ext.window.Window, then it displays as a window and loads the record. How do I get the record to load as an "Ext.panel.Panel"? Thanks in advance.

The grid is in a different view, so going "down" from the grid won't reach the form, right? I was using Ext.widget to try and get a reference to the view where the form lives. This works when the form view is an Ext.window.Window, but it doesn't work when the view is an Ext.panel.Panel.

Still no dice. The only way I get it working is if I change the edit view to extend "Ext.window.Window" instead of "Ext.panel.Panel". When the view extends Ext.window.Window then I can use grid.down("form") or grid.up("viewport").down("form") and both of them will work. Change back to extending "Ext.panel.Panel" and it stops working.