Installation guide

Zetadocs for NAV Installation Guide
This edition 5
th
December 2012 © Copyright Equisys plc 2012 All trademarks acknowledged All rights
reserved
Page 91
Info
SET
NULL
SET
Contact Info unless the
reference in record is
blank THEN Company
Info using Company
Reference implemented
by VAR
SET
NULL
NULL
Contact Info using
Contact Reference
Implemented by VAR
unless that reference is
blank THEN Company
Info using Company
Reference implemented
by VAR
NULL
NULL
SET
Contact Info
NULL
SET
SET/NULL
Invalid You must
specify a company type
to enable use of
company field.
Table - Zetadocs Report Settings Addressing Information Control Options
To get a strong understanding of this it is recommended that you review the OnValidate triggers for
“Company No.” and “Contact No.” in the Zetadocs Send Result table and familiarize yourself with the
trigger functions in the Zetadocs-Send Integration codeunit. These are explained in detail in the next
section.
15.2 Custom Send
We saw in the last section how selecting certain report settings can control the flow of the operation of the
Zetadocs processing codeunits. By exploiting these settings and implementing the trigger functions in the
Zetadocs-Send Integration codeunit we can highly customize our report sending. In this section we will
focus on the trigger functions in the Zetadocs-Send Integration codeunit and explain how they can be used.
GetZetadocsArchiveID
This function has been deprecated in version 5.0 of Zetadocs for NAV and remains in the code for backward
compatibility. For system upgrades please read the warning below.
WARNING: This function should be left unchanged. It is only exposed in this codeunit to allow a VAR to add
additional permissions to the codeunit for reading and writing the Zetadocs Archive ID value to and from
additional tables!
OverrideSendSettings
Apart from setting up the company and contact field number references in the Zetadocs Report Settings
there are a number of other options that control the display options and the report batch information
settings. During the Initialize function (See Understanding the SDK Framework) these settings are copied in
to a temporary table called the Zetadocs Send Settings. This gives us the ability to adjust these settings at
runtime. Once the report settings have been copied into the temporary send settings table described, the
Zetadocs Send Results Gen codeunit calls the OverrideSendSettings trigger function in the Zetadocs-Send
Integration codeunit. Here you can modify the settings based on some logic for that send instance. Let’s
have a look at the Zetadocs Send Settings table.