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 2017-01-20 15:42:24

jvuz
Member
Registered: 2010-01-18
Posts: 300

Filtering

Hi,

I want to filter my assets by inventory number, but in a way like "starts with...". Apparently it's only possible to use "contains". Is it possible to add something it may not contain?

Jo

Offline

#2 2017-01-31 15:00:27

eulogy
Member
Registered: 2013-10-11
Posts: 118

Re: Filtering

Hi, you can use a regular expression for that..

Append ^ to your search, this means "Everything who starts with"

Example:

^009

Will look for every name or Inventory Number who starts with 009

Offline

#3 2017-01-31 15:09:15

jvuz
Member
Registered: 2010-01-18
Posts: 300

Re: Filtering

Marvelous! Just one thing. I noticed when you choose (on the assets tab) for global, everything is on the list, except softwares. That's a pity because it is in the list, but not taken when you choose global. Very strange.

Offline

#4 2017-02-02 11:15:43

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

Re: Filtering

To say "start with" you choose contain and ^
Example: name starts with toto  => contain ^toto
name ends by toto => contain toto$


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

#5 2017-02-02 11:21:43

jvuz
Member
Registered: 2010-01-18
Posts: 300

Re: Filtering

Thank you yllen, eulogy already pointed that out. the only problem I'm having now is that when you choose global (on assets tab), it shows what I want, except software, although that's in the(assets tab) list.

Offline

#6 2017-02-02 20:11:51

eulogy
Member
Registered: 2013-10-11
Posts: 118

Re: Filtering

Yes, Global Assets is only for hardware, I don't know the main reason, maybe because performance.

Offline

#7 2017-02-07 11:25:15

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

Re: Filtering

In Global assets you have software licence.


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

Board footer

Powered by FluxBB