Fungsi Aliran JavaScript
const flow = (...fns) => x0 => fns.reduce(
(x, f) => f(x),
x0
);
Clean Caracal
const flow = (...fns) => x0 => fns.reduce(
(x, f) => f(x),
x0
);
{!REQUIRESCRIPT("/soap/ajax/30.0/connection.js")}
{!REQUIRESCRIPT("/soap/ajax/30.0/apex.js")}
var error = sforce.apex.execute("EcheanceHandler","generateEcheances",{conOrOppId:'{!Opportunity.Id}'});
if(error != "success"){
alert(error);
}
window.location.href = window.location.href;