Codeunit 18122045 EOS009 LE Source Location

Codeunit 18122045 EOS009 LE Source Location

Adds the source location to the report. By source location the location of the document header is meant.

Methods

Register

procedure Register(var Section: Record "EOS Adv Reporting Sections")

Parameters / Return Value

  • Section Record "EOS Adv Reporting Sections"

Execute

procedure Execute(Position: Enum "EOS AdvRpt Layout Position"; DocumentHeader: RecordRef; DocumentLine: RecordRef; var Header: Record "EOS Report Buffer Header"; var Line: Record "EOS Report Buffer Line")

Parameters / Return Value

  • Position Enum "EOS AdvRpt Layout Position"

  • DocumentHeader RecordRef

  • DocumentLine RecordRef

  • Header Record "EOS Report Buffer Header"

  • Line Record "EOS Report Buffer Line"


Events

OnAfterGetSourceLocation

local procedure OnAfterGetSourceLocation(DocumentHeader: RecordRef; DocumentLine: RecordRef; var Location: Record Location; var Handled: Boolean)

Raised to allow customization of the source location retrieval logic. This will be executed after the source location has already been retrieved from the document header. If this event does not yield a valid location (Code <> ‘'), the source location will not be printed.

Parameters / Return Value

  • DocumentHeader RecordRef

    The document header record reference.

  • DocumentLine RecordRef

    The document line record reference.

  • Location Record "Location"

    The location to print as the source location.

  • Handled Boolean

    Gets or sets if the event has been handled.


OnAfterFormatLocationAddress

local procedure OnAfterFormatLocationAddress(DocumentHeader: RecordRef; DocumentLine: RecordRef; Location: Record Location; var LocationLines: List of [Text[100]])

Raised to allow customization of the formatting of the source location address. This will be executed after the address has been formatted from the location record.

Parameters / Return Value

  • DocumentHeader RecordRef

    The document header record reference.

  • DocumentLine RecordRef

    The document line record reference.

  • Location Record "Location"

    The location to print as the source location.

  • LocationLines List[Text]

    The list of lines to print for the source location.



EOS Labs -