FormDataSource.defaultMark Method [AX 2012]

Sets the default mark value for records in a form, which determines whether records are marked when they have been selected in a grid.

public int defaultMark([int value])

Run On

Client

Parameters

value
Type: int
The default mark value for records in the form.
The standard default mark value for records is 1, but this value can be overridden by setting the value parameter.
A value other than 0 (zero) causes the record to be displayed as marked in grids in the form when they have been selected.

Return Value

Type: int
The default mark value for records in the form.

This method is executed when a user clicks the top-left corner in a grid control to select all the records in the grid.

The defaultMark method can be overridden on a form data source. Right-click the Methods node under the data source, and then select Override Method > defaultMark.

Community Additions

ADD
Show: