![]() |
![]() |
||||||
|
|||||||
| Tags: |
![]() |
|
|||
|
Hi,
I seem to have been stuck with this issue for a while but could never make heads or tails out of it. I have a panel with elements executing repeater elements for my Flex to execute different external code to process the results. Each of the state produces a different output based on the selection a user chooses from the panel. Attached is a snippet of both. My issue is that every time when I execute the code, it always give me this message: ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller. Does anyone know what I have done wrong here? I do execute each of the HTTPService requests using event handlers. Thanks in advance. Repeater Item Selection: <mx:AddChild relativeTo="{view}" position="lastChild"> <mx:Panel id="panel3" width="185" x="1092.35" y="180" verticalGap="2" height="269" title="Filter "> <mx:Form id="filter5" width="165" click="checkBox_change(event)" height="225" horizontalScrollPolicy="off" verticalScrollPolicy="off"> <mx:Label id="title5" text="Type" fontWeight="bold" color="navy" width="159.01315" height="24.736841"/> <mx:Repeater id="checkBoxRepeater3" dataProvider="{AC}"> <mx:CheckBox id="checkBox3" label="{checkBoxRepeater3.currentItem.label}" data="{checkBoxRepeater3.currentItem.data}" change="checkBox_change(event);" /> </mx:Repeater> </mx:Form> </mx:Panel> </mx:AddChild> Sample code from the State: <mx:RemoveChild target="{productsRepeater2}"/> <mx:RemoveChild target="{canvas8}"/> <mx:RemoveChild target="{view_appointment5}"/> <mx:AddChild relativeTo="{text4}" position="after"> <mx ataGrid id="view_appointment534" paddingLeft="10"dataProvider="{view_appointment_check_gantry.lastR esult.appointments.appointment }" width="671.85" height="290.8" headerColors="#CCCCFF" borderStyle="none" initialize="view_week_check_gantry.send();" creationComplete="view_week_check_gantry.send()" x="10" y="79.3"> <mx:columns> <mx ataGridColumn headerText="ID" dataField="id" textAlign="center"width="35"/> <mx ataGridColumn headerText="Date" dataField="date" textAlign="center"width="70"/> <mx ataGridColumn headerText="Time" dataField="time" textAlign="center"width="75"/> <mx ataGridColumn headerText="Physician" dataField="physician"textAlign="center" width="100"/> <mx ataGridColumn headerText="Room" dataField="room_id"textAlign="center" width="35"/> <mx ataGridColumn headerText="Slot Status" dataField="slot_status"textAlign="center" width="45"/> </mx:columns> </mx ataGrid></mx:AddChild> <mx:RemoveChild target="{canvas4}"/> <mx:AddChild id="day_view4" relativeTo="{canvas3}" position="after"> <mx:Canvas label="Test" id="canvas423" verticalScrollPolicy="off" horizontalScrollPolicy="off" initialize="my_result.send()" creationComplete="my_result.send()"> <mx:HBox backgroundColor="#00CCFF" x="25" y="20" id="hbox14"> <mx:Label textAlign="center" fontWeight="bold" fontSize="16" fontFamily="Verdana" width="660" text="my.lastResult.appointments.a}" id="day_week4"/> </mx:HBox> <mx:Repeater id="eventsRepeater4" dataProvider="{my.lastResult.appointments.appointm ent}" x="125"> <mx:Panel x="125" id="eventsArray4" width="512" fontWeight="normal"/> </mx:Repeater> </mx:Canvas> |
| Sponsored Links |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
- Contact Us
-|-
Adobe Dreamweaver Forums -|-
Archive -|-
Top -|-Rules/Disclaimer-|-Help/Support-|-Advertise