Wednesday, May 8, 2019

Hide a custom column field via SuiteScript

To hide a custom column field via SuiteScript, you may use nlapiGetLineItemField() which returns an nlobjField that have a setDisplayType() method. You can then use the method to set the field as hidden. Please check sample code below:

nlapiGetLineItemField('item','custcol30',1).setDisplayType('hidden'); //where custcol30 is the internal id of the custom column field.

Reminder: The setDisplayType() method cannot be used in client scripts.

Disclaimer: The sample code described herein is provided on an"as is" basis, without warranty of any kind, to the fullest extentpermitted by law. NetSuite Inc. does not warrant or guarantee the individualsuccess developers may have in implementing the sample code on theirdevelopment platforms or in using their own Web server configurations.

NetSuite Inc.does not warrant, guarantee or make any representations regarding the use,results of use, accuracy, timeliness or completeness of any data or informationrelating to the sample code. NetSuite Inc. disclaims all warranties, express orimplied, and in particular, disclaims all warranties of merchantability,fitness for a particular purpose, and warranties related to the code, or anyservice or software related thereto.

NetSuite Inc. shall not be liablefor any direct, indirect or consequential damages or costs of any type arisingout of any action taken by you or others related to the sample code.

 


No comments:

Post a Comment