Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Is it possible to make templates with reference to new custom tables ?

0
Posted

Is it possible to make templates with reference to new custom tables ?

0

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)

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123