Getting invalid row type. City and name are text. Can some one assist.

  
    var selQry = "SELECT city,Name,category_id,subcategory_id FROM 
"+TABLE_ID+" ";
    var data = FusionTables.Query.sql(selQry);
  
     var cent=[1,2];
    for(var i=0;i<data.rows.length;i++){
      if(data.rows[i][2]==varMenu1 && data.rows[i][3]==varMenu2){
        
        cent[0]=data.rows[i][0];
        cent[1]=data.rows[i][1];
       cent[2]=data.rows[i][2];
        break;
      }
    }
 
  }
   Logger.log(cent);
  return cent;
  
}

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/6fccf1af-ee18-4e4c-8c71-be4b1d75673c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to