FormDataSource.last Method [AX 2012]

Moves the mouse pointer to the last record in the data source.

public int last()

Run On

Client

Return Value

Type: int
A non-zero value if the mouse pointer is successfully moved to the last record.

The last method can be overridden on a form data source by right-clicking the Methods node under the data source, pointing to Override Method, and then clicking last.

The following example overrides the last method for the InventDim data source on the WMSOrderTransport form and returns the last record in the other data source that is used on the form.

int last() 
{ 
    return WMSOrder_ds.last(); 
}

Community Additions

ADD
Show: