Forum

Custom report plugi...
 
Notifications
Retirer tout

Custom report plugin : fields not usable

7 Posts
2 Utilisateurs
0 Reactions
2,218 Vu
jmmbb
(@jmmbb)
Posts: 561
Noble Member
Début du sujet
 
[#9050]

Hello,i'm trying to make a custom template for report all fields in project (for further use in template building).Some behavior are strange :

  • Second level fields aren't usable all time (ie : object.ipPorjectType is OK and projecttype.id is KO)
  • Sometime, nothing is generated and no error is returned (no message, nothing in logs, even in "script state")

I put some versions of the template in attachments.ChampPROJET etape 1-1.docx is working on some fields but not all, no error in log (see result1-1.docx) but color is not changed in cell "niveau de risque(couleur)".ChampProjetEtape1.docx : nothing is generated, no error in log. 


 
Posté : 19/09/2023 1:51 pm
jmmbb
(@jmmbb)
Posts: 561
Noble Member
Début du sujet
 

When using "show usable fields", i brievely see "picture for field "quality.icon" cannot be found...". so it's an arror from TBS but nothing reported in projeqtor's log.
Difficult to trace and debug.
Is it possible to get all TBS errors in projeqtor's logs ?


 
Posté : 21/09/2023 3:02 pm
(@babynus)
Posts: 14952
Membre Admin
 

Is it possible to get all TBS errors in projeqtor's logs ?

In templateReportExecute, you can change line 244
$TBS->SetOption('noerr', true);
to
$TBS->SetOption('noerr', false);


 
Posté : 22/09/2023 4:28 pm
jmmbb
(@jmmbb)
Posts: 561
Noble Member
Début du sujet
 

Bonjour,

j'ai réalisé la modification, je n'ai toujours aucun retour sur les erreurs.
En PJ le fichier de log en mode "script" suite à demande d'impression du rapport personnalisé "champs projet étape 1-1.docx" :
 


 
Posté : 07/10/2023 12:10 pm
jmmbb
(@jmmbb)
Posts: 561
Noble Member
Début du sujet
 

J'ai ensuite vidé le fichier log puis :
depuis le gestionnaire de plugins, demander l'impression de "Champ projet étape 1-1.docx" avec le projet #1459.
Aucun retour (pas de fihicer généré), aucune erreur dans le log.
J'ai ensuite choisi le fichier modèle inclus "TMP-Project_FR.pptx", l'édition s'est bien déroulée.
Pourtant, pour les deux éditions, les seuls retour dans le log sont :

Fichier de log

2023-10-07 ..... SCRIPT .... 127.0.0.1 =====/view/print.php
2023-10-07 ..... SCRIPT .... 127.0.0.1 Page=print.php
2023-10-07 ..... SCRIPT .... 127.0.0.1 refreshParameters()
2023-10-07 ..... SCRIPT .... 127.0.0.1 ->/view/print.php


 
Posté : 07/10/2023 12:15 pm
jmmbb
(@jmmbb)
Posts: 561
Noble Member
Début du sujet
 

En rétablissant la ligne 244 dans templateReportExecute.php, j'obtiens à nouveau l'impression de mes modèles personnalisés, sans les icones...
Comme si l'édition des erreurs dans la fichier LOG produisant une erreur de script conduisant à son arrêt, sans inscription en log...


 
Posté : 07/10/2023 12:29 pm
jmmbb
(@jmmbb)
Posts: 561
Noble Member
Début du sujet
 

En PJ le fichier modèle utilisé (propre)...


 
Posté : 07/10/2023 1:08 pm
Share:
Retour en haut