<< Click to Display Table of Contents >> Navigation: Zetadocs SDK Guide > Zetadocs SDK API > OnLookupReviewLine |
OnLookupReviewLine Event
Runs when the user triggers the Business Central OnLookup method (e.g. Line "No." or "Item Variant" fields). The field being looked up is specified in the lookup context.
Publisher
[IntegrationEvent(false, false)]
procedure OnLookupReviewLine(var OnLookupReviewLineHandler: Codeunit "Zdd OnLookupReviewLine")
begin
end;
Subscriber
To subscribe to this event, you will need to decorate the subscriber method with the correct EventSubscriber attributes:
[EventSubscriber(ObjectType::Codeunit, Codeunit::"Zetadocs Customize", 'OnLookupReviewLine', '', true, true)]
local procedure OnLookupReviewLine(var OnLookupReviewLineHandler: Codeunit "Zdd OnLookupReviewLine")
begin
end;
Zdd OnLookupReviewLine codeunit
This codeunit exposes procedures that give you access to the Zetadocs Review Line, which is shown for user validation on the Zetadocs Review Screen.
Method name |
Description |
---|---|
GetLookupContext(Record "Zetadocs ADE Lines"; Text; enum "Zetadocs Review Line Column") |
Will return the context information about lookup being performed. |
GetLookupValue(Text): |
Will return the currently selected value for the lookup. |
SetLookupValue(Text) |
Will set the lookup value. |
SetError(Text) |
Will raise raise a validation error to the user. |
Will return information related to the review line.
Syntax
OnLookupReviewLineHandler.GetLookupContext(
var reviewLine: Record "Zetadocs ADE Lines";
var onLookupText: Text;
var fieldNameLookedUp: enum "Zetadocs Review Line Column")
Parameters
reviewLine
Type: Record "Zetadocs ADE Lines"
The variable to store the information about the Zetadocs Review Line being looked up.
onLookupText
Type: Text
The string entered into the text box and used as the lookup value.
fieldNameLookedUp
Type: Enum "Zetadocs Review Line Column"
The differentiator indicating which field is being lookedup.
Will return the currently selected Value for the lookup.
Syntax
OnLookupReviewLineHandler.GetLookupValue(var value: Text)
Parameters
value
Type: Text
The value of the Lookup.
Will override the Zetadocs Review Line data.
Syntax
OnLookupReviewLineHandler.SetLookupValue(value: Text)
Parameters
value
Type: Text
The value of the Lookup.
Will raise an error including the provided text.
Syntax
onAddDefaultsToReviewLineHandler.SetError(errorText: Text")
Parameters
errorText
Type: Text
The message to be displayed to the user when the validation fails.