You are right, when I stopped passing link_wfc_core_stats_data in the click
event, it worked fine.
Thanks!
On Wednesday, 19 August 2015 10:44:55 UTC-5, Sergey wrote:
>
> It still doesn't look like you're passing the data, you're just using the
> same name but it will be a different thing. If yo
It still doesn't look like you're passing the data, you're just using the
same name but it will be a different thing. If you're doing exactly what
you say you're doing, everything should work, but these issues usually come
from user error. If you link to a page, I can tell you exactly what to fix,
Attached a snapshot of the error I see.
I agree, I'm passing link_wfc_core_stats_data and not table now.
I am passing the data in a function as follows
$( "#downloadCSV" ).click(function(link_wfc_core_stats_data) {//accessing
the method here}
For some reason, I get the error saying getNumber
I agree, I'm passing link_wfc_core_stats_data and not table now.
I am passing the data in a function as follows
$( "#downloadCSV" ).click(function(link_wfc_core_stats_data) {//accessing
the method here}
For some reason, I get the error saying getNumberOfColumns() is not a
method, even when I pas
I'm pretty sure that jquery won't pass a datatable to your function. In
your function, the variable 'link_wfc_core_stats_data' will be a click
event, not a DataTable.
On Tue, Aug 18, 2015 at 5:01 PM rishu oberoi wrote:
> Thanks for your reply. I actually tried link_wfc_core_stats_data as well
>
Thanks for your reply. I actually tried link_wfc_core_stats_data as well
but getting the same error. But I tried a jsfiddle and I see that it works.
Probably I am doing something else wrong.
I am passing the data in a function as follows
$( "#downloadCSV" ).click(function(link_wfc_core_stats_d
Hi Rishu,
The Table visualization (google.visualization.Table) is a separate thing
from the DataTable (google.visualization.DataTable, or
google.visualization.arrayToDataTable). DataTables have getNumberOfColumns,
but Tables don't. You're trying to call it on the Table
(link_wfc_core_stats_table)
This is how I am creating my data table. Just including a snippet below.
link_wfc_core_stats_data =
google.visualization.arrayToDataTable(dataArray);
calculatePercentagesWithGlobalFactor(link_wfc_core_stats_data,PIPELINE_LINK_ALL);
var link_wfc_core_stats_table = new
google.visualization.Tabl