Maximo List Archive

This is an archive of the Maximo Yahoo Community. The content of this pages may be a sometimes obsolete so please check post dates.
Thanks to the community owner Christopher Wanko for providing the content.



Re: record level image on table controls

From: Warren, Jade GRE-MG (2016-04-05 13:46)

Very easy :-)
Here is the snippet of XML from the Item Master application's LIST tab...
<tab default="true" id="results" label="List" type="list">
<menubar event="search" id="actiontoolbar" sourcemethod="getAppSearchOptions"/>
<table beanclass="psdi.webclient.beans.item.ItemResultsBean" id="results_showlist" inputmode="readonly" label="Items" mboname="ITEM" selectmode="multiple">
<tablebody displayrowsperpage="20" filterable="true" filterexpanded="true" id="results_showlist_tablebody">
<tablecol dataattribute="itemnum" filterable="false" id="results_showlist_tablebody_1" mxevent="toggleselectrow" mxevent_desc="Select Row {0}" sortable="false" type="event"/>
<tablecol dataattribute="itemnum" id="results_showlist_tablebody_2" menutype="item" mxevent="selectrecord" mxevent_desc="Go To %1" type="link" usefieldsizegroup="false" width="200"/>
<tablecol dataattribute="description" id="results_showlist_tablebody_3" width="250"/>
<tablecol dataattribute="status" id="results_showlist_tablebody_7a"/>
<tablecol dataattribute="ITEMNUM" id="resultsabody_7a" label="Picture">
<recordimage height="120" id="main_raaamage_1" width="120"/>
</tablecol>
<tablecol dataattribute="rev_num_gre" id="new_tablecol_5"/>
<tablecol dataattribute="COMMODITY" id="new_tablecol_4" lookup="COMMODITIES" sortable="true"/>
<tablecol dataattribute="STATUS_GRE" id="new_tablecol_3" lookup="VALUELIST" sortable="true"/>
<tablecol dataattribute="sort_code_gre" id="new_tablecol_2" sortable="true"/>
<tablecol dataattribute="STANDARD_GRE" id="new_tablecol" sortable="true"/>
<tablecol filterable="false" id="results_bookmark" mxevent="BOOKMARK" mxevent_desc="Add to Bookmarks" mxevent_icon="btn_addtobookmarks.gif" sortable="false" type="event"/>
</tablebody>
</table>
</tab>
Here is a screenshot of the result (I just put in dummy images in the first three records)...
[cid:image001.jpg@01D18F17.A015D460]
Jade E Warren
Senior Systems Analyst
Great River Energy
12300 Elm Creek Boulevard
Maple Grove, MN 55369
* (763) 445-5539 - Direct
* (612) 801-0191 - Mobile
* (763) 445-6339 - Fax
www.GreatRiverEnergy.com<http://www.greatriverenergy.com/>
NOTICE TO RECIPIENT: The information contained in this message from
Great River Energy and any attachments are confidential and intended
only for the named recipient(s). If you have received this message in
error, you are prohibited from copying, distributing or using the
information. Please contact the sender immediately by return email and
delete the original message.


From: therron (2016-04-06 06:21)

Works like a champ! Thanks!


From: therron (2016-04-08 06:14)

I'm afraid I'll have to change my answer; I've discovered a problem:

Suppose we have a building simply called "Building 1" and the LocationID for each room in there (with a smart numbering system) begins with "B1." And then the next number indicates the floor, e.g. a LocationID that starts with "B13" means Building 1, Third floor. Then the next two numbers are the room number, e.g. B1301 is the 1st room on Third floor of Building 1; B1322 would be the 22nd room on the same floor.

So suppose you search the Locations app for locations like B13%. Let's say there's 30 rooms on the floor. So my search finds those 30 locations, and it IS properly retrieving the record-level image that is connected to that location. By default these are sorted by LocationID ascending.

The problem is: If you click the image, it expands (like it should). But the picture that is expanded is the picture that is associated with the first record retrieved from the search. Going back to the example, if I find in the List the entry for B1322, it will show the correct image for B1322, but if I click the image the picture in the popup dialog is the picture for B1301.

Hope my explanation makes sense. Any ideas on how to fix, or disable the click-to-expand?

Travis Herron


From: therron (2016-04-08 06:43)

I've figured out how to disable the click-to-expand function, by adding:

thumbnail="no"

as a property of the control in the XML. But I don't like the results of that either; it puts horizontal and vertical scroll bars on every image.

Still looking for a way to make it expand the correct picture. . .

Travis