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" <[email protected]>
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
>
> On Thu, Oct 22, 2009 at 7:08 PM, mman <[email protected]> wrote:
>
> > Hi everybody,
> > the goal os to open a new window after clicking a button in my Flex
> > Application. Openning the window is not a problem, however, what I
> > could not do is:
> > - sending an ArrayCollection object to the window
> > - receiving this ArrayCollection in the new window
>
> > I want to use this ArraCollection as adata provider for an
> > AdvancedDataGrid that the new window should show.
>
> > I need an urgent help!
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---