|
Hi Abdul, Thanks for your tip and I was able to complete my basic operations – displaying data in a form which is repeated. Now I have couple of processing issues. Based on value of discountFlag some FormItems should be enabled or disabled in each repeated form. When I read Repeater class literature I found there are 2 useful events – repeat and repeatEnd. What are the possible arguments available at each event? Which event the best in my case to implement functionality I described above and if you don’t mind can you (in fact any expert) send psuedocode ? Thanks in advance and I appreciate any kind of help.
<mx:Repeater id="Rptr" dataProvider="{myData}" repeat="showFlag(event.target)" repeatEnd="rptDone()" > <mx:Form width="830" height="298" vScrollPolicy="off" verticalGap="0" > <mx:FormItem direction="horizontal" width="100%" height="30"> <mx:Text text="Effective Date" width="110" textDecoration="underline" fontSize="12" fontWeight="bold" textAlign="left"/> <mx:Spacer width="100"/> <mx:Label text="Process Month : " fontSize="14" fontWeight="bold" color="#6633CC" height="20" /> <mx:Label id="irm_lb" text="{Rptr.currentItem.irm}" fontSize="14" fontWeight="bold" color="#6633CC" height="20" /> <mx:Label text="Discount Flag : " /> <mx:Label text="{Rptr.currentItem.discountFlag}" /> <mx:Spacer width="100"/> <mx:Spacer width="31%"/> <mx:Image source="@Embed('assets/icons/rolling.gif')" mouseDown="showData(event.target.instanceIndices)" /> </mx:FormItem> <mx:FormItem direction="horizontal" width="100%" height="30"> …….. </mx:FormItem> ……… </mx:Form> </mx:Repeater>
script functions:
function showFlag(ref:Object) { Alert.show('repricing flag is : '+ref.discountFlag,ref.index+ " index"); } function rptDone() { var item = Rptr.getRepeaterItem(0);
Alert.show('repricingFlag : '+item.discountFlag,"repeater done "); } Thanks! -----Original Message-----
I think, it should work. Can you check the length of array you are assigning as dataProvider to Repeater.
If you can post the sample-but-complete code here, we can see what is going wrong here..
-abdul
From: [email protected] [mailto:[EMAIL PROTECTED]
On Behalf Of Doodi, Hari - BLS CTR Hi experts, Is it possible to use <mx:Form></mx:Form> tags in side <mx:Repeater></mx:Repeater> tags. The situation is I have to display 5 months data on one screen. I was able to display One month data came from remote object call. Now my next task is to display 5 months data. I thought it will be simple to use repeater around Form but looks like it is not simple. When I use it I got a blank screen? Any ideas? I appreciate any suggestions about how to implement – displaying 5 months dynamic data on one screen?
Thanks!
|

