_anomDiebolt_
7 years agoQrew Elite
Adios &rdr ~ Hello Async/Await Fields !!!!!!!!!!!!!!!!!!!!!!!!!!
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:
This is so exciting I might just skip my Haskell meetup tonight!
_______________________________________________________
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!
_______________________________________________________