How to get content of a file in client script

In a suitelet page, we have a field(id: custpage_import_file) for uploading files(document field). The following script snippet shows how we can get the file object and get the file content. var file = rec.getValue({ fieldId: ‘custpage_import_file’ }); if (file) {       var fileDom = document.getElementsByName(‘custpage_import_items_field’)[0].files;       var fileObj = fileDom[0];  … Continue reading How to get content of a file in client script

Material Forecasting Report Customization

LOTEC-146 Material Forecasting Report Suitelet page for forecasting report: /**  * @NApiVersion 2.1  * @NScriptType Suitelet  */ /************************************************************************************************************************* * L+O Technologies * LOTEC-148 Report for forecasting the Materials required for each branch in a date range based on Proscope * Epic: LOTEC-146 * ********************************************************************************************************************* * * Author: Jobin & Jismi * * Date Created :… Continue reading Material Forecasting Report Customization

Different methods to fetch the Query search result

Run the Query search to get the result This will return a maximum of 5000 results.  var resultSet = requisitionQuery.run(); let resultasObject= resultSet.asMappedResults();// return the result as array of object. Where the key in the object will be the alias or fieldid and the value will be the field value. Paginated Query search result The… Continue reading Different methods to fetch the Query search result

How to remove the Suitelet page leave popup

The confirmation popup shows when the page leaves or reloads. There are two main scenarios where the confirmation popup shows in suitelet: Page reloads through client script on fieldchnage Page reloads on custom button action Add the following code snippet in the client script function. if (window.onbeforeunload) {// to block the popup while reloading the… Continue reading How to remove the Suitelet page leave popup

How to avoid fieldChange client script function trigger looping issue?

On the field change of a specific field, if we change the field value of that same field through the script, the FieldChnage function will repeat triggering for the new change we have done through the script. To avoid this issue Netsuite provides a parameter named “ignoreFieldChange”. In CurrentRecord.setValue function,, we can set this parameter… Continue reading How to avoid fieldChange client script function trigger looping issue?

Report for Forecasting the Materials Required in Project

Proposal Summary    This proposal is to create a Report for forecasting the Materials required for each branch in a date range based on Proscope.    Requirement  The client has long been interested in adding forecasting capabilities to NetSuite. The current idea involves creating forecasts based on scheduled activities within specified date ranges and branches.… Continue reading Report for Forecasting the Materials Required in Project

Disadvantages of NetSuite connector for Shopify integration

NetSuite Connector Disadvantages: Besides the initial implementation costs, there’s a recurring subscription fee. The Shopify-NetSuite connector lacks support for handling item exchanges. Updates at the item level on Shopify won’t be accurately reflected in NetSuite due to the connector’s limitations. Syncing is only one way from Shopify to NetSuite; changes made in NetSuite won’t reflect… Continue reading Disadvantages of NetSuite connector for Shopify integration