PDA

View Full Version : idea please..


Anitha
05-26-2008, 11:38 AM
Hi all,

Here my doubt is, In a panel based component there is a viewstack which has three VBox.Both the vbox are access by a toggle button bar.Here my doubt is when I click the linkbutton in my first VBox it need to show the result in secondVBox automatically.(ie) when I click the button in firstVBox the secondVBox will be arise automatically with the result.how can I do this.
any idea please?


<mx:ViewStack id="vs creationPolicy="all">

<mx:VBox id="SelectVBox" width="100%" height="100%">
<mx:Form>
<mx:FormItem label="Begin Year :">
<mx:DateField id="Begin_Year"/>
</mx:FormItem>
<mx:FormItem label="End Year :">
<mx:DateField id="End_Year" change="CheckandSend()"/>
</mx:FormItem>
</mx:Form>
<mx:LinkButton icon="@Embed('icon_go.gif')" useHandCursor="true" click="CheckandSend()"/>
</mx:VBox>


<mx:VBox id="chartVBox">

<mx:LineChart id="chart"
***
</mx:LineChart>
</mx:VBox>


<mx:VBox id= "gridVBox">
<mx:DataGrid width="100%" height="100%">
******
</mx:DataGrid>
</mx:VBox>

</mx:ViewStack>