NeilSchneider
4 years agoQrew Cadet
Re: API Boot Camp App
I don't think your request is returning any rows. The problem is with the processRecords function, it doesn't check for errors. This line is the culprit:
xml.find('qdbapi').find('record').each(function(index)
It assumes each 'find' actually get a result, but it doesn't appear to be.
I updated your code to match one of my test environments and the problem is (most likely) that no records are being returned. I've attached an updated version of the code you supplied, and you'll see the changes in the processRecords function. It should also log an error if you're getting a different issue.
Note if there was an api error you'll see the code in the log.
Let me know how it goes..
Neil
------------------------------
Neil Schneider
------------------------------
xml.find('qdbapi').find('record').each(function(index)
It assumes each 'find' actually get a result, but it doesn't appear to be.
I updated your code to match one of my test environments and the problem is (most likely) that no records are being returned. I've attached an updated version of the code you supplied, and you'll see the changes in the processRecords function. It should also log an error if you're getting a different issue.
Note if there was an api error you'll see the code in the log.
Let me know how it goes..
Neil
------------------------------
Neil Schneider
------------------------------