Maximo Wire - The IBM Maximo Help & Discussion Forum
May 22, 2012, 11:55:07 pm *
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: relationship to mutiple tables  (Read 461 times)
0 Members and 2 Guests are viewing this topic.
is250sp
Newbie
*

Karma: 0
Posts: 5


View Profile
« on: March 18, 2011, 08:11:24 pm »

I have a relationship in the Ticket object to display the Person.Displayname.  It has the following parameters...

Relationshiop: SC_REPORTEDBY_TO_PERSON
Child Object: PERSON
Where Clause:  personid = :reportedby

On the SR app, I added a textbox field with Attribute = SC_REPORTEDBY_TO_PERSON.Displayname and it works.  Now I want to display the person's Location.  The problem is that on the Person table, Location is stored as an ID value.  How can I do multiple joins to Locations table to get the location description?  The join would be...

where ticket.reportedby = person.personid
and person.locationsite = locations.description
Logged
Ethen
Global Moderator
Sr. Member
*****

Karma: 16
Posts: 303



View Profile WWW
« Reply #1 on: March 21, 2011, 12:14:08 pm »

I think relationship1.relationship2.attribute_name should do the trick..
However I never did it.
Logged

regards,

Ethen...
maurogrz
Global Moderator
Full Member
*****

Karma: 14
Posts: 111



View Profile Email
« Reply #2 on: March 21, 2011, 01:27:19 pm »

as Ethen stated, you have to define a relation between PERSON and LOCATION and then use the relationship1.relationship2.attibute to show the "sub-related" value.
It works, I used this a few times......

Mauro
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!