1 Reply Latest reply on Apr 1, 2008 2:19 PM by Gregory Lafrance

    parentDocument

    GeorgeWS Level 1
      I have a component that has a function that gets fired off when an item is clicked on in a datagrid. This code is used to fire off the getAcc function that fires a remote object. this works fine!

      public function itemClicked3(event:ListEvent):void
      {
      if (event.rowIndex != 0)
      {
      this.parentDocument.getAcc();
      }
      }

      I want to send some of the data with it. I cannot figure it out, I was trying it like this:

      this.parentDocument.getAcc(GroupCode, ItemID);

      But I get an error that there is only one argument expected. So Im thinking that its refering to the ArrayCollection ID?

      Im trying to send GroupCode, ItemID to the default parent page to go with the RemoteObject. So that ALL of the records are not pulled each time I click on a row in my datagrid.

      Thanks

      George
        • 1. Re: parentDocument
          Gregory Lafrance Level 6
          What is the signature of the getAcc() function? Should be pretty straightforward to resolve number of arg mismatch. Sometimes this can come up if an event handler function is called, because often you don't pass any args, the event object is passed by default. In that case you might need a wrapper function or to change the logic a bit.