Before making that change, understand that Maximo has this design to allow you to enter Labor Transactions after the Labor is no longer active. Like, the worker quits on Friday and you're doing his time sheet entries manually on Monday. If that situation doesn't affect you, then proceed.
Next. . .I'm assuming that since it's in library.xml, that this dialog is used other places besides the one you've asked about. So decide, do you want this change to happen across all of Maximo (if so, make this change in library.xml) or just the one spot you asked about (if so, copy that whole dialog box's XML and find a good place to paste it in labrep.xml -- when the button calls for the dialog, it should look locally first, then go out and check other places like library.xml).
I think how you need to do it is by adding a default value for the table. Look at the 3rd line of the code snippet below:
<dialog beanclass="psdi.webclient.beans.workorder.SelectLaborOnActualsBean" id="selectlaboronactuals" label="Select Labor" mboname="LABORCRAFTRATE">
<table id="selectlaboronactuals_select_table" inputmode="readonly" label="Labor" selectmode="multiple" width="700">
<defaultvalue dataattribute="status" defaulttype="query" id="selectlaboronactuals_select_table_tablebody_status_default" value="ACTIVE"/>
<tablebody displayrowsperpage="15" filterable="true" id="selectlaboronactuals_select_table_tablebody">
<tablecol filterable="false" hidden="false" id="selectlaboronactuals_select_table_tablebody_1" mxevent="toggleselectrow" sortable="false" type="event"/>
<tablecol dataattribute="laborcode" id="selectlaboronactuals_select_table_tablebody_2"/>
<tablecol dataattribute="labor.person.displayname" id="selectlaboronactuals_select_table_tablebody_3"/>
<tablecol dataattribute="craft" id="selectlaboronactuals_select_table_tablebody_4"/>
<tablecol dataattribute="skilllevel" id="selectlaboronactuals_select_table_tablebody_5"/>
<tablecol dataattribute="vendor" id="selectlaboronactuals_select_table_tablebody_6"/>
<tablecol dataattribute="contractnum" id="selectlaboronactuals_select_table_tablebody_7"/>
</tablebody>
</table>
<buttongroup id="selectlaboronactuals_2">
<pushbutton default="true" id="selectlaboronactuals_2_1" label="OK" mxevent="dialogok" value="copyLaborToLabTransSet"/>
<pushbutton id="selectlaboronactuals_2_2" label="Cancel" mxevent="dialogcancel"/>
</buttongroup>
</dialog>
You may also have to, or at least want to, add a Status column to the dialog box.
------------------------------
Travis Herron
------------------------------
Original Message:
Sent: Fri July 09, 2021 09:29 AM
From: User1971
Subject: Labor Reporting --> select labor
I'm relatively new to this sort of thing. So take this with a grain of salt.
Could you do something like this:
1. In the Conditional Expression Manager application, create a conditional expression: STATUS = 'ACTIVE'.
2. Go to Security groups> More action menu> Global Data Restriction. Create a security restriction on the Labor Reporting application that uses the conditional expression.
Would that work?
Original Message:
Sent: Thu July 08, 2021 06:19 AM
From: Blaz Rakar
Subject: Labor Reporting --> select labor
Hello,
In application Labor Reporting we have option "Enter By Work Order".
When we click this we opene this window here, and we select one work order from list:

Then we click on button Select Labor:

And we got list of labors, but at the list are also inactve labors. This functionality is placed in java logic psdi-->webclient-->beans-->labrep-- >SelectLaborOnByWorkOrderBean.class

This dialog which we get is placed in library.xml here

So my question is, how to solve this problem to get labors which have only ACTIVE status?
------------------------------
Blaz Rakar
------------------------------
#Maximo
#AssetandFacilitiesManagement