Modules

filter

 

Objects/Functions

module (N/search)

SuiteScript 2.0

Column.function

{Column}.function{percentOfTotal: {% of Total},absoluteValue: {Absolute Value},ageInDays: {Age In Days},ageInHours: {Age In Hours},ageInMonths: {Age In Months},ageInWeeks: ${7:Age In Weeks},ageInYears: ${8:Age In Years},calendarWeek: ${9:Calendar Week},day: {0:Day},month: {1:Month},negate: {2:Negate},numberAsTime: {3:Number as Time},quarter: {4:Quarter},rank: {5:Rank},round: {6:Round},roundToHundredths: {7:Round to Hundredths},roundToTenths: {8:Round to Tenths},weekOfYear: {9:Week of Year},year: {0:Year}})

N/search Module
Column.function
Property Description: Special function applied to values in a search column. See Supported Functions.
Type: string
Supported Script Types: All script types For more information, see SuiteScript 2.0 Script Types.
Module: N/search Module
Since: 2015.2
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=Column.function

Example:

// Code Example 1
//Add additional code
//...
var columnObj = search.createColumn({ // the age of the sales order in days
name: 'trandate',
function: 'ageInDays'
});
//...
//Add additional code

//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_453268676757.html