How to render the transaction as PDF and get the PDF as Base64 encode format

 let transactionFile = render.transaction({                         entityId: parseInt(internal id of the transaction)                         printMode: render.PrintMode.PDF,                                      … Continue reading How to render the transaction as PDF and get the PDF as Base64 encode format

How to pass parameters to suite let page by using HTML

<body> <div class=”button-container”>   <form action=”#” method=”post”>     <input type=”submit” value=”Logout” onclick=”logout()”>      </form> </div> <script> function logout(){ alert(“You have been logged out.Please login again!”);  window.open(” URL of the suitelet page which you need to open when click logout button”);   window.close();   window.history.forward();   var formData = new FormData();   formData.append(‘logoutId’,true);  … Continue reading How to pass parameters to suite let page by using HTML

How to create alert based on suitelet button in suitelet page

 Here, we just show the alert and moving back to the previous page.  function alertExpense(scriptContext) {             try {                 let html = ‘<script>alert(“Please add expenses before submit.”);window.history.back();</script>’;                 scriptContext.response.write(html);            … Continue reading How to create alert based on suitelet button in suitelet page

Script Deployment Updates

Updating a script deployment in Oracle NetSuite is done either through the Deployments sublist on the script record or by directly editing the script deployment record. It’s essential to understand that the method you use may vary depending on the type of script you’re working with. Some script types like portlet, RESTlet, Suitelet, and user… Continue reading Script Deployment Updates

Find a value in array of objects (JavaScript)

This post will discuss how to find a value in an array of objects in JavaScript. 1. Using Array.prototype.find() function The recommended solution is to use the find() method that returns the first occurrence of an element in the array that satisfies the given predicate. The following code example demonstrates this by finding a person with the name John. var… Continue reading Find a value in array of objects (JavaScript)