View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Supportez nous sur Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - [SOLVED] Inexistant hidden fields - 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] Inexistant hidden fields

More
03 Juil 2015 09:04 #1 by papjul
Hi,

I'm trying to design a field management plugin (mainly to hide fields directly from interface because users wanted it). The way I'm planning to achieve this is self-speaking by the screenshot (I based it on objectDetail.php and replaced every field by an input text containing $_fieldsAttributes matching). As you can see, it's basic and not very intuitive, so it will be restricted to the wise of administrator :)

In the screenshot, you can see projects fields. However I was not expecting to see so many hidden fields. Some are needed such as idProject from ProjectPlanningElement, but a lot of them are not even translated/in database/redundant (done/cancelled)/weird (invoice???). My guess is that these fields were deleted from an old version of ProjeQtOr, so could I help you make a list of these fields so you can remove them upstream? Otherwise, I keep my ears open to know their purpose.

Thank you,
Attachments:

Please Connexion or Create an account to join the conversation.

More
03 Juil 2015 15:17 #2 by richard.pare
Fields management is a good idea.

See the fields management in VtigerCRM, if you want inspiration.

I believe you can trust $_fieldsAttributes matching.

So, check $_colCaptionTransposition, it allows to change the name of the caption.

I would see your contribution soon.

Please Connexion or Create an account to join the conversation.

More
03 Juil 2015 15:40 #3 by babynus
Replied by babynus on topic Inexistant hidden fields
Most hidden fields are "de-normalized" data, inserted for technical purpose.
For instance, in PlanningElement you'll see many references to item it is linked to : "refName", "reftType", "refId", "idle", ...
They are dupplicated to ease acces. For instance, PlanningElement is used to display are calculate planning, and de-normalization make it possible to have quick access to data without having to fetch several tables (refType / refId can refer to any table ...)

So it is not so easy to determine which field should be displayed.
In general, I would say : don't change most of existing fields attributes, unless you completely understand the attribute.
You screen should just ADD new attibutes, in very restrictive way : add "hidden", "readonly", "required".
Don't touch others. For instance the "noImport" attribute muste never be changed. This could lead to serious inconsistance of data.

Babynus
Administrator of ProjeQtOr web site
The following user(s) said Thank You: papjul

Please Connexion or Create an account to join the conversation.

More
03 Juil 2015 15:42 #4 by papjul
Replied by papjul on topic Inexistant hidden fields
Since it's based on objectDetail, it already handles the caption transposition. Sort order is handled by the order of public variables in the model so it would be too complex to add such feature like VtigerCRM given the time I have to do it and the complexity to integrate it in a future version of ProjeQtOr if my contribution is not added to the community version of ProjeQtOr. So I will make it work this way and maybe it can be improved later by babynus if they want to.

My question is only about the default hidden fields and their purpose.

Please Connexion or Create an account to join the conversation.

More
03 Juil 2015 15:46 #5 by papjul
Replied by papjul on topic Inexistant hidden fields
Yes, I understand the ref things, but what about validatedStartFraction?

As for security, indeed you can insert whatever you want, but I will probably check if every values of the array by explode(',', $valueOfInput) are allowed values at least. A "add" new attribute would be too long to design given the time I have, that's why only administrator will have access to this feature and I will explain to them.

Please Connexion or Create an account to join the conversation.

More
03 Juil 2015 16:45 #6 by babynus
Replied by babynus on topic Inexistant hidden fields
all the "xxxxStartFraction" fields represent when, in the day the activity starts. 0 means it starts at the beginning of the day, 0.5 means that it starts right in the middle of the day...
So it is only for planning purpose, and should not be displayed.

Babynus
Administrator of ProjeQtOr web site

Please Connexion or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.047 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.