JavaScript

{grid.object}harvestColumn Method

Syntax

{grid.object}.harvestColumn(fieldname [,delimiter])

Arguments

fieldnamestring

The field that you want to retrieve all row values from.

delimiterstring

Default = ",". The delimiter used to separate row values.

Description

Gets the value for a field in every row of the Grid and returns a delimited string. Default value for delimiter is a comma.

Example 

Assume a Grid as 3 rows and the value of the Lastname field in these rows is 'Jones', 'Smith' and 'King'. Method returns 'Jones,Smith,King'

{grid.object}.harvestColumn('LASTNAME');
{grid.object}.harvestColumn("Address","|");

See Also