Yetiforcecrm: [Question] How to make custom table for PDF

Created on 9 Mar 2019  ยท  13Comments  ยท  Source: YetiForceCompany/YetiForceCRM

Description

I'm looking for any examples how to achieve custom product table for advanced modules what contains more info about products (fields from the product record) what not displayed at usual detail view of advanced module.

Something like this:

| Item no | Item name | Qty | Value 1 | Value 2 | ... |Value n |
| ---------------- | -------------- | ---------------- | -------------- | ---------------- | -------------- | ---------------- |
| 1 | Prod 1 |
| 2 | Prod 2 |
| 3| Prod 3|

Values 1-n will be hooked from product record

โ” question

Most helpful comment

in the future we will expand it, it is just the beginning

All 13 comments

You need to add custom text parser - example text parses are in app/TextParser/...

@rafalpospiech this is not enougth for me... I don't have experience in prigramming.

we plan to write table generation using variables but we do not know where the version will be added

@mariuszkrzaczkowski iny suggestions then it happens?

Little offtopic - how to make PDF generator draw a border around cells and tables? In template is OK but after generating it borders colors are invisible

@waran70 <td style="border:1px solid black;">...</td>

@vovpff Especially for you for all your contributions to YetiForce. I hope it's enough.

$(inventory : type=table columns=name,qty,price href=yes)$
$(inventory : type=table columns=seq,name,qty,unit,price,total,net href=no)$

https://github.com/YetiForceCompany/YetiForceCRM/commit/4e8c904f804c1c249d7ad90c32d806b3d8205fd5
image

Looks cool. Many many thanks. What about other values from product record? I mean to call values from vtiger_products table? For example batch number?

in the future we will expand it, it is just the beginning

td style="border:1px solid black;">

Hi Rafal, what about "td style="border-color:#444444">Row details sample"
The code generated while designing template should determine color of borders, background etc, but output shows nothing but text

@waran70 you must add bodrer-width property too, because by default it is 0
YetiForcePDF does not support legacy <table border="" cellspacing=""> properties - only css

It should not be considered by CKEditor gents? Maybe little upgrade here?

Yes, the ckeditor will be replaced, but I think it may take some time, as we are currently in the process of completely replacing the front-end

Was this page helpful?
0 / 5 - 0 ratings

Related issues

liberox picture liberox  ยท  3Comments

ezbank picture ezbank  ยท  3Comments

rubysown picture rubysown  ยท  3Comments

michelmarquesrj picture michelmarquesrj  ยท  3Comments

RedMoon27 picture RedMoon27  ยท  3Comments