Passing Values from BeforeSubmit to AfterSubmit in a NetSuite User Event Script

Introduction: NetSuite User Event scripts are powerful tools for automating processes within your NetSuite environment. Sometimes, there’s a need to pass values between different phases of a User Event script, such as from BeforeSubmit to AfterSubmit. This article explores a technique using the Cache module to achieve this seamless data transfer. Using the Cache Module:… Continue reading Passing Values from BeforeSubmit to AfterSubmit in a NetSuite User Event Script

Resetting forms

$({form id}).reset() form id should be the id of the form that we need to reset. Example: reset will be done by $(‘#formid’).reset();

How to target a specific matrix child from the list of several matrix child items from the parent item

When we have huge number of child items in a parent item and we want to target a specific type of child item we can target it uasing the extensibility API of PDP page methods. _.extend(ProducDetailsFullView.prototype, { getContext: _.wrap(OrderWizardModulePromocodeForm.prototype.getContext, function (fn) { let original_Ret = fn.apply(this, _.toArray(arguments).slice(1)); let pdp = container.getComponent(‘PDP’); let getSelectedMatrixChild = pdp.getSelectedMatrixChilds( {custitem_ag_check_colors:… Continue reading How to target a specific matrix child from the list of several matrix child items from the parent item

“MODULE_DOES_NOT_EXIST” when trying to utilize @NAmdConfig

My modules file is located at “SuiteScripts/Config/modules.json” and contains the following contents: {“paths”: {“prefUtils”: “SuiteScripts/Modules/Pref.js”}} In a Suitelet file, the following is at the top: /*** @NApiVersion 2.1* @NScriptType Suitelet* @NAmdConfig /SuiteScripts/Config/modules.json*/ define(‘prefUtils’], function (prefUtils) { ….. However this script errors with the message: {“type”:”error.SuiteScriptModuleLoaderError”,”name”:”MODULE_DOES_NOT_EXIST”,”message”:”Module does not exist: /prefUtils.js”,”stack”:[]} It’s as if the module config file isn’t… Continue reading “MODULE_DOES_NOT_EXIST” when trying to utilize @NAmdConfig

How can a resource be assigned to a project

A resource can be assigned to a project either directly on the Resource allocation record or by editing tasks from the project record. Also, the Project Task Manager bundle enables the allocation of project resources to different tasks using a graphic interface.

How to show Checkbox in Advanced PDF?

There is no standard method for showing the checkbox in PDF. Showing a checkbox image in the print or using the following code snippet based on the check box field value. <#if record.checkbox == true> [<span style=”color:green; font-size:12px;”> ✓ </span>] <!– Checkmark symbol –> <#else> [<span style=”color:red; font-size:12px;”> ✗ </span>] <!– Cross symbol –> </#if>

How to grant access to the Project records for the roles

Navigate to Setup > User/Roles > Manage Roles and choose the relevant role requiring access. Click on the Edit option. Proceed to the ‘Lists’ tab under the ‘Permissions’ subtab. From the Permissions columns, select ‘Projects’ from the dropdown menu. Define the desired permission level (View, Create, Edit, Full) and save your changes.