Maximo Wire - The IBM Maximo Help & Discussion Forum
May 22, 2012, 09:37:49 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: Accessing alias field of a view in from end  (Read 453 times)
0 Members and 2 Guests are viewing this topic.
chandan
Newbie
*

Karma: 1
Posts: 4


View Profile
« on: February 11, 2009, 08:41:06 am »

I have created a view with following select statement for a new application in MAXIMO 7.1

View select:POINTNUM,MEASUREDATE,MEASUREMENTVALUE,SITEID,ORGID,OBSERVATION,MEASUREMENTID,ASSETNUM,LOCATION,METERNAME,INSPECTOR,rowstamp,startassetfeatureid,startbasemeasure,startmeasure,startmeasureunitid,startoffset,startoffsetunitid,startyoffset,startyoffsetref,startzoffset,startzoffsetref,assetid,basemeasureunitid,endassetfeatureid,endbasemeasure,endmeasure,endmeasureunitid,endoffset,endoffsetunitid,endyoffset,endyoffsetref,endzoffset,endzoffsetref,(select count(metername) from measurement m where m.measuredate > SYSDATE - INTERVAL '1' HOUR and m.metername = a.metername) AS ALCNT
View where:
metername in (select metername from meter where ishistorian=1 and autosrreq=0)

View from:
measurement a

Problem is ... i can't see the attribute ALCNT of view in the attribute list of the view, but the ALCNT field is visible when we see using SQL Developer connected to same maximo database.

Please suggest me the way to get that field in attribute list.
Logged
amdisuk
Administrator
Full Member
*****

Karma: -1
Posts: 199


allandonaldson@hotmail.com
View Profile WWW
« Reply #1 on: February 20, 2009, 08:04:53 am »

I haven't really come across this sort of use of a view before.

Could you just add ALCNT as a field in the Maximo view and create your relationships in Maximo? I think the problem here is that Maximo doesn't understand the relationship that links ALCNT to the MEASUREMENT table.

Al
Logged

Big Al
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!