Forum Discussion
JohnBarulich1
7 years agoQrew Cadet
Thanks for the reply as usual Dan,
One thing I'm curious about is the conceptual difference between your code and mine. My $.get() call does return a promise. Your code also returns a promise. Both code snippets, yours and mine, wait for the request to finish before proceeding. What's the subtlety here that I am missing?
Edit: Also, no need to worry about getPerm(), it doesn't influence this code, I should've just left it out.
Edit: From further analysis, it seems that your code is conceptually equivalent. I get no error from the API call, but no records are processed into the xml. I ensured the link to the table is correct. It works successfully if I query the same field but with different constraints (i.e. {'66'.EX.'0'} , also no query parameter). getPerm() returns $.ajaxSetup call. I turned async off for debugging but still, no response. I think it has to deal with QuickBase's back end implementation of the "{66.IR.'last wk'}".
Thanks
One thing I'm curious about is the conceptual difference between your code and mine. My $.get() call does return a promise. Your code also returns a promise. Both code snippets, yours and mine, wait for the request to finish before proceeding. What's the subtlety here that I am missing?
Edit: Also, no need to worry about getPerm(), it doesn't influence this code, I should've just left it out.
Edit: From further analysis, it seems that your code is conceptually equivalent. I get no error from the API call, but no records are processed into the xml. I ensured the link to the table is correct. It works successfully if I query the same field but with different constraints (i.e. {'66'.EX.'0'} , also no query parameter). getPerm() returns $.ajaxSetup call. I turned async off for debugging but still, no response. I think it has to deal with QuickBase's back end implementation of the "{66.IR.'last wk'}".
Thanks
JohnBarulich1
7 years agoQrew Cadet
getAndSetList() does not return a promise because the promise happens within the function after the $.get() call. Your code snippet also conceptually waits to process the xml as well, just outside of the function. Both your code, or mine, do not work for some reason.
Why?
Why?