sample user defined page

  • 0
  • 2
  • Question
  • Updated 2 years ago
  • In Progress
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
Photo of Dean

Dean

  • 532 Points 500 badge 2x thumb

Posted 2 years ago

  • 0
  • 2
Photo of Dean

Dean

  • 532 Points 500 badge 2x thumb
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
Photo of Ⲇanom the ultimate (Dan Diebolt)

Ⲇanom the ultimate (Dan Diebolt), Champion

  • 26,512 Points 20k badge 2x thumb
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).
(Edited)