We have ZetaDocs working for Purchase Orders, and I wanted to have them on the Purchase Order Archive too.
I used this code in the Purchase Order Archive form, OnAfterGetrecord:
ZdPO."Document Type" := Rec."Document Type"; ZdPO."No." := Rec."No."; ZdRecRef.GETTABLE(ZdPO); CurrPage.Zetadocs.PAGE.SetRecordID(ZdRecRef.RecordID); CurrPage.Zetadocs.PAGE.ACTIVATE(true);
It works, but only for archived POs that still exist in Purchase Header... any ideas on how to make it work even if the Purchase Header doesn't exist anymore?
*This post is locked for comments