You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2010-02-08 20:03:15

gvargasdc
Member
Registered: 2009-10-21
Posts: 34

Filtering AND NOT NULL does not work for User

Hi,

I am running GLPI 0.72.3. On Inventory -> Computers I am trying to apply the following filter:

"Laptops" in Type
AND NOT NULL in User

To display only the laptops that have been assigned to a user. But it does not work. When I click "search" it display all laptops (with our without assigned users).

I tried:

"Laptops" in Type
AND NULL in User

Just to see what happens, and that does work fine. But the reserve (which is what I want) does not.

I also tried "AND NOT [Nobody]" and  "AND NOT 0" and they don't work either. I also tried AND NOT NULL with Name and that didn't work either. Two questions:

1. Does "AND NOT NULL" work?
2. Is there other way I can get the filter I want within GLPI?

Thanks for any help! smile

G.


Glpi: 10.0.1

Offline

#2 2010-02-08 20:46:07

yllen
GLPI-DEV
From: Sillery (51)
Registered: 2008-01-14
Posts: 15,278

Re: Filtering AND NOT NULL does not work for User

I have the same problem.

gvargasdc wrote:

2. Is there other way I can get the filter I want within GLPI?

You can change your personal view to add user and order the result by clicking the name of the column


CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6  - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)

Offline

#3 2010-02-08 21:29:48

doum
Member
From: Nice
Registered: 2007-03-27
Posts: 1,421

Re: Filtering AND NOT NULL does not work for User

If you want to see only laptops with a user assigned do :
"Laptops" in Type
AND ^ in User

But you're right, not null should work

Offline

#4 2010-02-08 21:54:14

gvargasdc
Member
Registered: 2009-10-21
Posts: 34

Re: Filtering AND NOT NULL does not work for User

Thank you! Searching with AND ^ in User did it. big_smile


Glpi: 10.0.1

Offline

#5 2010-02-08 22:11:23

MoYo
GLPI - Lead
From: Poitiers
Registered: 2004-09-13
Posts: 14,513
Website

Re: Filtering AND NOT NULL does not work for User


MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI :    Support     Contribute     References     Freshmeat

Offline

#6 2024-08-27 16:53:05

Shylie
Member
From: cyprus
Registered: 2024-03-06
Posts: 5

Re: Filtering AND NOT NULL does not work for User

Thank you so much

Offline

Board footer

Powered by FluxBB