dennysutanto
02/03/2022, 1:59 PMconst exportToExcel = () => {
const totalLines = nlapiGetLineItemCount('custpage_transaction_list');
alert(totalLines);
}
but is there a way to convert the nlapiGetLineItemCount
to equivalent suitescript 2 API ?Azi
02/03/2022, 2:27 PMAzi
02/03/2022, 2:27 PMSandii
02/03/2022, 4:46 PMdennysutanto
02/03/2022, 4:52 PMdennysutanto
02/03/2022, 4:53 PMbattk
02/03/2022, 4:54 PMdennysutanto
02/04/2022, 1:42 AMcurrentRecord
is automatically available in my exportToExcel function in client script ?dennysutanto
02/04/2022, 1:43 AMlog.debug('test', currentRecord)
showed me emptybattk
02/04/2022, 1:49 AMN/currentRecord
battk
02/04/2022, 1:50 AMbattk
02/04/2022, 1:51 AMwindow.require
dennysutanto
02/04/2022, 3:00 AMdefine(['N/url', 'N/runtime', 'N/currentRecord'],
battk
02/04/2022, 3:04 AMdennysutanto
02/04/2022, 3:09 AMconst exportToExcel = () => {
log.debug('currentRecord', JSON.stringify(currentRecord));
it shows empty {}battk
02/04/2022, 3:10 AMbattk
02/04/2022, 3:11 AMget
whose value is a functionbattk
02/04/2022, 3:11 AMdennysutanto
02/04/2022, 6:27 AM