OnBeforeReviewDisplay

<< Click to Display Table of Contents >>

Navigation:  Zetadocs SDK Guide > Zetadocs SDK API >

OnBeforeReviewDisplay

OnBeforeReviewDisplay Event

Runs just before the Zetadocs Review page is displayed. It provides methods to access and update the Zetadocs Review Header and Zetadocs Review Lines. Note it will not be run if there are saved changes for the record from a previous visit to the Zetadocs Review page.

 

Publisher

    [IntegrationEvent(false, false)]

    procedure OnBeforeReviewDisplay(var OnBeforeReviewDisplayHandler: Codeunit "Zetadocs OnBeforeReviewDisplay")

    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", 'OnBeforeReviewDisplay', '', true, true)]

    local procedure OnBeforeReviewDisplay(var OnBeforeReviewDisplayHandler: Codeunit "Zetadocs OnBeforeReviewDisplay")

    begin

    end;s

 

Zetadocs OnBeforeReviewDisplay Codeunit

This codeunit exposes procedures that give you access to the Zetadocs Review Header and Zetadocs Review Lines, which are shown for user validation on the Zetadocs Review Screen.

Method name

Description

GetReviewPageData(var reviewHeader: Record "Zetadocs ADE Review Header"; var reviewLines: Record "Zetadocs ADE Lines")

Will return the Zetadocs Review Header and the related Zetadocs Review Lines.

SetReviewPageData(var reviewHeader: Record "Zetadocs ADE Review Header"; var reviewLines: Record "Zetadocs ADE Lines")

Will override the Zetadocs Review Header and the related Zetadocs Review Lines to be displayed with the data provided.

 

GetReviewPageData Method

Will return the Zetadocs Review Header and the related Zetadocs Review Lines.

 

Syntax

OnBeforeReviewDisplayHandler.GetReviewPageData(var reviewHeader: Record "Zetadocs ADE Review Header"; var reviewLines: Record "Zetadocs ADE Lines")

 

Parameters

reviewHeader

Type: Record "Zetadocs ADE Review Header"

The temporary record variable that will store a the current information of the Zetadocs Review Header.

 

reviewLines

Type: Record "Zetadocs ADE lines"

The temporary record variable that will store a the current information of the Zetadocs Review Lines.

 

SetReviewPageData Method

Will override the Zetadocs Review Line data.

 

Syntax

OnBeforeReviewDisplayHandler.SetReviewPageData(var reviewHeader: Record "Zetadocs ADE Review Header"; var reviewLines: Record "Zetadocs ADE Lines")

 

Parameters

reviewHeader

Type: Record "Zetadocs ADE Review Header"

The temporary record variable that will update the current information of the Zetadocs Review Header.

 

reviewLines

Type: Record "Zetadocs ADE lines"

The temporary record variable that will  update the current information of the Zetadocs Review Lines.