Installation guide
Zetadocs for NAV Installation Guide
This edition 5
th
December 2012 © Copyright Equisys plc 2012 All trademarks acknowledged All rights
reserved
Page 64
11.8 Adding Document Queues to a Role Centre
Overview
The NAV role tailored client is designed around a user’s role and each role has its own Role Centre. This is
the ideal place to show information about the Zetadocs document queues, as each one is a queue of
documents that needs processing.
The following section gives a step by step guide explaining how to show document queue information in the
Activities area of the order processor Role Center in the role tailored client. The same steps can be used to
display document queue information on any Role Center for any role.
Add document queues to the Role Center
The page that you need to modify for this example is number 9060 – SO Processor Activities.
Add the following global variables:
Name
Data Type
Sub Type
QueueItems
Record
Zetadocs Doc. Queue Item
QueueSettings
Record
Zetadocs Document Queue
ZdDocQueue
Page
Zetadocs Document Queue
Add the following line of code to the OnOpenPage trigger where ZDQ0001 is the ID of the document
queue that you want to display the information for:
QueueItems.SETRANGE(QueueItems."Zetadocs Doc. Queue No.", 'ZDQ0001');
Add a group to the page with a sub type of CueGroup. Set the caption to Zetadocs Document
Queues.
Add a field to the group. Set the caption to Document Queue and set the source expression to
QueueItems.COUNT as shown in the screenshot below:
Figure 24 - SO Processor Activities - Page Designer
Select the new field and press F9 to view code. Add the following code to the OnDrillDown trigger:
IF QueueSettings.GET('ZDQ0001') THEN
BEGIN
ZdDocQueue.SetQueueSettings(QueueSettings);
ZdDocQueue.RUN;
END;
The previous steps can be repeated to add any other document queues to the display.