Getting "Cannot read property 'arrayToDataTable' of undefined error"
Application Type
Reactive

Why I am getting this error?


Hello,

Thank you for your inputs. I also checked these posts but I am not able to understand why I am getting this error. Correct me if I am wrong, is it because of mismatched data types?

Try to debut it in the browser, the error could be in the action CalculateEMI. Put a breakpoint in the action and try to understand what is showing that error. Without seeing the code, or a URL so we can see live the error is difficult to see what is the root cause.

ok, i will try. Thanks.

Hi,

If possible please share the oml or sample oml to see the issue.


Thanks

When we run the application, i get "Cannot read property 'arrayToDataTable' of undefined error" 

PFA oml. 

Thanks.

EMICalculator.oml

the problem should be here. 

var data =google.visualization.arrayToDataTable([

            ['Task', 'Hours per Day'],

            ['Total Interest', ipp],

            ['Principal load amount', pap]


        ]);


When you do the debug, is this initialized (google.visualization)? 

Check if this helps you

https://stackoverflow.com/questions/35119934/visualization-uncaught-typeerror-cannot-read-property-arraytodatatable-of-u

Will check the link. Thanks. 

google.visualization is not getting initialized.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.