OK I think I am getting closer with this

<?xml version="1.0" encoding="utf-8"?>
<!-- List populating a Box where forms are selected -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">

      <mx:Script>
        <![CDATA[
            [Bindable]
            public var selectedItem:Object;
            public var new_selectedItem:Object;

              import flash.net.*;
              function executeSearch(event:MouseEvent):void {
                  var u:URLRequest = new URLRequest("/cgi-bin/forms/" +
ta1.text);
                  navigateToURL(u,"_Parent");
              }
          ]]>
    </mx:Script>

    <mx:Model id="mytype">
      <form>
        <tpe label="Judge parker" data="">         <tpe label="Judge Rhodes" data="">         <tpe label="Notices" data="">         <tpe label="Miscellaneous" data="">         <tpe label="Judgements" data="">         <tpe label="Deputy In Charge" data="">         <tpe label="Courtroom Deputy" data="">         <tpe label="Bankruptcy Appeal" data="">         <tpe label="Bankruptcy PDF" data="">         <tpe label="Facisimilie Cover Page" data="">       </form>
    </mx:Model>

    <mx:Model id="mygrps">
      <jbp>
        <group label="Order Setting 8-Day Dismissal Deadline (Matrix)"
form="ordset8daydisin.cfm"/>
        <group label="Order Setting 8-Day Dismissal Deadline (Matrix)"
form="ordset8daydisin.cfm"/>
      </jbp>

      <jbr>
        <group label="Order Setting 8-Day Dismissal Deadline (Matrix)"
form="ordset8daydisin.cfm"/>
        <group label="Order Setting 8-Day Dismissal Deadline (Matrix)"
form="ordset8daydisin.cfm"/>
      </jbr>
    </mx:Model>

    <mx:Panel title="Form Search" height="75%" width="75%"
        paddingTop="10" paddingLeft="10" paddingRight="10">

        <mx:VBox width="100%">
            <mx:Label text="Select Form Type."/>

            <mx:List id="type" width="100%" color="blue"
                dataProvider="{mytype.form.tpe}"
              
change="this.selectedItem=List(event.target).selectedItem"/>

        </mx:VBox>

        <mx:VBox width="100%">
            <mx:Label text="Select Form Order."/>

            <mx:List id="source" width="100%" color="blue"
                dataProvider="{type.selectedItem.data}"
             
change="this.new_selectedItem=List(event.target).selectedItem"/>

            <mx:VBox width="100%">
                <mx:Label text="Selection: {selectedItem.label}"/>
                <mx:Label id="ta1" text="{selectedItem.form}"/>
                <mx:Label text="data: {selectedItem.data}"/>
            </mx:VBox>
                <mx:Button label="Go To {selectedItem.form}"
click="executeSearch(event)"/>
        </mx:VBox>

    </mx:Panel>
</mx:Application>

It still wont POPULATE the second Box but it will post the variable
string in the second box. How do I get this to us that data in the
dataProvider="{type.selectedItem.data}" piece??

any thoughts?

--- In [email protected], "Jay" <[EMAIL PROTECTED]> wrote:
>
> How do you populate a list with the selection froam another list??
>
> here is a sample of code for what I mean
>
> I want to make a selection from list a
>
> mx:Script>
>         <![CDATA[
>             [Bindable]
>             public var selectedItem:Object;
>
>               import flash.net.*;
>               function executeSearch(event:MouseEvent):void {
>                   var u:URLRequest = new URLRequest("/cgi-bin/forms/" +
> ta1.text);
>                   navigateToURL(u,"_blank");
>               }
>           ]]>
>     </mx:Script>
>
>     <mx:Model id="mytype">
>       <form>
>         <tpe label="Judge parker" data=""> >         <tpe label="Judge Rhodes" data=""> >         <tpe label="Notices" data=""> >         <tpe label="Miscellaneous" data=""> >         <tpe label="Judgements" data=""> >         <tpe label="Deputy In Charge" data=""> >         <tpe label="Courtroom Deputy" data=""> >         <tpe label="Bankruptcy Appeal" data=""> >         <tpe label="Bankruptcy PDF" data=""> >         <tpe label="Facisimilie Cover Page" data=""> >       </form>
>     </mx:Model>
>
>     <mx:Model id="mygrps">
>       <groups>
>         <group label="Order Setting 8-Day Dismissal Deadline (Matrix)"
> data=""> >       </groups>
>     </mx:Model>
> <!-- INITIAL LIST A -->
>     <mx:Panel title="Form Search" height="75%" width="75%"
>         paddingTop="10" paddingLeft="10" paddingRight="10">
>
>         <mx:VBox width="100%">
>             <mx:Label text="Select Form Type."/>
>
>             <mx:List id="type" width="100%" color="blue"
>                 dataProvider="{mytype.form.tpe}"             
> change="this.selectedItem=List(event.target).selectedItem"/>
>
>         </mx:VBox>
>
> <!-- LIST To POPULATE when different selections are made in A -->
>
>         <mx:VBox width="100%">
>             <mx:Label text="Select Form Order."/>
>
>             <mx:List id="source" width="100%" color="blue"
>                 dataProvider="{mygrps.groups.group}"             
> change="this.selectedItem=List(event.target).selectedItem"/>
>
>             <mx:VBox width="100%">
>                 <mx:Label text="Selected Form: {selectedItem.label}"/>
>                 <mx:Label id="ta1" text="{selectedItem.data}"/>
>             </mx:VBox>
>                 <mx:Button label="Search" click="executeSearch(event)"/>
>         </mx:VBox>
>
>     </mx:Panel>
>
> then , and this part sorta works, I want to make a selection ion list
> b and use that to go to the form location.
>
> Thanks for all your help with these newbie questions
>
> Jay
>






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




YAHOO! GROUPS LINKS




Reply via email to