When creating Word documents for use as attachments in Relationship Management, you can open the attachment document in Interaction Templates, and modify the document. The list of Navision fields is predetermined with many fields from Contact table, Salesperson table and some others.
I was able to add a line in the Codeunit 5054 WordManagement that added a new field on the Word document field list. However, it did not print successfully. Rather, it pushed all the other fields following my code down one, as if I did not add it somewhere else. I can't see where else it would go.
Has anyone successfully added fields to the Navision field list for Word document interactions? If so, how?
0
Comments
Your Modifications Should Include The following Functions:
1. ExecuteMerge : Add the following:
AddField(format(Contact."Correspondence type"));
2. ShowMergedDocument :
AddField(FORMAT(Contact."Correspondence Type"));
3. CreateHeader
AddField(Contact.TABLECAPTION + ' ' + Contact.FIELDCAPTION ("Correspondence Type"));
Make sure that you Put the Codes to insert the field in the right place in EACH of the Functions.
Sgg
Thank you.
mikeh
Consistency of the Location where you are inserting the field(s).
And that you Insert in ALL the functions where the field(s) will be used.
I can not save it, because it sais: The selected typelibrary cannot be loaded??
dutch: de geselecteerde typebibliotheek kon niet geladen worden !!
:shock: