Record.SetView(Text) Method

Version: Available or changed with runtime version 1.0.

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

Syntax

 Record.SetView(String: Text)

Parameters

Record
 Type: Record
An instance of the Record data type.

String
 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.

Remarks

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