View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Support us on Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - Custom report plugin : fields not usable - ProjeQtOr
 
 

Custom report plugin : fields not usable

More
19 Sep 2023 11:51 - 19 Sep 2023 11:53 #1 by jmmbb
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. 
Attachments:
Last edit: 19 Sep 2023 11:53 by jmmbb.

Please Log in or Create an account to join the conversation.

More
21 Sep 2023 13:02 #2 by jmmbb
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 ?

Please Log in or Create an account to join the conversation.

More
22 Sep 2023 14:28 - 22 Sep 2023 14:29 #3 by babynus

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);

Babynus
Administrator of ProjeQtOr web site
Last edit: 22 Sep 2023 14:29 by babynus.

Please Log in or Create an account to join the conversation.

More
07 Oct 2023 10:10 - 07 Oct 2023 10:10 #4 by jmmbb
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" :
 

File Attachment:

File Name: ChampsPROJ...-07.docx
File Size:18 KB
Attachments:
Last edit: 07 Oct 2023 10:10 by jmmbb.

Please Log in or Create an account to join the conversation.

More
07 Oct 2023 10:15 #5 by jmmbb
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

Please Log in or Create an account to join the conversation.

More
07 Oct 2023 10:29 #6 by jmmbb
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...

Please Log in or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.039 seconds

Cookies settings

×

Functional Cookies

Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.

Session

Please login to see yours activities!

Other cookies

Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.