View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Supportez nous sur Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - Advanced filter : delete one entry - 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)

 

 

 
 

Advanced filter : delete one entry

More
30 Sep 2020 17:19 #1 by BrunoF782
Hello,

i would like to submit you one issue (projeqtor 8.5.5) with the advanced filter. I created one in the project menu :



When i click to delete the row "ET type parmi 'Getion d\'un pôle','Maintenance','Projet' ", the result is :



the row "OU nom commence par '20'" has been deleted instead the one chosen. If i click one more time to delete "ET type parmi 'Getion d\'un pôle','Maintenance','Projet' ", the result is fine :

Attachments:
The topic has been locked.
More
30 Sep 2020 19:48 #2 by babynus
Filter is correct.
But you don't take into account priority of AND and OR.
It is like priority of * and +.
Operations are executing depending on precedence, not on order you place them
a + b + c * d = a + b + (c * d) <> (a + b + c) * b
It's the same for AND and OR
a or b or c and d = a or b or (c and d) <> (a or b or c) and d
You expect the last part, and it's not what you get when you concatanate thje conditions
you must write
a and d or b and d or c and d
I know it's a bit weird and long, but without penrenthesis of conditions, it's the only way to get what you expect.

Babynus
Administrator of ProjeQtOr web site
The topic has been locked.
More
07 Oct 2020 16:35 #3 by BrunoF782
Ok i understand better. I wasn't sure of how it was working, thanks for your answer.
The topic has been locked.
More
08 Oct 2020 17:29 - 08 Oct 2020 17:30 #4 by BrunoF782
Hi,

just to let you know that i had this error when making another - bad- test with the filter function. In case it could be useful, here it is :

2020-10-08 09:00:30.870 ***** ERROR ***** [V8.5.5] Exception-[42000] SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ') order by projectplanningelement.wbsSortable , project.sortOrder' at line 1
2020-10-08 09:00:30.870 ***** ERROR ***** [V8.5.5] For query : select project.id as id, project.name as name, T1.name as nameProjectType, project.projectCode as projectCode, T2.fullName as nameResource, project.idResource as idResource, projectplanningelement.priority as priority,project.idProject as idproject from project left join type as T1 on project.idProjectType = T1.id left join resource as T2 on project.idResource = T2.id left join planningelement as projectplanningelement on (projectplanningelement.refId=project.id and projectplanningelement.refType='Project') where project.idle=0 and ( ((project.id not in (0) or project.id is null ) and (project.id not in (0) or project.id is null or (project.idResource='96') ) and (project.id not in (0) or project.id is null or (project.idUser='96') )) or project.codeType='TMP' ) or (project.idProjectType IN (169, 172, 171))) order by projectplanningelement.wbsSortable , project.sortOrder
2020-10-08 09:00:30.870 ***** ERROR ***** [V8.5.5] Strack trace :
2020-10-08 09:00:30.870 ***** ERROR ***** [V8.5.5] #0 Sql->query called at [/var/www/projeqtor/tool/jsonQuery.php:715]
2020-10-08 09:00:39.835 ***** ERROR ***** [V8.5.5] Exception-[42000] SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ') order by projectplanningelement.wbsSortable , project.sortOrder' at line 1
2020-10-08 09:00:39.835 ***** ERROR ***** [V8.5.5] For query : select project.id as id, project.name as name, T1.name as nameProjectType, project.projectCode as projectCode, T2.fullName as nameResource, project.idResource as idResource, projectplanningelement.priority as priority,project.idProject as idproject from project left join type as T1 on project.idProjectType = T1.id left join resource as T2 on project.idResource = T2.id left join planningelement as projectplanningelement on (projectplanningelement.refId=project.id and projectplanningelement.refType='Project') where project.idle=0 and ( ((project.id not in (0) or project.id is null ) and (project.id not in (0) or project.id is null or (project.idResource='96') ) and (project.id not in (0) or project.id is null or (project.idUser='96') )) or project.codeType='TMP' ) or (project.idProjectType IN (169, 172, 171))) order by projectplanningelement.wbsSortable , project.sortOrder
2020-10-08 09:00:39.835 ***** ERROR ***** [V8.5.5] Strack trace :
2020-10-08 09:00:39.835 ***** ERROR ***** [V8.5.5] #0 Sql->query called at [/var/www/projeqtor/tool/jsonQuery.php:715]
Last edit: 08 Oct 2020 17:30 by BrunoF782.
The topic has been locked.
More
08 Oct 2020 17:42 #5 by babynus
Hi,

I could not reproduce such issue.
Can you explain which filter you tried and apply ?

Babynus
Administrator of ProjeQtOr web site
The topic has been locked.
More
08 Oct 2020 17:50 #6 by BrunoF782
I'm sorry, i don't remember exactly the test. I could try to reproduce it but not sure when :dry:
The topic has been locked.
Moderators: babynusprotion
Time to create page: 0.064 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.