PDA

View Full Version : Communication with Many forms from one form



Radius-Service
25 Aug 2010, 4:46 AM
Hi all, I ask the help whith my problem. I have a main form - "MyViewport", on this form takes a place button. On button click it must load new form - "CarMasterDetail" in window or tab control, but this does not work. If I load
Files:


CarStore.js
CarMasterDetail.ui.js
CarMasterDetail.js
MyViewport.js
MyViewport.ui.js
xds_index.js
xds_index.html
Files:
22124
If I load this forms separately, it works. If I add CarMasterDetail to xds_index.js:


var cmp1 = new CarMasterDetail({
renderTo: Ext.getBody()
});
cmp1.show();
Firebug show me error - CarMasterDetailUi is not defined and I see the empty screen. If I load first form CarMasterDetail then firebug "say" - MyViewportUi is not defined. I haven't found the decision for this problem. Maybe it doesn't work because in files with initialization of components use variable "this", then how to load second form from main form?

Radius-Service
26 Aug 2010, 9:07 PM
This problem has disappeared...strange, but I have changed nothing. Now this forms show in bowser, but I can't load another form on buttonClick