I got you, yes that would be the intent as that would be the last cost. I am using a relationship from POLINE to my view. I was able to get it to work using the following XML. Thx!
<recordhoversection id="item_p_rhs_1" label="Item Details" relationship="lastprice">
<recordhoversectioncol id="item_p_rhsc_1">
<recordhoversection id="item_p_rhs_2">
<recordhovermultiparttextbox dataattribute="itemnum" descdataattribute="description" id="item_p_rh_1" label="Item"/>
<recordhovertextbox dataattribute="nsn" id="item_p_rh_3" label="NSN"/>
<recordhovertextbox dataattribute="poline.lastprice.unitcost" id="item_p_rh_6" label="Last Unit Cost"/>
<recordhovertextbox dataattribute="poline.lastprice.lastdate" id="item_prh_5" label="Last Order Date"/>
</recordhoversection>
</recordhoversectioncol>
<recordhoversectioncol id="item_p_rhsc_2">
<recordhoversection id="item_p_rhs_3">
<recordhovertextbox dataattribute="buyer" id="item_p_rh_2" label="Buyer"/>
<recordhovertextbox dataattribute="adminlt" id="item_p_rh_8" label="Admin Lead Time"/>
<recordhovertextbox dataattribute="partleadtime" id="item_p_rh_9" label="Part Lead Time"/>
------------------------------
Wes Williams
Northrop Grumman
------------------------------
Original Message:
Sent: 06-28-2021 15:01
From: Steven Shull
Subject: Maximo Hover
The IBM technote shouldn't be an issue as POLINE.ITEMNUM does have a field class. If nothing worked then that would be an issue, but because some attributes work that shouldn't be a problem.
As for my reference about closed, what I intended to convey was that only 1 record can be displayed in a hover dialog even though a relationship might return more than 1 record. How the join from ITEM to POLINE is written could return the POLINE in question that a user is looking at which might be confusing to a user who is looking for past cost information. For example, if PO 1001 was the last approved PO and you looked for the last approved POLINE referencing that item, hovering on PO 1001 would return the data for PO 1001. As long as that is the intent, that's fine, but could be confusing.
I created my own record hover for testing (cloning the item_recordhover) and added contractline.linecost and altitem.altitemnum and confirmed that in both cases it got displayed on the hover when a reference existed. I'm not sure why yours isn't working. I'd check your relationship to make sure there isn't a syntax error preventing it from rendering.
------------------------------
Steven Shull
Projetech Inc.
Original Message:
Sent: 06-28-2021 13:23
From: Wes Williams
Subject: Maximo Hover
I am assuming this is my issue https://www.ibm.com/support/pages/adding-hover-dialogs-additional-fields-maximo-76
"Please note that the hover dialogue only works when there is a field validation class, or a table domain connected to the attribute. If you add hover functionality to an attribute which doesn't have a field validation class, such as the ASSET.CHANGEBY, or SR.ENTEREDBY, then the hover dialog will display but it is blank, it does not show any data." although I get binding issues
------------------------------
Wes Williams
Northrop Grumman
Original Message:
Sent: 06-28-2021 09:35
From: Steven Shull
Subject: Maximo Hover
Hover dialogs, like lookups, function based on the related object, which in this case is item. You could create a relationship from ITEM to POLINE/your custom view. Only one record would be available and you would have to do something like only looking at closed POs or you're potentially going to get your own PO in the hover dialog which I don't think would be helpful.
------------------------------
Steven Shull
Projetech Inc.
Original Message:
Sent: 06-25-2021 15:24
From: Wes Williams
Subject: Maximo Hover
I thought I might be able to create a view and then a relationship using POLINE where the new view is the child. I was hoping that I could pull additional information. I put the hover on the POLINE.ITEMNUM, it works for anything ITEM table related and invalid for the other columns in the view.
The view has item related data as well as last price paid and last date etc.
I wanted the buyer to be able to hover and get previous PO info on the part..Just seems bizarre unless there is a default hover for the POLINE itemnum I don't see.
Any ideas?
Thx
#Administration
#EverythingMaximo
------------------------------
Wes Williams
Northrop Grumman
------------------------------