Column.name
Property Description |
Name of a search column as a string. |
Type |
string (read-only) |
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
...
// Create a search definition that includes search columns
var mySearch = search.create({
type: search.Type.CUSTOMER,
columns: [
search.createColumn({
name: 'entityid'
}),
search.createColumn({
name: 'email'
})
]
});
// Retrieve the first search column and log its name
var myColumn = mySearch.columns[0];
log.debug(myColumn.name);
// Run the search
var results = mySearch.run();
...
// Add additional code