API Docs for: 1.0.6
Show:

AutoIncrementColumn Class

Defined in: src\jsDataSet.js:733
Module: DataRow
Parent Module: DataSet

Describe how to evaluate the value of a column before posting it

Methods

customFunction

(
  • r
  • columnName
  • conn
)
Object

Optional custom function to be called to evaluate the maximum value

Parameters:

Returns:

getExpression

(
  • r
)
SqlFun

gets the expression to be used for retrieving the max

Parameters:

Returns:

SqlFun:

getPrefix

(
  • r
)

Gets the prefix evaluated for a given row

Parameters:

Returns:

string

getSelector

(
  • r
)
SqlFun

evaluates the function to filter selector on a specified row and column

Parameters:

Returns:

SqlFun:

Properties

[idLen=0]

Number

for string id, the len of the evaluated max. It is not the overall size of the evaluated id, because a prefix and a middle const might be present If idLen = 0 and there is no prefix, the field is assumed to be a number, otherwise a 0 prefixed string-number

[isNumber=false]

Number

true if this field is a number

[linearField=false]

Boolean

Indicates that numbering does NOT depend on prefix value, I.e. is linear in every section of the calculated field

[middleConst]

String

String literal to be appended to the prefix before the evaluated max

[minimum=0]

Number

Minimum temporary value for in-memory rows

[prefixField]

String

A field to use as prefix for the evaluated field

[selector]

String[]

Array of column names of selector fields. The max() is evaluating filtering the values of those fields

[selectorMask]

Number[]

Array of bit mask to use for comparing selector. If present, only corresponding bits will be compared, i.e. instead of sel=value it will be compared (sel & mask) = value

columnName

String

name of the column that has to be auto-incremented