omarc
20 Oct 2011, 6:49 PM
Hey all,
I am trying to implement a form panel that displays customer information (company name, contact, etc) along the top and customer invoices (this is a hasMany association) along the bottom.
I wanted to know what the best way to implement this was using the MVC in ST2.
I thought of doing it this way:
Implement a controller that listens to a form panel event for when a customer record is loaded, I update the customer information panel along the top (using the Ext.Component.setData method) and load the hasMany associations for the customer invoices. Problem with this is that I don't see any event in FormPanel that gets fired when a record is loaded (with Ext.FormPanel.setRecord).
Am I correct in where I want to load the customer info and invoices?
Is the event in FormPanel not present because this is a preview release?
Thanks for any tips on this,
Omar
I am trying to implement a form panel that displays customer information (company name, contact, etc) along the top and customer invoices (this is a hasMany association) along the bottom.
I wanted to know what the best way to implement this was using the MVC in ST2.
I thought of doing it this way:
Implement a controller that listens to a form panel event for when a customer record is loaded, I update the customer information panel along the top (using the Ext.Component.setData method) and load the hasMany associations for the customer invoices. Problem with this is that I don't see any event in FormPanel that gets fired when a record is loaded (with Ext.FormPanel.setRecord).
Am I correct in where I want to load the customer info and invoices?
Is the event in FormPanel not present because this is a preview release?
Thanks for any tips on this,
Omar