Is it possible to make templates with reference to new custom tables ?
Yes. Its a variant of the above questions (Please read all of the above questions). The codeunit to modify is the codeunit 6008950 (MatriksDocLinks) and table 6008950 (Document). I’m not going to be very detailed on how to do this because this would be lengthy description. But here’s the highlights: – Open table 6008950 (Document) and append the keyfield(s) of your new table. – Open codeunit 6008950 (MatriksDocLinks). Insert a new function “InsertXXXValues”, where XXX is your new table name. Look at the InsertCustomerValues” to learn the structure of such a function. In general, it consists of 3 parts: 1. Read or clear your new table, dependant of the function’s parameter value. 2. If table has flowfields, use CalcFields to update their values. Remember to set flowfield filters if important. 3. Insert a Kdoc.AddField(sometextname,sometextvalue) statement for each necessary table field. – Locate function “TotalTableList”. Insert table no. (Controls table selection in template creation)