Forum Discussion

DeanOusterhout's avatar
DeanOusterhout
Qrew Assistant Captain
8 years ago

sample user defined page

I would like to create my first user defined page and wondered if there are any samples that source the jquery and other necessary files to make it work.

Thanks for the help,
Dean
  • DeanOusterhout's avatar
    DeanOusterhout
    Qrew Assistant Captain
    Well, I got this working and am able to read some tables, present a form, allow the user to manipulate some data, and put the rows back.  I am still having issues with chaining versus nesting, and had to resort to nesting.... I have another question open about the chaining...

    I would still be interested in seeing any templates if folks want to share.

    Thanks,
    Dean
  • What exactly are you trying to see? What is the problem you are trying to solve? What do you mean by user defined page? I am curious. This all just seems a bit vague. 

    Thanks
  • There is actually a bug in the version of jQuery used by QuickBase (ver 1.7.2) which does effect chaining. With this bug chained AJAX requests will be sequenced correctly (ie though then()) but data the promise returns is always the data returned by the first promise. The fix is to use pipe() instead of then(). Since pipe() was deprecated in later versions of jQuery (ver 1.8) I often resort to nesting (against my own advice to you).

    See:

    https://api.jquery.com/deferred.pipe/

    In any event jQuery is getting long in the tooth and you don't even need it any more as modern JavaScript now supports most of what jQuery does (eg querySelector, fetch API).