getColumnIdFromFieldName( fieldName )



This method retrieves the column id based on a field name. The column id is equivalent to the column index before the user (or custom application code) hides or moves any columns.

Parameters

  • fieldName - field name, as defined in the subfile record format

Example

Retrieve column id
var columnId = getObj("Grid1").grid.getColumnIndexFromFieldName("CUSTNUM");