Shubi
08/21/2021, 9:52 PM/**
*@NApiVersion 2.x
*@NScriptType ClientScript
*/
define(['N/error'],
function(error) {
function pageInit(context) {
if (context.mode !== 'create')
return;
var currentRecord = context.currentRecord;
}
function startOver(){
var record = currentRecord.get();
var recId = record.id;
var recType = record.type
var suiteletURL = url.resolveScript({
scriptId:'customscript_sk_inventory_splitter_suite',
deploymentId: 'customdeploy_sk_inventory_splitter_suite',
});
document.location=suiteletURL;
}
return {
pageInit: pageInit,
startOver:startOver
};
});
Suitelet:
var assistant = serverWidget.createAssistant({
title : 'Assistant'
});
assistant.clientScriptId = 522;
//
//
//
form.addButton({
id: 'custpage_startover',
label: 'Start Over',
functionName: 'startOver()'
});
battk
08/22/2021, 4:52 AMbattk
08/22/2021, 4:52 AMShubi
08/22/2021, 6:31 PM