View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Supportez nous sur Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - [SOLVED] Screen Customization Plugin Question - ProjeQtOr

Prochaines Sessions

Les prochaines formations et démonstrations sont ouvertes, inscrivez-vous rapidement !

 

Démonstration de ProjeQtOr

(gratuit, sur inscription)
 

13 mai 2025 (10h30-12h)

5 juin 2025 (16h-17h30)

 
 

Planifiez avec ProjeQtOr

14 et 15 mai 2025 (9h-12h30)

18 et 19 juin 2025 (9h-12h30)

 
 

Administrez avec ProjeQtOr

20 et 21 mai (9h-12h30)

25 et 26 juin (9h-12h30)

 

 

 

[SOLVED] Screen Customization Plugin Question

More
04 Avr 2018 16:28 #1 by karl.binet
Hi,

I'm using the screen customization plugin to set fields as required when creating a project for example.

By default, when setting a field to "Required", when i create a new project, the field is required but there is a default value in the field.

To me, the purpose of setting a field "Required" is to force the user to select the value in this field, since there is a default value in the field, the user can forget to change the value and save the project without even modifiying the required field.

Is there a way to set the field as required but leave the field BLANK to force the user to populate the field before saving a new project ?

Projeqtor version V7.0.1
ScreenCustomization V5.1

Regards

Karl

Please Connexion or Create an account to join the conversation.

More
04 Avr 2018 16:53 #2 by alainforma
HI,

This is default behaviour of all required fields in ProjeQtOr. Field as Combolist is always initialized as first item of the list.

Anyway, there is a tricky workaround with screen customization plugin : enter default value as
###EVAL###$value=" "
The value will be set to space.
I tested right now, it works as you expected.

Please Connexion or Create an account to join the conversation.

More
04 Avr 2018 19:19 #3 by karl.binet
hi Alainforma,

thanks for the reply,

Your solution is working but for some field i'm getting an error,

first, field organisation in project, when i enter your value, i get this screen when i create a new project



and this error in the log file

2018-04-04 13:09:41.801 ***** ERROR ***** [V7.0.1] ERROR *****
2018-04-04 13:09:41.801 ***** ERROR ***** [V7.0.1] on file '/var/www/html/tool/html.php' at line (571)
2018-04-04 13:09:41.801 ***** ERROR ***** [V7.0.1] cause = Undefined index:

second field, manager in project, when i enter your value, i get this error when i save in screen customization



and this error in the log file

2018-04-04 13:16:01.771 ***** ERROR ***** [V7.0.1] ERROR *****
2018-04-04 13:16:01.771 ***** ERROR ***** [V7.0.1] on file '/var/www/html/tool/formatter.php' at line (186)
2018-04-04 13:16:01.771 ***** ERROR ***** [V7.0.1] cause = A non-numeric value encountered

any other workaround ? maybe an issue ?

Regards

Karl
Attachments:

Please Connexion or Create an account to join the conversation.

More
05 Avr 2018 00:16 #4 by babynus
Hi,

This is because workaround used " " as default value, but some formatting function expects it to be numeric

Try and replace line 186 in tool/formatter.php from
$ind=($idUser)?$idUser%count($arrayColors):0;
to
$ind=(trim($idUser))?$idUser%count($arrayColors):0;

Babynus
Administrator of ProjeQtOr web site

Please Connexion or Create an account to join the conversation.

More
05 Avr 2018 14:52 #5 by karl.binet
Hi Babynus,

Your suggested modification of formater.php worked for the field manager, but i'm still having an error with the Organization Field,

Getting this error in log file

2018-04-05 08:39:32.396 ***** ERROR ***** [V7.0.1] ERROR *****
2018-04-05 08:39:32.396 ***** ERROR ***** [V7.0.1] on file '/var/www/html/tool/html.php' at line (571)
2018-04-05 08:39:32.396 ***** ERROR ***** [V7.0.1] cause = Undefined index:

Any other suggestions ?

Also, do I need to write down the modification of the file formater.php, or it will be included in futur version ?

Regards

Kaarl

Please Connexion or Create an account to join the conversation.

More
06 Avr 2018 19:47 #6 by babynus
Replace line 570 (or about) in /tool/html.php from
      if ($col=="idOrganization" and $sepChar!='no') { 
to
      if ($col=="idOrganization" and $sepChar!='no' and isset($orgaList[$key])) { 

Babynus
Administrator of ProjeQtOr web site

Please Connexion or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.909 seconds

Paramétrages de cookies

×

Cookies fonctionnels

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

Veuillez vous connecter pour voir vos activités!

Autres cookies

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