Maximo

Maximo

Come for answers, stay for best practices. All we're missing is you.

 View Only
  • 1.  Labor Reporting --> select labor

    Posted Thu July 08, 2021 06:19 AM
    Hello,

    In application Labor Reporting we have option "Enter By Work Order".Opis ni na voljo
    When we click this we opene this window here, and we select one work order from list:

    Opis ni na voljo

    Then we click on button Select Labor:

    Opis ni na voljo

    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
    Opis ni na voljo

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

    #AssetandFacilitiesManagement
    #Maximo


  • 2.  RE: Labor Reporting --> select labor

    Posted Fri July 09, 2021 09:29 AM
    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?


  • 3.  RE: Labor Reporting --> select labor

    Posted Fri July 09, 2021 12:03 PM
    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
    ------------------------------



  • 4.  RE: Labor Reporting --> select labor

    Posted Fri July 09, 2021 01:32 PM
    You could apply the where clause on the lookup in the library.xml -- whereclause="STATUS = 'ACTIVE'"


    ------------------------------
    Ashok Fernandes
    ------------------------------