Managing large sublists, such as the Sales Order Item sublist, can be challenging, especially when scrolling through numerous rows. Freezing the header and first column provides a better user experience by keeping key information in view as you scroll horizontally or vertically. Here is a solution that achieves this using a combination of User Event… Continue reading Freezing the Header and First Column in Sales Order Item Sublist
Author: Abhishek A K
Setting Up an Online Customer Form and Online Custom Record Form
How to Set Up an Online Customer Form Navigate to Online Forms: Go to Customization > Forms > Online Forms in NetSuite. Create New Form: Select New Online Form and choose the Customer record type. Configure Fields: Add standard or custom fields as necessary. You can also specify required fields or hidden fields. Define Access… Continue reading Setting Up an Online Customer Form and Online Custom Record Form
Understanding the Differences Between Online Customer Forms and Online Custom Record Forms in NetSuite
NetSuite offers a wide array of tools to help businesses manage data collection and streamline workflows. Among these are Online Customer Forms and Online Custom Record Forms, both designed for gathering data from users online. While they may sound similar, they serve distinct purposes and have unique setups that cater to different types of information… Continue reading Understanding the Differences Between Online Customer Forms and Online Custom Record Forms in NetSuite
Retrieving All Sub-Customer IDs for a Given Parent Customer Using a Single Batch Search in NetSuite
Below is a getAllSubCustomers function designed to retrieve every sub-customer ID associated with a given parent customer ID. This function uses a queue-based method to explore each parent’s sub-customers recursively until all are found. Here’s the script in detail: function getAllSubCustomers(clubCustomer) { // Array to store subcustomer IDs … Continue reading Retrieving All Sub-Customer IDs for a Given Parent Customer Using a Single Batch Search in NetSuite
SuiteScript: Adding and Removing IDs from a Multi-Select Field in NetSuite
To add or remove IDs from a multi-select field in NetSuite using SuiteScript, you can manipulate the multi-select field using its internal ID and the respective value(s) you want to add or remove. Here’s how you can approach both tasks: 1. Add ID to Multi-Select Field: You would first retrieve the existing values from the… Continue reading SuiteScript: Adding and Removing IDs from a Multi-Select Field in NetSuite
Managing Cookies in SuiteScript
Setting Cookies To set a cookie in SuiteScript, you modify the HTTP response headers within a Suitelet. Example: Setting a Cookie in a Suitelet /** * @NApiVersion 2.x * @NScriptType Suitelet */ define([‘N/https’], function(https) { function onRequest(context) { if (context.request.method === ‘GET’) { // Generate a session token or any data you want to store… Continue reading Managing Cookies in SuiteScript
What Are Cookies?
Cookies are small pieces of data stored on the user’s browser by a website. They are sent back to the server with each subsequent request, allowing the server to recognize the user and maintain stateful information across different pages and sessions. Common Uses of Cookies: Session Management: Keeping users logged in as they navigate the… Continue reading What Are Cookies?
Hiding a Sublist Using Inline HTML Method
In NetSuite, hiding specific elements on a form can be achieved by injecting custom HTML or JavaScript into the page. The provided code demonstrates how to hide a sublist (in this case, a subtab) on a NetSuite form using the INLINEHTML field type. Here is a breakdown of how the code works: 1. Creating an… Continue reading Hiding a Sublist Using Inline HTML Method
Proposal For Credit Card Charges Approval Workflow
Proposal Summary This proposal outlines the plan to implement an approval workflow for Credit Card Charges in NetSuite for Advantmed. The goal is to ensure that all credit card transactions are reviewed and approved before they are posted, thereby enhancing financial controls and reducing the risk of unauthorized or erroneous charges. Requirement from Advantmed Advantmed… Continue reading Proposal For Credit Card Charges Approval Workflow
Components & Best Practices for Map/Reduce Scripts
Components of Map/Reduce Scripts 1. Map Phase Purpose: To process individual records and transform data. Function: Processes each record retrieved by a search or data input, usually in parallel, and emits intermediate results for the Reduce phase. Implementation: Implemented using the map() function. 2. Reduce Phase Purpose: To aggregate and further process the data emitted… Continue reading Components & Best Practices for Map/Reduce Scripts