Chris
04/14/2020, 4:36 PMbattk
04/14/2020, 4:44 PMChris
04/14/2020, 5:05 PMChris
04/14/2020, 5:06 PMbattk
04/14/2020, 5:11 PM/**
* @NApiVersion 2.0
* @NScriptType UserEventScript
* @NModuleScope SameAccount
*/
define(["exports"], function (exports) {
exports.beforeLoad = function (context) {
context.form.addButton({
label: "Battk's Button",
id: "custpage_battk_button",
functionName: "battkButton",
});
context.form.clientScriptModulePath = "./button.js";
};
});
battk
04/14/2020, 5:12 PMdefine([], function () {
return {
battkButton: function () {
alert("i was added in beforeLoad");
},
};
});
Chris
04/14/2020, 5:14 PMbattk
04/14/2020, 5:18 PMbattk
04/14/2020, 5:18 PMdefine([], function () {
this.battkButton = function () {
alert("i was added in beforeLoad");
}
});
battk
04/14/2020, 5:19 PMChris
04/14/2020, 5:27 PM