RecordId.GetRecord() Method
Version: Available or changed with runtime version 1.0.
Gets a RecordRef that refers to the record identified by the RecordID.
Syntax
RecordRef := RecordId.GetRecord()
Parameters
RecordId
Type: RecordId
An instance of the RecordId data type.
Return Value
RecordRef
Type: RecordRef
The RecordRef of the record.
Remarks
No data is read from the database when you run this method and therefore, no other fields in the record are set. Furthermore, no filters are set on the record.
Example
The following example opens table number 18 (Customer table) and sets a reference to the table. The FindLast Method (RecordRef) selects the last record in the table. The RecordId Method (RecordRef) retrieves the ID of the currently selected record. In this case, it is the last record in the table. The GetRecord Method (RecordId) uses the retrieved record ID to determine the RecordRef of the selected record (the last record). This example requires that you create the following global variables and text constant.
var
RecRef: RecordRef;
RecID: RecordID;
RecRef.Open(18);
RecRef.FindLast;
RecID := RecRef.RecordId;
RecRef := RecID.GetRecord;
See Also
RecordId Data Type
Get Started with AL
Developing Extensions
フィードバック
https://aka.ms/ContentUserFeedback」を参照してください。
以下は間もなく提供いたします。2024 年を通じて、コンテンツのフィードバック メカニズムとして GitHub の issue を段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、「フィードバックの送信と表示