Hi, thanks for all the suggestions.

I tried your code and it works fine.

We need to do some calculations based on the values from the
inputsheet.mxml  and then display the resultant value(arraycollection)
in the datagrid of outputsheet.mxml, on navigating the tab from
inputsheet to outputsheet (tabclick event).
Thank you

On Nov 9, 5:53 pm, suku <[email protected]> wrote:
> hi Dinukx ,
>
> thnx for simpler way and clean sol.
>
> regards
> Suku
>
> On Nov 9, 4:38 pm, flexorz group of flex corders <[email protected]>
> wrote:
>
> > actually there is much simpler way to archive this ,
> > which is more clean.
>
> > check this simple solution
>
> > *Main.app*
> > *******************************************************
>
> > <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
> > applicationComplete="init()"  layout="absolute" xmlns:local="*">
>
> > <mx:TabNavigator left="10" right="10" width="100%" height="100%"
> > backgroundColor="#FFFFFF" borderStyle="none">
> >              <local:a2 id="a11" />
> >              <local:a1 ee="{a11.ll}"/>
>
> >  </mx:TabNavigator>
> >  <mx:Script>
> >      <![CDATA[
>
> >      ]]>
> >  </mx:Script>
>
> > </mx:Application>
>
> > Two MXML Components :
> > ******************************
> > a1.mxml
> > ***************
>
> > <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml"; width="100%"
> > height="100%"
> >         label="OUTPUT SHEET"  creationComplete="init()">
>
> >         <mx:TextInput id="printName" text="{ee}"/>
> > <mx:Script>
> >     <![CDATA[
> >         [Bindable]
> >         public var ee:String= new String();
>
> >     ]]>
> > </mx:Script>
> >   </mx:Canvas>
>
> > a2.mxml
> > ***********
>
> >  <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml"; width="100%"
> > height="100%"
> >         label="INPUT SHEET" >
> >         <mx:TextInput id="inputName" change="doChange()" />
>
> >         <mx:Script>
> >             <![CDATA[
> >                 [Bindable]
> >                 public var ll:String= new String()
> >                 private function doChange():void
> >                 {
> >                     ll =inputName.text;
> >                 }
> >             ]]>
> >         </mx:Script>
> >   </mx:Canvas>
>
> > the above solution is only for mxml base components only..
> > let me know if have any questions
>
> > cheers
> > Dinukx
>
> > On Mon, Nov 9, 2009 at 3:40 PM, suku <[email protected]> wrote:
>
> > > Hi.........
>
> > >  jus try this
>
> > > Mainapp.mxml  :
> > > ****************
>
> > > <mx:Application
> > >        xmlns:mx="http://www.adobe.com/2006/mxml";
> > >        xmlns:local="*">
>
> > >         <mx:Script>
> > >                <![CDATA[
> > >                        [Bindable]
> > >                        private var printValue:String;
>
> > >                         private function dataHandler():void{
> > >                                 printValue = inPut.inputName.text;
> > >                        }
>
> > >                ]]>
> > >        </mx:Script>
>
> > >          <mx:TabNavigator left="10" right="10" width="100%" height="100%"
> > >                backgroundColor="#FFFFFF" borderStyle="none">
>
> > >              <local:InputSheet id="inPut" />
> > >             <local:OutputSheet id="outPut" 
> > > creationComplete="dataHandler()"
> > > PrintName="{printValue}"/>
>
> > >         </mx:TabNavigator>
>
> > > </mx:Application>
>
> > > Two MXML Components :
> > > *******************************
> > > InputSheet.mxml :
> > > *****************
>
> > > <mx:Canvas
> > >        xmlns:mx="http://www.adobe.com/2006/mxml";
> > >        width="100%"
> > >        height="100%"
> > >        label="INPUT SHEET" creationComplete="//onInit();">
> > >        <mx:TextInput id="inputName" />
> > > </mx:Canvas>
>
> > > OutputSheet.mxml :
> > > ******************
>
> > > <mx:Canvas
> > >        xmlns:mx="http://www.adobe.com/2006/mxml";
> > >        width="100%"
> > >        height="100%"
> > >        label="OUTPUT SHEET"
> > >        creationComplete="//onInit();">
> > >                 <mx:Script>
> > >                        <![CDATA[
> > >                                [Bindable]private var _printName:String;
>
> > >                    [Bindable]
> > >                                public function set PrintName(value:String)
> > > : void
> > >                                {
> > >                                        _printName = value;
> > >                                }
>
> > >                                public function get PrintName() : String
> > >                                {
> > >                                        return _printName;
> > >                                }
> > >                        ]]>
> > >                </mx:Script>
> > >        <mx:TextInput id="printName" text="{_printName}"/>
>
> > > </mx:Canvas>
>
> > > -----------
> > > Sukumar.
>
> > > ________________________________________________
>
> > > On Nov 9, 1:41 pm, senling <[email protected]> wrote:
> > > > Hi,
> > > > I need to get the value from the InputSheet.mxml textinput and display
> > > > it in the OutputSheet.mxml textinput. How can i achieve this while
> > > > navigating the tab. The code is followed
>
> > > > Mainapp.mxml  :
> > > > ****************
> > > > <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
> > > > xmlns:local="*">
>
> > > > <mx:TabNavigator left="10" right="10" width="100%" height="100%"
> > > > backgroundColor="#FFFFFF" borderStyle="none">
> > > >               <local:InputSheet />
> > > >               <local:OutputSheet/>
>
> > > >   </mx:TabNavigator>
>
> > > > </mx:Application>
>
> > > > Two MXML Components :
> > > > *******************************
> > > > InputSheet.mxml :
> > > > *****************
> > > >   <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml"; width="100%"
> > > > height="100%"
> > > >          label="INPUT SHEET" creationComplete="onInit();">
> > > >          <mx:TextInput id="inputName" />
> > > >    </mx:Canvas>
>
> > > > OutputSheet.mxml :
> > > > ******************
> > > >   <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml"; width="100%"
> > > > height="100%"
> > > >          label="OUTPUT SHEET" creationComplete="onInit();">
>
> > > >          <mx:TextInput id="printName" />
>
> > > >    </mx:Canvas>- Hide quoted text -
>
> > - Show quoted text -

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to