Improved Performance When Using %ScriptAsync

The information in this article applies to product: e-Work 6.0 - 6.5

Discussion

  • The performance of calls to the %ScriptAsync function can be improved by omitting the map name and procedure name arguments and using a filename argument instead. For example,

    %ScriptAsync(JScript,"", %Procedure.Name, %MapName, "SendMail()");

    becomes

    %ScriptAsync(JScript,"C:\\Scripts\\mailscript.js", "", "", "SendMail()");

    In this example, the JScript code is located in C:\\Scripts\\mailscript.js.

Tagged: