View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Supportez nous sur Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - [SOLVED] Programmaticaly set field to required on status change - ProjeQtOr

Prochaines sessions de formation

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

 

Démonstration de ProjeQtOr

(gratuit, sur inscription)

Mardi 23 avril (10h30-12h)

Jeudi 16 mai (16h-17h30)

Jeudi 13 juin (10h30-12h)

 
 

Planifiez avec ProjeQtOr

3 et 4 avril (9h - 12h30)

 
 

Administrez avec ProjeQtOr

10 et 11 avril (9h - 12h30)

 

 

 
 

[SOLVED] Programmaticaly set field to required on status change

More
24 Juil 2020 14:00 #1 by antoine1003
Hey,

I would like to set a field of Action object to required when status is changed. I tried to use
dijit.byId("idEfficiency").set('required', 'true');
but it doesn't work.

Is there any way to do it?

Thanks ! :)
The topic has been locked.
More
24 Juil 2020 14:04 #2 by babynus
Hi,

Best way is to use our Screen Customization plugin.

Babynus
Administrator of ProjeQtOr web site
The topic has been locked.
More
24 Juil 2020 14:06 #3 by antoine1003
The topic has been locked.
More
24 Juil 2020 15:19 #4 by antoine1003
For the one who are looking for the same thing I found it by my self...
You need to go to SqlElement.php and in function getExtraRequiredFields add the desired field.

For example in my case when an Action status is changed to done I want the field idEfficiency to become required to I wrote :
if (!isset($statusObj) || $statusObj == null) {
    $statusObj = new Status($status);
}
if ($class == 'Action' && $statusObj->id && $statusObj->name == 'done') {
    $result['idEfficiency'] = 'required';
}
The topic has been locked.
More
25 Juil 2020 07:30 #5 by Envergus
Still the Screen Customization plugin is the Best way to do it.
Otherwise you need to make a change on code every time you upgrade Projeqtor.
The topic has been locked.
Moderators: babynusprotion
Time to create page: 0.041 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.