Installation guide

Zetadocs for NAV Installation Guide
This edition 5
th
December 2012 © Copyright Equisys plc 2012 All trademarks acknowledged All rights
reserved
Page 92
Figure 34 - Zetadocs Send Settings
Report ID: WARNING: This is not for editing. It is here to allow the developer to determine which
report is being printed in the trigger and to branch CASE or IF statements depending on its value.
Batch Name: In the Zetadocs Report Settings you have the ability to specify Default Batch Name.
This is the name that will be displayed in the Zetadocs Client for the report records printed to
Zetadocs. This default value can be overridden in this function.
Show Delivery Dialog, Show batch Delivery Dialogs, Preview in Zetadocs Client and Test Mode: All
these can be dynamically overridden in this trigger at runtime.
Company Type Code: Similar to the Report ID, this value is not for editing but is present to allow
the developer to determine the target company type configured for this report without having to
query the Zetadocs Report Settings Table.
A good example of when you might use this function is if you wish to have a report run uninterrupted by UI
dialogs and previewing in the Zetadocs Client if it is being sent during the night. All previews could be
turned off.
GetContactForReport
As explained in the previous section, not specifying a Contact No. Field No. means that this function will be
called for you to return the value. This means that you are not restricted to extracting the reference directly
from the record being reported. The report id, record id and send settings are passed as parameters into
this function and therefore you can implement your own custom logic for each report and record type to
determine a contact. Note that the return value Code is not typed and is extra long. This means that the
code is not tied to a specific NAV type. This will be covered more in the next chapter.
GetCompanyForReport
Similar to GetContactForReport this function allows you to implement custom logic for determining the
Company No. value. The report id, record id and send settings are passed as parameters to this function
and therefore you can implement your own custom logic for each report and record type to determine a
company. Note that the return value Code is not typed and is extra long. This means that the code is not
tied to a specific NAV type. This will be covered more in the next chapter.
GetHardCopyPrinter
This function is always called to get the printer to use for the current user when the delivery method is set
to Hard Copy. It defaults to using the NAV Printer Selections setting for that user for that report otherwise it
uses the user’s system default printer. It is provided here to allow you to change this logic.