Installation guide

Zetadocs for NAV Installation Guide
This edition 5
th
December 2012 © Copyright Equisys plc 2012 All trademarks acknowledged All rights
reserved
Page 124
Figure 52 Documents FactBox
Form Changes
First of all you need to rearrange the controls on the form to allow space for the control.
Add a subform into the cleared space and set the properties of the subform as follows:
o Name: Zetadocs
o Border: No
o SubFormID: Zetadocs Capture Addin Subform
Next open the form properties and set the timer interval property to 200.
Add a new global variable.
o Name: ZdRecordSet
o DataType: Boolean
Ensure the base form is selected and open the code editor.
In the OnAfterGetRecordTrigger create a new local variable.
o Name: ZdRecRef
o DataType: RecordRef
Then add the following code:
ZdRecRef.GETTABLE(Rec);
CurrForm.Zetadocs.FORM.SetRecordID(ZdRecRef.RECORDID);
In the OnTimer trigger create a new local variable.
o Name: ZdRecRef
o DataType: RecordRef
Then add the following code:
ZdRecRef.GETTABLE(Rec);
CurrForm.Zetadocs.FORM.SetRecordID(ZdRecRef.RECORDID);
IF NOT ZdRecordSet THEN
BEGIN
CurrForm."No.".ACTIVATE;