Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

Custom report plugi...
 
Notifications
Clear all

Custom report plugin : fields not usable

7 Posts
2 Users
0 Reactions
2,245 Views
jmmbb
(@jmmbb)
Posts: 561
Contributor
Topic starter
 
[#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. 


 
Posted : 19 Sep 2023 13H51
jmmbb
(@jmmbb)
Posts: 561
Contributor
Topic starter
 

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 ?


 
Posted : 21 Sep 2023 15H02
babynus
(@babynus)
Posts: 14966
Main Contributor 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);


 
Posted : 22 Sep 2023 16H28
jmmbb
(@jmmbb)
Posts: 561
Contributor
Topic starter
 

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" :
 


 
Posted : 07 Oct 2023 12H10
jmmbb
(@jmmbb)
Posts: 561
Contributor
Topic starter
 

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


 
Posted : 07 Oct 2023 12H15
jmmbb
(@jmmbb)
Posts: 561
Contributor
Topic starter
 

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...


 
Posted : 07 Oct 2023 12H29
jmmbb
(@jmmbb)
Posts: 561
Contributor
Topic starter
 

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


 
Posted : 07 Oct 2023 13H08
Share:

Scroll to Top