Category Archives: SuiteScript 2.0

JSDoc in SuiteScript 2.0

As your NetSuite training provider and netsuite solution provider we come up with new blog which emphasize on JSDoc. Now in this netsuite training we are going to discuss more on JSDoc.

What is JSDoc?

JSDoc is a markup language used to annotate JavaScript source code files. Using comments containing JSDoc, programmers can add documentation describing the application programming interface of the code they’re creating. This is then processed, by various tools, to produce documentation … Read the rest


Calling ClientScript from Suitelet

Suppose there is a scenario where we want to create a form and we want to perform some action on the client side as in UI of netsuite. So what a can do for the better netsuite customization that we tell you in this tutorial of as a netsuite solution provider.

In Simple words we have to write a suitelet which can call a client script on click of button and that button is … Read the rest


Things to understand before selecting ERP

Hello folks here in the series if blog this time as a netsuite solution provider we come up with something basic but really important from the perspective of the clients. Sometime few netsuite solution providers do not give more emphasize on the clarity which is supposed to provided to the Clients to show them the pecularities and characteristics of different ERPs present in the ecosystem.

Now here come a question… Why its an important to … Read the rest


Decoding N/cache Module in Netsuite Series #1

As we all know that the cache plays an important role In Performance as netsuite solution provider we usually perform lots of operation where the call of the script from browser to server and vice a versa. So more importantly to increase the speed of the processing data cache come into the picture which is important for netsuite training perspective.

In NetSuite implementation and netsuite support  N/Cache module Load the cache module to enable temporary, … Read the rest


Calling User Event Script from another User Event

User event scripts are executed on the NetSuite server. They are executed when users perform certain actions on records, such as create, load, update, copy, delete, or submit. Most standard NetSuite records and custom record types support user event scripts.

The Most important thing is User event scripts cannot be executed by other user event scripts or by workflows with a Context of User Event Script. In other words, you cannot chain user event scripts. … Read the rest


Understand Core Technology behind SuiteScript 2.0

The core of SuiteScript 2.0 came from the RequireJsand CommonJs background. RequireJS is a JavaScript file and module loader. It is optimized for in-browser use, but it can be used in other JavaScript environment. Using a modular script loader like RequireJS will improve the speed and quality of your code.
Commonjs  defines a module format. Unfortunately, it was defined without giving browsers equal footing to other JavaScript environments. Because of that, there are CommonJS specification proposals
Read the rest

Understanding SuiteScript 2.0

NetSuite ERP is expanding its footprints very rapidly with new and latest technology implementation in the backend and frontend to improve the user experience. Implementation partner and solution provider needs to take care of some important things about the technology  which NetSuite Cutomization is using, as after the release of SuiteScrip 2.0 NetSuite is more flexible and customizable. Following are some of the things in NetSuite Implementation need to understand before going deep into suitescript

Read the rest

How To Overcome Script Execution Time Exceeded Error in Schedule script 2.0?

As a NetSuite Solution Provider we consistently gives focus on optimizad netsuite customization and netsuite Support.
The disadvantage of schedule script in suitescript 2.0 is that yield script functionality which is there in 1.0 has been taken away. Yield script had a great advantage of being able to resume the script from the point it stopped when time or usage limit exceeded.Workaround in schedule suitescript 2.0 to overcome time exceeded error is to monitor
Read the rest

HOW TO CREATE A SEARCH IN SUITESCRIPT 2.0?

To create a search within any 2.0 script, we need to use search module and using its object create filters and columns and then run it. The following code can be used to create a search in SuiteScript 2.0define([‘N/record’, ‘N/search’],

function(record, search) {
function execute(scriptContext) {

var customersearch = search.create({
type: “customer”,
filters: [

search.createFilter(

{
name: ‘isinactive’,
operator: ‘is’,
values:[‘F’]
}),

],
columns: [
search.createColumn({
name: “internalid”,
sort: search.Sort.ASC
}),

“email”,

]
});

var

Read the rest

LOADING A SEARCH IN 2.0 SCRIPT AND OVERCOMING 1000 ROWS LIMIT

An existing search can be loaded or new one can be created in SuiteScript 2.0 and we can also over come the limitation of just 1000 rows being returned in one execution. Below code can be used for this:

var mysearch = search.load({

id: ‘8888’ // enter the existing search id (name or internal id)

});

var fil = search.createFilter({

name: ‘inactive’,

operator: ‘is’,

values: false

});

mysearch.filters.push(fil);

var customersearchResult = mysearch.run().getRange(0, 1000);

if(customersearchResult!=null&&customersearchResult!=”&&customersearchResult!=’ ‘)

Read the rest