Expand all | Collapse all

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

  • 1.  Adios &rdr ~ Hello Async/Await Fields !!!!!!!!!!!!!!!!!!!!!!!!!!

    Posted 12-06-2018 20:09
    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! 

  • 2.  RE: Adios &rdr ~ Hello Async/Await Fields !!!!!!!!!!!!!!!!!!!!!!!!!!

    Posted 12-06-2018 20:44
    Dan...Seriously...This is a major break through. I am excited! Can I join your Haskell meetup next time?

  • 3.  RE: Adios &rdr ~ Hello Async/Await Fields !!!!!!!!!!!!!!!!!!!!!!!!!!

    Posted 12-06-2018 21:26
    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.