When deploying forms from the source account to the target account using SDF, you may encounter an error: ‘The visible value of the [scriptid=custentity_portal_active_date] field object cannot be modified.‘ This error can occur when the forms try to overwrite an existing form. The error occurs when, in the existing form, a field is set to… Continue reading SDF errors when deploying forms
Author: Jency Nidhin
Map Reduce Script for Closing Work Orders
To close the work orders based on the search results, use the following code section. If a work order cannot be closed due to any unexpected errors or issues, the script will automatically send an email to the user, providing them with information about the encountered error. Consider the email sender: EMAIL_AUTHOREmail receiver: EMAIL_RECIPIENT
To find the time difference and date difference
To find the time difference from a date, use the following formula in the script The formula to calculate the days
Display a popup window in NetSuite with a Radio Field
Here we use ‘ExtJs’ to show the popup, and this is the one used by NetSuite to display the popup window. So, we can directly utilize this ‘Ext’ library in the scripts. Use the following code to display the popup window to input the Radio field value.
Upload files from the VS code to a new account
When the file upload functionality is not working in your system then deploy them as a project. To upload multiple files from one account to another account, create a VS code project and add the files that need to be deployed. (The path must be in the correct format) Then connect the target account to… Continue reading Upload files from the VS code to a new account
SDF Deployment Error while deploying Reports
While deploying the reports from one account to another, we imported the XML files for both the report and the layouts. However, during the validation of objects in the target account, an error may occur, stating: “The manifest contains a dependency on customlayout_1_7358136_717 object, but it is not present in the account“. To resolve this… Continue reading SDF Deployment Error while deploying Reports
Deploy Forms from source account to target account
If a user needs to deploy Entry forms and transaction forms from one account to another, it may result in a ‘Time out’ error due to the bulk data, such as forms containing lists, fields, field groups, and sublists. In such cases, the only solution is to deploy the forms individually. However, the way to… Continue reading Deploy Forms from source account to target account
Close the Work Orders
If the user needs to close the work orders using the script, use the following function,
Disable the fields and sublist fields from editing if the record was created 24 hours before.
If the record was created 24 hours before, restrict the user from editing some of the fields and sublists. For that, we can use a client script to disable the fields and sublists in the PageInit entry point based on the conditions. The sample codes are given below,
Show a Popup Window with a list of values
If a user needs to show a popup window that contains the custom list add the following codes. Here we use ‘ExtJs’ to show the popup, and this is the one used by NetSuite to display the popup window. So, we can directly utilize this ‘Ext’ library in the scripts. If we need to remove the… Continue reading Show a Popup Window with a list of values