Hi all,
thanks for your reply.
First of all, I am using an mx:Application. Yesterday I have tried to
use a Panel in a PopUpManager as Hemanth illustrated, thanx for that.
private function showReport() : void {
var reportWindow : ReportWindow = ReportWindow
(PopUpManager.createPopUp(this, ReportWindow, true));
....
reportWindow.allData = allData;
}
This works fine but what I am looking for is to open a new browser
window. I have read somewhere about how to send and receive parameters
(as text only I guess?). I need to send the ArrayCollection to the new
browser window, which has an AdvancedDataGrid and some further
functionalities like "save report" as view or something simillar.
Please let me know if it is possible with this type of application
(not AIR).
Thanks again
mman
On Oct 23, 2:03 am, "Hemanth Kumar T.S" <
t.s.hemanthku...@gmail.com>
wrote:
> Hi Mman,
>
> Assuming that you are opening a new window using Popupmanager.
>
> *Passing value to Popup*
> In *main.mxml*
>
> On Button click, it call a function to open Popup window
>
> private function showTitleWindow():void {
> var titleWindowInstance:TitleWindowData
> = TitleWindowData(PopUpManager.createPopUp(this, TitleWindowData, false));
> titleWindowInstance.mainApp = this; //Reference to
> the main app scope
> titleWindowInstance.gnMyNumber = parseFloat(tiMyNumber.text); //Pass a
> simple value to the popup - perhaps you can pass ArrayCollection too.
>
> // gnMyNumber is a varibale defined in TitleWindowData
>
> }
>
> *TitleWindowData.mxml*
> [Bindable]public var gnMyNumber:Number;
> <mx:Label id="lblMyNumber" text="{gnMyNumber}" width="100"/> // this
> text will display the value that was transferred from Main.mxml
>
> To send the data back to Main Application from Popup window , you can use
> the mainApp variable
>
> Hope this helps.
>
> Thanks,
> Hemanth
>