RecordRef.LoadFields(Integer,...) Method
Version: Available or changed with runtime version 6.0.
Accesses the table's corresponding data source and loads the values of the specified fields on the record.
Syntax
[Ok := ] RecordRef.LoadFields(Fields: Integer,...)
Parameters
RecordRef
Type: RecordRef
An instance of the RecordRef data type.
Fields
Type: Integer
The FieldNo's of the fields to be loaded.
Return Value
[Optional] Ok
Type: Boolean
true if all values were loaded on the record; otherwise, false. If you omit this optional return value and the operation does not execute successfully, a runtime error will occur.
Remarks
This method will trigger a JIT load of the specified fields. The method allows for triggering the JIT load on multiple fields. If the fields are already loaded, another load won't be triggered. Using this method instead of of relying on implicit JIT loads lets you develop for more explicit error handling when a load fails.
The method is part of the partial records capability for improving performance. For more information, see Using Partial Records.
See Also
Using Partial Records
RecordRef Data Type
Get Started with AL
Developing Extensions
Phản hồi
https://aka.ms/ContentUserFeedback.
Sắp ra mắt: Trong năm 2024, chúng tôi sẽ dần gỡ bỏ Sự cố với GitHub dưới dạng cơ chế phản hồi cho nội dung và thay thế bằng hệ thống phản hồi mới. Để biết thêm thông tin, hãy xem:Gửi và xem ý kiến phản hồi dành cho