Discussions

Expand all | Collapse all

sample user defined page

  • 1.  sample user defined page

    Posted 04-29-2017 15:35
    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


  • 2.  RE: sample user defined page

    Posted 04-30-2017 22:08
    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


  • 3.  RE: sample user defined page

    Posted 05-01-2017 04:33
    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


  • 4.  RE: sample user defined page

    Posted 05-01-2017 16:01
    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).