Friday, September 14, 2018

View the Client Side Suitescript Code without Downloading the javascript File

 

  1. Log on to NetSuite using Google Chrome.
  2. Navigate to the record with a Client-Side Suitescript.
  3. From the upper-right corner of the browser, click the Settings/Wrench icon and navigate to Tools > Developer Tools (shortcut: Ctrl + Shift + I).
  4. Type the function name in the console window.

 

Example: fieldChanged_Intrastat

Result in the console window:

 

function fieldChanged_Intrastat(type, name) {

    try {

              if (type == 'item') {

                      if (name == 'item') {

                          setNoTC();

                      }

               }

          }

      catch (ex) {

               nlapiLogExecution('ERROR', ex instanceof nlobjError ? ex.getCode() : CUSTOM_ERROR_CODE, ex instanceof nlobjError ? ex.getDetails() : 'JavaScript Error: ' + (ex.message != null ? ex.message : ex));

       }

}

 

 

 

  1. Navigate to the deployment pages to find out the function name.

For Form-level Client Side Suitescript:

  1. Load the record.
  2. Click the Customize button, the script can be located at the Custom Code tab

For Global Client Side Suitescript:

  1. Customization > Scripting Script Deployments


No comments:

Post a Comment