RecordRef.HasLinks() Method
Version: Available or changed with runtime version 1.0.
Determines whether a record contains any links.
Syntax
Ok := RecordRef.HasLinks()
Note
This method can be invoked using property access syntax.
Parameters
RecordRef
Type: RecordRef
An instance of the RecordRef data type.
Return Value
Ok
Type: Boolean
true if the record contains any links, otherwise false.
Remarks
The link can be a link to a website, a file stored on the local computer or on a remote computer, or a link to a Dynamics 365 page.
Example
The following example opens table 18 (Customer) as a RecordRef variable that is named CustomerRecref. The Field Method (RecordRef) creates a FieldRef variable for field 1 (No.) and stores the value in the MyFieldRef variable. The Value Method (FieldRef, TestPage Field) selects record number 20000. The HasLinks method determines whether the selected record has any links. The method returns No because there are no links in the record.
var
CustomerRecref: RecordRef;
MyFieldRef: FieldRef;
varHasLinks: Boolean;
Text000: Label 'Does this record have one or more links? %1.';
begin
CustomerRecref.Open(18);
MyFieldRef := CustomerRecref.Field(1);
MyFieldRef.Value := '20000';
varHasLinks := CustomerRecref.HasLinks;
Message(Text000, varHasLinks);
end;
Related information
RecordRef Data Type
Get Started with AL
Developing Extensions