Maximo Wire - The IBM Maximo Help & Discussion Forum
February 08, 2012, 02:43:06 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: What is QBE  (Read 1356 times)
0 Members and 1 Guest are viewing this topic.
shankar
Newbie
*

Karma: 1
Posts: 46


View Profile
« on: August 19, 2010, 12:03:59 pm »

Hi,
      what is the difference between setQBE ,setQuery  and setWhere



regards,
shankar 
Logged
shankar
Newbie
*

Karma: 1
Posts: 46


View Profile
« Reply #1 on: September 16, 2010, 10:44:31 am »

BTT
Logged
shankar
Newbie
*

Karma: 1
Posts: 46


View Profile
« Reply #2 on: October 04, 2010, 07:02:50 am »

Hi every one more than 270 views to my question. can any reply who knw the answer for this\


regards.
Logged
matzi
Newbie
*

Karma: 3
Posts: 17


View Profile Email
« Reply #3 on: October 05, 2010, 02:01:36 pm »

I'm not sure what setQuery is, but if you use setWhere you can pass in the where part of a sql-statement. Example: setWhere("where location in (select locations from location where status='SOMESTATUS')"). With setWhere you can build your own custom sql-sentence.

If you use setQBE it's like typing in a search from the GUI. The searchtype will be the same as specified in the db-configuration. If wonum is set as searctype=EXCAT and you do a setQBE("wonum", "1001") then Maximo builds a sql-setence for you that would be "where wonum='1001'".
Logged
Ethen
Global Moderator
Sr. Member
*****

Karma: 16
Posts: 299



View Profile WWW
« Reply #4 on: October 05, 2010, 02:53:42 pm »

I am not very sure but setquery is used to set the whole query. I am not wrong then you even specify which colums you want.
set where only specifies the where clause.
and in qbe you specify the values of column as a filter criteria....

Logged

regards,

Ethen...
Ethen
Global Moderator
Sr. Member
*****

Karma: 16
Posts: 299



View Profile WWW
« Reply #5 on: October 08, 2010, 01:13:18 pm »

and yeah, forgot to say full form of QBE is query by example.
Logged

regards,

Ethen...
anks123
Newbie
*

Karma: 3
Posts: 8


View Profile Email
« Reply #6 on: December 15, 2010, 09:21:40 am »

setQBE refers to Query By Example ,its like when you click on a look up and you want to display values binded by specific condition .
Eg: you want all records to show up belonging to a particular REGION on WorkOrder application,it will display all records with this defined condition.
Logged
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!