Slig
07/26/2021, 7:19 PMdefine(['N/runtime', 'N/https'],
function(runtime, https) {
function beforeLoad(context) {
if (context.type === context.UserEventType.VIEW) {
const form = context.form;
const newRecord = context.newRecord;
form.clientScriptModulePath = './rsc_client_pdf_pedido_compra.js';
form.addButton({
id: 'custpage_pdf_btn',
label: 'Imprimir',
functionName: 'openPdf'
});
// form.clientScriptModulePath = './ISP_Customer_CS.js';
}
}
return {
beforeLoad: beforeLoad
};
});
I need to allow a button to print even with the registry locked, Can you help me?battk
07/26/2021, 8:40 PMSlig
07/27/2021, 1:28 PMbattk
07/27/2021, 4:57 PMSlig
07/27/2021, 7:05 PMec
07/28/2021, 10:03 PMopenPdf
function look like?