Forum

plugins - Template ...
 
Notifications
Retirer tout

plugins - Template Engine - DOCX

4 Posts
2 Utilisateurs
0 Reactions
1,610 Vu
 BILA
(@lsigroup)
Posts: 304
Honorable Member
Début du sujet
 
[#6231]

Hello,

I have to built a DOCX template for Activity.
Everything works except the nameContact of the Ticket type links of the Activity.

The DOC Table of the templates works for the first two columns but not the third wich use a field of the type Ticket....

Demande Nom Demandeur
#[link_ticket.id;block=tbs:row] [link_ticket.refName] [link_ticket.object.nameContact]


 
Posté : 04/09/2019 5:32 pm
(@babynus)
Posts: 14952
Membre Admin
 

Possibly it is a formating issue.
Word adds not visible formating.
To fix this.
1) disable spell checking
2) copy code [nameContract]
3) paste code in a text editor (notepad or notepad++)
4) copy from text editor
5) paste code at its initial place
6) save docs reload template and test.


 
Posté : 04/09/2019 5:50 pm
 BILA
(@lsigroup)
Posts: 304
Honorable Member
Début du sujet
 

No, i'm sorry but it desn't work more.
Is the field name good : [link_ticket.object.nameContact] ?


 
Posté : 04/09/2019 6:02 pm
(@babynus)
Posts: 14952
Membre Admin
 
Is the field name good : [link_ticket.object.nameContact] ?

Of course not

Available fields are listed on template rpoert screen :
link Link
link.id id
link.ref1Type
link.ref1Id
link.ref2Type
link.ref2Id
link.comment
link.creationDate
link.idUser
link.nameUser
link.ref1Name
link.ref2Name
link.refType
link.refId
link.refName]
link.refTypeName
link.refStatus
link.refResponsible
link.refInitialDueDate
link.refActualDueDate
link.refDate

You can replace link. with link_ticket. (or other class) but that's all


 
Posté : 04/09/2019 6:54 pm
Share:
Retour en haut