Table of Contents

Codeunit "Record Selection"

ID 9555
Namespace: System.Reflection

Exposes functionality to look up records.

Properties

Name Value
Access Public
InherentEntitlements X
InherentPermissions X

Methods

Open

Opens the record lookup page and assigns the selected records on the SelectedRecord parameter.

procedure Open(TableId: Integer, MaximumCount: Integer, var SelectedRecord: Record "Record Selection Buffer" temporary): Boolean

Parameters

Name Type Description
TableId Integer

The ID of the table from which records should be selected.

MaximumCount Integer

The maximum number of records allowed in the table that is being looked up. If there are more records, an error is thrown.

SelectedRecord Table System.Reflection."Record Selection Buffer"

The variable to set the selected records.

Returns

Type Description
Boolean

Returns true if a record was selected.

ToText

Returns a string representation of the record from the given TableId with the given SystemId. The string representation is a comma separated string of fields that describes the record.

procedure ToText(TableId: Integer, SystemId: Guid): Text

Parameters

Name Type Description
TableId Integer

The ID of the table from which the record is located.

SystemId Guid

The system id of the record.

Returns

Type Description
Text

A string representation of the record.

Examples

For the Company Information table, an example return value is "CRONUS International Ltd.". For the Bank Account Ledger Entry table, an example return value is "37,Order 106015,GIRO,01/01/24,Payment,108017"

See also