Friday, January 4, 2019

nlapiGetRecordType() on Location in client side script

Since nlapiGetRecordType() returns null, one can check if the checkbox field 'Make Inventory Available' is not null.

 

var recordType = nlapiGetRecordType();
if (!recordType) {
     var aLocationField = nlapiGetFieldValue("makeinventoryavailablestore");
     if (aLocationField) {
          recordType = "location";
     }
}

 


No comments:

Post a Comment