Adios &rdr ~ Hello Async/Await Fields !!!!!!!!!!!!!!!!!!!!!!!!!!

  • 1
  • 1
  • Question
  • Updated 3 days ago
  • Doesn't Need an Answer
  • (Edited)
This little discovery of the 3Q&S Technique has massive implications. No more chaining of "multiple actions" together with &rdr parameters are necessary.

We have effectively created a new field type which might as well be called "an asynchronous script field". 

We can now write simple Rich Text formula fields which are (1) self contained (ie no code page), (2) can execute arbitrary AJAX calls using jQuery or other promise returning methods, (3) does not force a reload the page, (4) allows processing of intermediate responses and (5) reads like synchronous calls:
"<img src onerror='

(async () => {

  let xml1 = await Promise.resolve(
    $.get(dbidTable1, {...});
  );

  let xml2 = await Promise.resolve(
    $post(dbidTable2, {...});
  );

  let resp = await fetch(...);

})();

'>"

This is so exciting I might just skip my Haskell meetup tonight! 
λλλλλλλλλλλλλλλλλλλλλλλλλλλλλλλλλλλλλλλλλλλλλλλλλλλλλλλ



Photo of Ⲇanom the ultimate (Dan Diebolt)

Ⲇanom the ultimate (Dan Diebolt), Champion

  • 27,694 Points 20k badge 2x thumb

Posted 4 days ago

  • 1
  • 1
Dan...Seriously...This is a major break through. I am excited! Can I join your Haskell meetup next time?
Photo of Ⲇanom the ultimate (Dan Diebolt)

Ⲇanom the ultimate (Dan Diebolt), Champion

  • 27,694 Points 20k badge 2x thumb
It is really is. If you throw a generator into the script you can also iterate over promises without running out of sockets so you can do long running scripts and automation in a very natural way. While this does not give you anything you could not do with IOL and a module.js code page the process is self contained and the results are very shareable between users and applications.

As to Haskell I was just kidding - I would not miss this meetup for the world. Funny thing about Haskell and QuickBase is that the Empower logo with the "double chevron" is in fact the same as Haskell's monadic bind operator (ie ">>"). I think this foreshadows great innovations to come.
(Edited)