Record.SetView(Text) Method

Version: Available or changed with runtime version 1.0.

Sets the current sort order, key, and filters on a table.


 Record.SetView(String: Text)


 Type: Record
An instance of the Record data type.

 Type: Text
A string that contains the sort order, key, and filter to set. The string format is the same as the SourceTableView Property on pages.


The value of the String parameter can be returned by the GetView Method (Record) with the UseNames parameter explicitly set to false.

If the SetView method is executed with an empty string, all the filters are removed and the primary key is used.

If no table is selected, the SetView method fails.

This method works the same as the SetView Method (RecordRef).

See Also

Record Data Type
Get Started with AL
Developing Extensions