Discussions
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Join us
AE: a log configuration on a client script
I created a client script to put a button on the sales order page and want to leave a log.
However, the log is not left and never comes out with the following script.
What is the problem?
------------------
define([], function () {
/**
*
*
* @NApiVersion 2.0
* @NScriptType ClientScript
*/
var exports = {};
function pageInit(context) {
// just init button
}
function onButtonClick(context) {
// process
// process
log.audit({
title: 'finished processing',
details: context.CurrentRecord.getField('tranid') +': clear all shipment info'
});
}
exports.onButtonClick = onButtonClick;
exports.pageInit = pageInit;
return exports;
});