Maximo Anywhere

  • 1.  Priority picklist: Display number as integer, not decimal

    Posted Mon August 02, 2021 03:05 PM
    Anywhere Work Technician 7.6.4:

    When I create a new WO, I can set the WO Priority by choosing a value from the pick list:



    Is there a way to display Priority as integers/whole numbers, instead of decimals?

    Thanks.


  • 2.  RE: Priority picklist: Display number as integer, not decimal

    Posted Tue August 03, 2021 02:06 AM
    This is not a problem as the value when returned to the screen is an integer.  Does yours not?

    ------------------------------
    ===============================
    Craig Kokay,
    Lead Senior Maximo/IoT Consultant
    ISW
    Sydney, NSW, Australia
    Ph: 0411-682-040
    =================================
    #IBMChampion2021
    ------------------------------



  • 3.  RE: Priority picklist: Display number as integer, not decimal

    Posted Wed August 04, 2021 01:09 AM

    I am on 7.6.4

    In my systems the Priority is displayed as an integer without a decimal point
    Probably your's different because of a type or AW customization?

    Here are my customization to provide a lookup on the Priority field:

    app.xml - definition of WOPriority resourse:
    <!--@ Domain WO Priority - numeric -->
    <resource additionalData="true" defaultOrderBy="value asc" describedBy="http://jazz.net/ns/ism/asset/smarter_physical_infrastructure#AlphaNumericDomain" id="domainWOPriority" name="domainWOPriority" pageSize="20" providedBy="/oslc/sp/SmarterPhysicalInfrastructure">
    <attributes id="domainWOPriority_attributes">
    <attribute describedByProperty="spi:value" id="domainWOPriority_value_spivalue" index="true" name="value"/>
    <attribute describedByProperty="spi:description" id="domainWOPriority_description_dctermstitle" index="true" name="description"/>
    <attribute describedByProperty="spi:domainid" id="domainWOPriority_domainid_oslcshortTitle" name="domainid"/>
    <attribute describedByProperty="spi:alndomainid" id="domainWOPriority_synonymdomainid_dctermsidentifier" name="identifier"/>
    </attributes>
    <queryBases id="domainWOPriority_queryBases">
    <queryBase id="domainWOPriority_queryBase_getdynamicunit" name="getwopriority" queryUri="/oslc/os/oslcnumericdomain"/>
    </queryBases>
    <whereClause clause="spi:domainid='WOPRIORITY' and spi:siteid=${defsite}" id="domainWOPriority_whereClause"/>
    </resource>

    definition of a lookup
    <!--Dynamic Priority Lookup-->
    <lookup id="WorkExecution.WOPriorityLookup" label="Select Value" resource="domainWOPriority">
    <list id="WorkExecution.domainPriority_list" resource="domainWOPriority">
    <searchAttributes id="WorkExecution.domainPriority_list_searchAttributes">
    <searchAttribute id="WorkExecution.domainPriority_list_searchAttribute_value" name="value"/>
    <searchAttribute id="WorkExecution.domainPriority_list_searchAttribute_description" name="description"/>
    </searchAttributes>
    <listItemTemplate id="WorkExecution.domainPriority_listItemTemplate_Item1Desc1" layout="Item1Desc1">
    <listtext cssClass="bold textappearance-medium" id="WorkExecution.domainPriority_Item1Desc1_value" layoutInsertAt="item1" resourceAttribute="value"/>
    <listtext cssClass="bold textappearance-medium" id="WorkExecution.domainPriority_Item1Desc1_description" layoutInsertAt="desc1" resourceAttribute="description"/>
    </listItemTemplate>
    </list>
    <returnAttributes id="WorkExecution.domainPriority_returnAttributes">
    <returnAttribute id="WorkExecution.domainPriority_value_alnvalue" sourceAttribute="value" targetAttribute="priority"/>
    </returnAttributes>
    </lookup>

    Regards,
    Alexey



    ------------------------------
    Alexey Potanin
    ------------------------------