1 Reply Latest reply on Jun 19, 2008 5:37 PM by matthew horn

    Gathering a String

    GeorgeWS Level 1
      I have a Datagrid, with a column of checkboxs and a column of Items (PNUM5W). Items get checked and I send them to this function:

      private function collectForInclude():Array{
      var includes:Array = new Array();
      var obj:Object = new Object();
      for (var i:Number=0 ;i < myDataGrid.dataProvider.length;i ++){
      obj = myDataGrid.dataProvider ;
      if (obj.Include)

      return includes;

      private function gotoURL(myPNUM5W2Value:String) : void {
      var myobj:Object = new Object();
      myobj.PNUM5W = myPNUM5W2Value;
      var url:String = (" http://www.youngsmarket.com/youngsmarket/programs/prestool/winetool/list.cfm");
      var variables:URLVariables = new URLVariables();
      variables.Employee = Employee;
      variables.SupComp = SupComp;
      variables.ItemID = myobj.PNUM5W;
      var request:URLRequest = new URLRequest(url);
      request.data = variables;
      try {
      navigateToURL(request, 'Main');
      catch (e:Error) {

      I am trying to string together the checked Items like: '123545','432154','76543' to send on the end of a URL. What I have only seems to colect the last checked Item in the DG.

      Any help would be great