by Izertis

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.

Includes a 30 day guarantee
Try it Now

#265 - How can I generate related field of the module ?

Closed Feature created by ngoquyxuan 7 years ago

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.

~~~

  1. dharma member avatar

    Izertis Provider

    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

This case is public. Please leave out any sensitive information such as URLs, passwords, etc.
Saving Comment Saving Comment...
Rating
  • "It has improved our processes so much! Admin cut in half! We send a webform to clients to sign up straight into CRM then generate and print their paperwork to sign."

    Read More Reviews