0 Replies Latest reply on Apr 30, 2007 3:12 PM by socko456John

    Change dataprovider based on selection

    socko456John
      I currently have an array created by a loop, which outputs to a list;
      when the list is selected, I want the data provider to update
      accordingly. My dataprovider looks like this
      cRequest.lastResult."¿selectedItem?".user
      but I am not sure how to build it right so the datagrid acceptds it
      and then posts/sends?

      I have the source here
      http://www.hamiltonsignal.com/source.del/index.html

      I currently have

      [Bindable]
      public var forChange:Object;

      public function changeEvt(event:flash.events.Event):void {
      forChange.text="cRequest.lastResult." +
      "event.currentTarget.selectedItem.label" + ".user" +
      event.currentTarget.selectedIndex;
      cRequest.send();
      }