ResultSet.columns

Note:

The content in this help topic pertains to SuiteScript 2.0.

Property Description

An array of search.Column objects that represent the columns returned in the search results.

Type

search.Column[]

This property is read-only

Supported Script Types

Client and server scripts

For more information, see SuiteScript 2.x Script Types.

Module

N/search Module

Since

2015.2

Syntax
Important:

The following code sample shows the syntax for this member. It is not a functional example. For a complete script example, see N/search Module Script Samples.

          //Add additional code 
...
 var mySearch = search.load({
    id: 'customsearch_my_so_search'
  });

  var resultSet = mySearch.run();
  log.debug({
    details: "There are " + resultSet.columns.length + " columns in the result set:"
    });

  resultSet.columns.forEach(function(col){ // log each column
    log.debug({
        details: col
    });
  });
...
//Add additional code 

        

Related Topics

search.ResultSet
N/search Module
SuiteScript 2.x Modules
SuiteScript 2.x

General Notices