FormDataSource.prev Method [AX 2012]

Moves the focus to the previous record in the data source.

public int prev()

Run On

Client

Return Value

Type: int
A non-zero integer if the operation succeeds.

This method can be used to iterate through the records of a data source in reverse order.

The prev method can be overridden on a form data source. Right-click the Methods node under the data source, point to Override Method, and then click prev.

The following example overrides the prev method on a data source to return the previous record from a different data source.

int prev() 
{ 
    return inventTrans_ds.prev(); 
}

Community Additions

ADD
Show: