I'm working with NAV 2013 (not R2). I merged the Objects with ZDNAVInterfaceToolExpress.
I have loeded the Code for 2013. The following Code Comes into OnAfterGetRecord in Form 42:
BEGIN
ZdRecRef.GETTABLE(Rec);
IF ZdRecRef.GET(ZdRecRef.RECORDID) THEN BEGIN
CurrPage.Zetadocs.PAGE.SetRecordID(ZdRecRef.RECORDID);
CurrPage.Zetadocs.PAGE.ACTIVATE(TRUE);
END;
END;
In Installation Guide "Manually Modifying NAV Pages - 6.2 Adding the Document Factbox there are only two lines for 2013:
RecRef.GETTABLE(Rec);
CurrPage.Zetadocs.PAGE.SetRecordID(RecRef.RECORDID);
There is no CurrPage.Zetadocs.PAGE.ACTIVATE(TRUE); !!!
What is correct ?
If I delete the Line with There is no CurrPage.Zetadocs.PAGE.ACTIVATE(TRUE); , it seems to work correct.