I'm trying to create a custom web data connector, I used the sample what was given in the Tableau Web Data Connector tutorial.
I have a link which returns me the data in JSON, and I pass the url in the jquery AJAX function and tried to console.log the results.
But unfortunately, I'm getting an error as mentioned below.
Uncaught WDC error: Uncaught TypeError: Cannot read property 'results' of undefined stack:TypeError: Cannot read property 'results' of undefined
When I do a AJAX request with jquery without using the tableau web data connector js file, I'm able to retrieve the data from the link we've created.
And when I compared the results of yahooapi and the link what we've created, the data was in this format.
Yahoo API:
Object{*query*: Object}
From the link we've created:
[Object, Object, Object, Object]
Will this make any difference?
Pls help me out with this issue.