Codeunit 18123041 EOS EDoc. Page Handler

Codeunit 18123041 EOS EDoc. Page Handler

Gather all functions that handles user request from pages

Methods

OpenXMLFileFromInbDocHeader

procedure OpenXMLFileFromInbDocHeader(RecRef: RecordRef; UseTemplate: Boolean)

This function is used by Inb. Pages in order to open the XML

Parameters / Return Value

  • RecRef RecordRef

    The Record where the blob is saved

  • UseTemplate Boolean

    If true ask the user which template to use


OpenXMLFromPurchDocOutbList

procedure OpenXMLFromPurchDocOutbList(RecRef: RecordRef; useTemplate: Boolean)

Parameters / Return Value

  • RecRef RecordRef

  • useTemplate Boolean


OpenXMLFromOutbList

procedure OpenXMLFromOutbList(RecRef: RecordRef; useTemplate: Boolean)

Parameters / Return Value

  • RecRef RecordRef

  • useTemplate Boolean


OpenXMLFromInbList

procedure OpenXMLFromInbList(RecRef: RecordRef; useTemplate: Boolean)

Parameters / Return Value

  • RecRef RecordRef

  • useTemplate Boolean


OpenXMLFileFromOutbDocHeader

procedure OpenXMLFileFromOutbDocHeader(RecRef: RecordRef; UseTemplate: Boolean)

This function is used by Outb. Pages in order to open the XML

Parameters / Return Value

  • RecRef RecordRef

    The Record where the blob is saved

  • UseTemplate Boolean

    If true ask the user which template to use


OpenXMLFileFromPurchOutbDocHeader

procedure OpenXMLFileFromPurchOutbDocHeader(RecRef: RecordRef; UseTemplate: Boolean)

Parameters / Return Value

  • RecRef RecordRef

  • UseTemplate Boolean


ShowMessageLog

procedure ShowMessageLog(RecRef: RecordRef)

Used to open the dialog containing the Errors encountered during the creation of the XML

Parameters / Return Value

  • RecRef RecordRef

    RecordRef


SetStatusStyle

procedure SetStatusStyle(RecRef: RecordRef) StyleCtrl: Text[30]

Sets the style for the records in the Inbound Pages

Parameters / Return Value

  • RecRef RecordRef

    The record to which add the style

  • Returns Text[30]

    It can be: Strong,Unfavorable,Attention,Favorable


SaveEDocFromCard

procedure SaveEDocFromCard(RecRef: RecordRef)

It start creating the XML and Saving it

Parameters / Return Value

  • RecRef RecordRef

    The header of the document (sales/service Invoice/Cr. Memo)


SaveEDocFromList

procedure SaveEDocFromList(var RecRef: RecordRef)

It start creating the XML and Saving it. It can process multiple records

Parameters / Return Value

  • RecRef RecordRef

    The header of the document (sales/service Invoice/Cr. Memo)


SendEDocFromCard

procedure SendEDocFromCard(RecRef: RecordRef)

From a Document Card create the XML, save it and send it to IXFE

Parameters / Return Value

  • RecRef RecordRef

    The header of the document (sales/service Invoice/Cr. Memo)


SendEDocFromList

procedure SendEDocFromList(var RecRef: RecordRef)

From a Document List create the XML, save it and send it to IXFE. Handle multiple records

Parameters / Return Value

  • RecRef RecordRef

    The header of the document (sales/service Invoice/Cr. Memo)


SetPreviewLineStyle

procedure SetPreviewLineStyle(ElectronicDocPreviewLine: Record "EOS Inb. EDoc. Preview Line") StyleCtrl: Text[30]

Sets the style for the records in the Inbound Preview Pages

Parameters / Return Value

  • ElectronicDocPreviewLine Record "EOS Inb. EDoc. Preview Line"

    The record to which add the style

  • Returns Text[30]

    It can be: Strong,Unfavorable,Attention,Favorable


SetRatingStyle

procedure SetRatingStyle(RatingValue: Integer; VendorNo: Code[20]) StyleCtrl: Text[30]

Set the style of the rating

Parameters / Return Value

  • RatingValue Integer

    Integer

  • VendorNo Code[20]

    The no of the Vendor

  • Returns Text[30]

    It can be Attention,Favorable or None


OpenPostedDoc

procedure OpenPostedDoc(TableID: Integer; DocumentNo: Code[20])

Parameters / Return Value

  • TableID Integer

  • DocumentNo Code[20]


OpenOrderDoc

procedure OpenOrderDoc(TableID: Integer; DocumentNo: Code[20])

Parameters / Return Value

  • TableID Integer

  • DocumentNo Code[20]


GetInbElectrDocData

procedure GetInbElectrDocData(DocVariant: variant; ElectDocEntryNo: Integer; VAR EDocWarnings: Text; VAR EDocFileName: Text; VAR EDocAttachments: Integer)

Parameters / Return Value

  • DocVariant variant

  • ElectDocEntryNo Integer

  • EDocWarnings Text

  • EDocFileName Text

  • EDocAttachments Integer


GetInbNoOfWarnings

procedure GetInbNoOfWarnings(RecRef: RecordRef; SeverityMessageType: Option; OpenPage: Boolean; UseContext: Boolean) MsgStr: Text[80]

Parameters / Return Value

  • RecRef RecordRef

  • SeverityMessageType Option

  • OpenPage Boolean

  • UseContext Boolean

  • Returns Text[80]


DrillDownInbEDocData

PROCEDURE DrillDownInbEDocData(DocVariant: variant; ElectDocEntryNo: Integer; inFieldNo: Integer)

Parameters / Return Value

  • DocVariant variant

  • ElectDocEntryNo Integer

  • inFieldNo Integer


DrillDownInbEDocPreviewData

procedure DrillDownInbEDocPreviewData(SourceEntryNo: Integer)

Parameters / Return Value

  • SourceEntryNo Integer

DrillDownElectrDocPreviewAtt

procedure DrillDownElectrDocPreviewAtt(SourceEntryNo: Integer)

Parameters / Return Value

  • SourceEntryNo Integer

SetPreviewLineStyleTotals

procedure SetPreviewLineStyleTotals(ElectronicDocPreviewHeader: Record "EOS Inb. EDoc. Preview Header"; var StyleCtrl1: Text[30]; var StyleCtrl2: Text[30]; var StyleCtrl3: Text[30])

Parameters / Return Value

  • ElectronicDocPreviewHeader Record "EOS Inb. EDoc. Preview Header"

  • StyleCtrl1 Text[30]

  • StyleCtrl2 Text[30]

  • StyleCtrl3 Text[30]


ApplyFilterByMsgCode

procedure ApplyFilterByMsgCode(FilterByMsgCode: Code[10]; var ElectronicDocPreviewLine: Record "EOS Inb. EDoc. Preview Line")

Parameters / Return Value

  • FilterByMsgCode Code[10]

  • ElectronicDocPreviewLine Record "EOS Inb. EDoc. Preview Line"


OpenInbNAVTempDocument

procedure OpenInbNAVTempDocument(ElectronicDocPreviewHeader: Record "EOS Inb. EDoc. Preview Header")

Parameters / Return Value

  • ElectronicDocPreviewHeader Record "EOS Inb. EDoc. Preview Header"

OpenElectronicDocument

procedure OpenElectronicDocument(IncomingElectrDocHeader: Record "EOS Inb. EDoc. Header")

Parameters / Return Value

  • IncomingElectrDocHeader Record "EOS Inb. EDoc. Header"

OpenReconcile

procedure OpenReconcile(ElectronicDocPreviewHeader: Record "EOS Inb. EDoc. Preview Header")

Parameters / Return Value

  • ElectronicDocPreviewHeader Record "EOS Inb. EDoc. Preview Header"

DrillDownEDocStatus

procedure DrillDownEDocStatus(RecRef: RecordRef)

Parameters / Return Value

  • RecRef RecordRef

OpenDocAttachment

procedure OpenDocAttachment(EOSInbEDocAttachments: Record "EOS Inb. EDoc. Attachments")

Parameters / Return Value

  • EOSInbEDocAttachments Record "EOS Inb. EDoc. Attachments"

Events

OnBeforeAskXMLTemplateInboundDocument

local procedure OnBeforeAskXMLTemplateInboundDocument(var TextChoice: text; var Ask: Boolean; var DefaultSelection: Integer; var Selection: Integer)

Raised when opening an inbound XML document from a purchase document or FTE inboud pages

Parameters / Return Value

  • TextChoice text

    Text that will be used in STRMENU function to ask user the format to use

  • Ask Boolean

    If true ask the user which template to use

  • DefaultSelection Integer

    Specifies default value in STRMENU function

  • Selection Integer

    Specifies return value in STRMENU function if you want to avoid user interface


OnBeforeAskXMLTemplateDocHeaderList

local procedure OnBeforeAskXMLTemplateDocHeaderList(var TextChoice: text; var Ask: Boolean; var DefaultSelection: Integer; var Selection: Integer)

Raised when downloading an XML document from posteddocuments list

Parameters / Return Value

  • TextChoice text

    Text that will be used in STRMENU function to ask user the format to use

  • Ask Boolean

    If true ask the user which template to use

  • DefaultSelection Integer

    Specifies default value in STRMENU function

  • Selection Integer

    Specifies return value in STRMENU function if you want to avoid user interface


OnBeforeAskXMLTemplateOutbDocHeader

local procedure OnBeforeAskXMLTemplateOutbDocHeader(var TextChoice: text; var Ask: Boolean; var DefaultSelection: Integer; var Selection: Integer)

Raised when opening an outbound XML document from a posted purchase document

Parameters / Return Value

  • TextChoice text

    Text that will be used in STRMENU function to ask user the format to use

  • Ask Boolean

    If true ask the user which template to use

  • DefaultSelection Integer

    Specifies default value in STRMENU function

  • Selection Integer

    Specifies return value in STRMENU function if you want to avoid user interface


OnBeforeAskXMLTemplatePurchOutbDocHeader

local procedure OnBeforeAskXMLTemplatePurchOutbDocHeader(var TextChoice: text; var Ask: Boolean; var DefaultSelection: Integer; var Selection: Integer)

Raised when opening an outbound XML document from a posted purchase document

Parameters / Return Value

  • TextChoice text

    Text that will be used in STRMENU function to ask user the format to use

  • Ask Boolean

    If true ask the user which template to use

  • DefaultSelection Integer

    Specifies default value in STRMENU function

  • Selection Integer

    Specifies return value in STRMENU function if you want to avoid user interface


OnAfterOpenXMLFromOutbList

local procedure OnAfterOpenXMLFromOutbList(RecRef: RecordRef; useTemplate: Boolean)

This event is raised at the end of OpenXMLFromOutbList method, after invoking DownloadFromStream method

Parameters / Return Value

  • RecRef RecordRef

    Selected records

  • useTemplate Boolean

    Template Applied or not


OnAfterOpenXMLFromPurchDocOutbList

local procedure OnAfterOpenXMLFromPurchDocOutbList(RecRef: RecordRef; useTemplate: Boolean)

This event is raised at the end of OpenXMLFromPurchDocOutbList method, after invoking DownloadFromStream method

Parameters / Return Value

  • RecRef RecordRef

    Selected records

  • useTemplate Boolean

    Template Applied or not


OnAfterOpenXMLFromInbList

local procedure OnAfterOpenXMLFromInbList(RecRef: RecordRef; useTemplate: Boolean)

This event is raised at the end of OpenXMLFromInbList method, after invoking DownloadFromStream method

Parameters / Return Value

  • RecRef RecordRef

    Selected records

  • useTemplate Boolean

    Template Applied or not


OnBeforeMergeXMLandTemplate

local procedure OnBeforeMergeXMLandTemplate(RecRef: RecordRef; var EDocBlob: Codeunit "Temp Blob")

This event is raised before xml merge with template. You can apply changes to EDocBlob. All changes are not applyed to original document blob

Parameters / Return Value

  • RecRef RecordRef

    Current Document

  • EDocBlob Codeunit "Temp Blob"

    Elecronic XML document



EOS Labs -