Modules
Objects/Functions
SuiteScript 2.0
{search}.createColumn({name: {string},join: {string},summary: {string},formula: {string},function: {string},label: ${7:string},sort: ${8:string}})
N/search Module
search.createColumn()
Method Description:
Creates a new search column as a search.Column object.
As you create search columns, consider the following:
You cannot directly create a filter or column for a list/record type field in SuiteScript by passing in its text value. You must use the field’s internal ID. If you must use the field’s text value, you can create a filter or column with a formula using name: 'formulatext'.
After you create a column, you cannot change the sort order of the column. If you use the same column in another search and specify a new sort order, the previous sort order is still used (the sort order that you specified using the options.sort parameter).
Returns:
search.Column
Supported Script Types:
All script types
For more information, see SuiteScript 2.0 Script Types.
Governance:
None
Module:
N/search Module
Since:
2015.2
Search NetSuite -
https://system.netsuite.com/app/help/helpcenter.nl?search=search.createColumn(options)
Example:
// Code Example 1
//Add additional code
//...
var currencyColumn = search.createColumn({
name: 'currency',
sort: search.Sort.ASC
});
//...
//Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4345776927.html