Hello flexcoders,

I'm using a popup window that has a data entry form. When the form submits the popup close and the data submited will refresh some datagrids from the main screen.

I haven;t used the initObj parameter in the popup contructor to pass variables between the popup and the main apps; I;m referencing the parent elements like:

 

var addr= new AddressVO();

addr.phad_id=78;

addr.phad_address="address";

mx.core.Application.application.addressDataGrid.dataProvider.addItem( addr );

Is this the right way to pass data between the main application and the modal popup window? or should I use the initObj when create the popup?

var addAddressPopUp=mx.managers.PopUpManager.createPopUp( this, addNewAddress, true, initObj);

Any feedback would be great!.

Thanks,

Valya


Do you Yahoo!?
Yahoo! Small Business - Try our new resources site!

Reply via email to