Create documents in docx, xlsx (MS Office Word and Excel), odt, ods (LibreOffice and OpenOffice) and pdf format without MS Office or others plugins installed from any module and subpanel using templates.
#265 - How can I generate related field of the module ?
Example: I have a declaration for products module: [a;block=w:body;sub1=accounts] [a_sub1;block=w:p] [a_sub1.BILLING_ADDRESS_STATE] [a_sub1.PHONE_OFFICE]
But when i generate a document in list view, it show error like that:
~~~
TinyButStrong Error for merging the automatic sub-block [a_sub1]: key 'accounts' is not found in record #1 of block [a]. This key can become optional if you designate it with parenthesis in the main block, i.e.: sub1=(accounts)
TinyButStrong Error Show() Method: The output is cancelled by the OpenTBS plugin because at least one error has occured.
~~~
7 years ago
Hi,
The main problem is that the entities "Products" and "Accounts" dont have a direct relation between them in SuiteCRM, so you need to implement new calculated fields. You can find some examples of how to create calculated fields into the 'custom/modules/Opportunities/DHA_DocumentTemplatesCalculatedFields.php' section.
Regards,
Anabel