Maximo Wire - The IBM Maximo Help & Discussion Forum
May 24, 2012, 01:22:49 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome to Maximo Wire, the IBM Maximo help forum. Feel free to register and ask any Maximo related questions you like.
 
  Home Help Search Login Register  
*
Pages: [1]   Go Down
  Print  
Author Topic: Search Filters  (Read 686 times)
0 Members and 2 Guests are viewing this topic.
MIBGSH
Newbie
*

Karma: 0
Posts: 5


View Profile
« on: July 06, 2010, 01:54:49 pm »

Hi All,

I am having some trouble with filtering out some jobs on the Maximo 6 system we use at work, and was wondering if someone may be able to help?.....Here goes.......

I can use all standard filters such as location, status etc, but I want to filter down further.

eg. when I use these filters there are still 100 jobs, of these 50 are not related to me but they all have 'PROJECTS' in the description.
Is there a way of filtering these out by using somekind of boolean operator or similar? I know it is easy enough to filter FOR 'PROJECTS' but I want to omit these leaving the remaining jobs visible.

I hope I've explained it clearly enough and that someone may be able to help??

Many thanks
MIB
Logged
Ethen
Global Moderator
Sr. Member
*****

Karma: 16
Posts: 303



View Profile WWW
« Reply #1 on: July 06, 2010, 03:51:28 pm »

you can write a query in the application and save it for later use. you can try running the query in the sql database and write the where part in maximo and save the query.

Logged

regards,

Ethen...
MIBGSH
Newbie
*

Karma: 0
Posts: 5


View Profile
« Reply #2 on: July 07, 2010, 10:30:07 am »

you can write a query in the application and save it for later use. you can try running the query in the sql database and write the where part in maximo and save the query.



Many thanks for your rapid reply, unfortunately not being an expert programmer I'm unsure what the correct process of writing the query is.

I've put 'PROJECTS' in the description & saved the query, then when I've edited the saved query I've changed the 'and' to 'not' and also '!' but this just gives a blank report?
Is there something obvious I'm missing??

This is the query WITH the 'PROJECTS' in:

(((status like '%INPRG%' or status like '%WMATL%' or status like '%QUOTEREQ%') and (woclass = 'WORKORDER' or woclass = 'ACTIVITY') and historyflag = 0 and istask = 0 and siteid = 'GSHUK' and (location like '%111166%' or location like '%111168%' or location like '%111169%' or location like '%111194%' or location like '%111195%' or location like '%111196%' or location like '%112393%' or location like '%112375%' or location like '%112390%' or location like '%111060%' or location like '%111069%' or location like '%111062%' or location like '%111065%')) and (exists (select orgid from maximo.plusppricesched where (((gshworktype like '%CM%' or gshworktype like '%QW%'))) and (agreement = workorder.pluspagreement and priceschedule = workorder.plusppricesched and revisionnum =workorder.plusprevnum and orgid = workorder.orgid)))) and (( contains(description,'  $gsh   &   $projects  ') > 0 ))

Thanks for your patience.

MIB
« Last Edit: July 07, 2010, 10:56:14 am by MIBGSH » Logged
Ethen
Global Moderator
Sr. Member
*****

Karma: 16
Posts: 303



View Profile WWW
« Reply #3 on: July 07, 2010, 03:07:51 pm »

just for a confusion. What are you trying to do..
you are searching workorders, using workorder master query or putting this query in workorder table.

and probably you can iilustrate what is the process that you are doing and how..
Logged

regards,

Ethen...
MIBGSH
Newbie
*

Karma: 0
Posts: 5


View Profile
« Reply #4 on: July 07, 2010, 09:21:28 pm »

just for a confusion. What are you trying to do..
you are searching workorders, using workorder master query or putting this query in workorder table.

and probably you can iilustrate what is the process that you are doing and how..

I am searching workorders to filter jobs that are relevant to the sites I am responsible for.
Some of the jobs that come through are for the Projects department (hence GSH PROJECTS in the description) and I want to filter these out.
Logged
Ethen
Global Moderator
Sr. Member
*****

Karma: 16
Posts: 303



View Profile WWW
« Reply #5 on: July 08, 2010, 04:29:19 am »

exists (select orgid from maximo.plusppricesched where (((gshworktype like '%CM%' or gshworktype like '%QW%'))) and (agreement = workorder.pluspagreement and priceschedule = workorder.plusppricesched and revisionnum =workorder.plusprevnum and orgid = workorder.orgid

why is this gshworktype is OW.. guess it should be WO
i am curious about this part... just remove this part and see what happens...
wht I suggest i this case is to make a simple query.. say initially based on workorder type and status... and then add the conditions one by one.. so it will tell u the problem area...
Logged

regards,

Ethen...
MIBGSH
Newbie
*

Karma: 0
Posts: 5


View Profile
« Reply #6 on: July 08, 2010, 05:21:00 am »

The rest of the query works fine. 'QW' is for quoted works (which I need) all I need to do is filter out any job with 'GSH PROJECTS' in the description.
Logged
Ethen
Global Moderator
Sr. Member
*****

Karma: 16
Posts: 303



View Profile WWW
« Reply #7 on: July 08, 2010, 01:13:20 pm »

agreement = workorder.pluspagreement and priceschedule = workorder.plusppricesched and revisionnum =workorder.plusprevnum and orgid = workorder.orgid

I guess this is the source of the problem. I am not sure how you are going to compare workorder.
I dont think this will work.
Logged

regards,

Ethen...
MIBGSH
Newbie
*

Karma: 0
Posts: 5


View Profile
« Reply #8 on: July 08, 2010, 01:35:43 pm »

agreement = workorder.pluspagreement and priceschedule = workorder.plusppricesched and revisionnum =workorder.plusprevnum and orgid = workorder.orgid

I guess this is the source of the problem. I am not sure how you are going to compare workorder.
I dont think this will work.

Ok, but thanks for looking at it for me. If I have any success I'll let you know.

MIB
Logged
Ethen
Global Moderator
Sr. Member
*****

Karma: 16
Posts: 303



View Profile WWW
« Reply #9 on: July 08, 2010, 03:38:25 pm »

remove this part in which you are comparing things to workorder.something.. and it should work..
Logged

regards,

Ethen...
Pages: [1]   Go Up
  Print  
 
Jump to:  

Recent

TinyPortal v1.0 beta 4 © Bloc
Powered by MySQL Powered by PHP Powered by SMF 1.1.15 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!