Maximo Open Forum

 View Only
  • 1.  Mobile - configurations Technician

    Posted 09-24-2024 11:16

    Maximo Mobile - 

    Currently configuring the technician app
    trying to add more fields to the app.xml and appcustomizations.js


    Can you reference a table domain?


    Can you configure/refence a GL Account Look up?

    Does IBM support Custom object structures?

    If yes, to any of the above can you advise as how to or documentation on configuring 


    #Mobility

    ------------------------------
    Diane Nohner
    City of Minneapolis
    ------------------------------


  • 2.  RE: Mobile - configurations Technician

    Posted 09-24-2024 13:06

    Assuming this is a table domain on a different field (IE a custom field on WORKORDER), there's nothing special in the framework to directly handle it. The way you would handle the table domain is to setup an object structure for the underlying object, create a maximo-datasource in the app.xml that references that object structure, and implement a lookup to display the values on the creation/edit page. 

    For example, let's say your table domain is to select a personid in a custom field. You would want a maximo-datasource that references the object structure MXAPIPERSON and utilizes the MOBILEPERSON saved query. That will get you the list of people. If you have some sort of additional filter criteria (such as this field on person needs to be set this way), then you would add to the maximo-datasource a where (for web) and mobile-qbe-filter (for mobile) to reduce the dataset. Lookup datasources for Maximo Mobile need to use the same saved query so it's important that you implement the filter with where & mobile-qbe-filter. Then on the smart-input you would reference the lookup you create.

    Regarding GL Account, there's not out of the box support for that type lookup today and that's a very complex scenario. I wouldn't recommend someone trying to build that, especially on mobile. 



    ------------------------------
    Steven Shull
    IBM
    ------------------------------



  • 3.  RE: Mobile - configurations Technician

    Posted 10-02-2024 14:12

    Shift diff look up does not work - 

    Any advice on what is missing or incorrect would be appreciated.

    Added object structure -

    Added to App.XML 

          <     <maximo-datasource id="comshiftidLookupDs" lookup-data="true" object-structure="COMPSSHIFTDIFF" page-size="100" selection-mode="single">

            <schema id="a1_xy93q">

              <attribute name="com_ps_shift_diffid" unique-id="true" id="a1_bzr96"/>

              <attribute name="comshiftcd" searchable="true" id="a1_we4v9"/>

              <attribute name="description" searchable="true" id="a1_e_p64"/>

              <attribute name="comworkgrp" searchable="true" id="a1_agaa4"/>

            </schema>

          </maximo-datasource>

    <attribute name="comshiftid" id="a1_z5md2"/>

         <lookup-with-filter id="comshiftidLookup" width="99" datasource="comshiftidLookupDS" show-search="true" on-item-click="selectcomshiftid" lookup-attributes="{['comshiftcd','comworkgrp','description']}" show-count="true" lookup-heading="Shift Diff"/>

     <box direction="row" children-sizes="50" fill-parent="true" fill-child="true" padding-bottom=".5" padding-top=".5" id="a1_vwmnd">

                      <smart-input label="Shift Diff" theme="dark" placeholder="Shift Diff" value="{reportworkLaborDetailds.item.comshiftid}" select-lookup-attribute="comshiftcd" on-smart-lookup-click="showcomshiftidLookup" on-smart-lookup-click-arg="{{'page':page,'item':reportworkLaborDetailds.item}}" enable-lookup-buttongroup="true" id="a1_yeamy"/>

    Added to 

    Appcustomizations.js 

    showcomshiftidLookup(event)

       {

         let comshiftidDs=this.app.findDatasource("comshiftidLookupDS");

         comshiftidDs.initializeQbe();

         comshiftidDs.searchQBE();

         event.page.showDialog("comshiftidLookup");

       }

       

       async selectcomshiftid(event)

       {

         let reportworkLaborDetailds = this.app.findDatasource("reportworkLaborDetailds");

       

         reportworkLaborDetailds.item.comshiftid=event.comshiftcd;

       }

     }

     export default AppCustomizations;

    Error in developer tools

     



    ------------------------------
    Diane Nohner
    City of Minneapolis
    ------------------------------



  • 4.  RE: Mobile - configurations Technician

    Posted 10-04-2024 21:11

    You wouldn't need the methods in AppCustomization.js to open the lookup and select the value.

    DataSource:

    <maximo-datasource id="shiftLookupDs" lookup-data="true" object-structure="COMPSSHIFTDIFF" offline-immediate-download="true" page-size="100" selection-mode="single" saved-query="QCOMPSSHIFTDIFF">
            <schema id="a1_xy93q">
              <attribute name="comshiftcd" searchable="true" id="a1_bzr96"/>
              <attribute name="description" searchable="true" id="a1_we4v9"/>
              <attribute name="comworkgrp" searchable="true" id="a1_e_p64"/>
              <attribute name="com_ps_shift_diffid" unique-id="true" id="a1_agaa4"/>
            </schema>
    </maximo-datasource>
    Lookup:
    <lookup id="openShiftDiffLookup" lookup-heading="Shift Diff" datasource="shiftLookupDs" border="true" tight="true" lookup-attributes="{['comshiftcd', 'description','comworkgrp']}" height="400" width="40"/>
    Text Field:
    <box padding-bottom="0.25" children-sizes="100" direction="column" fill-child="true" fill-parent-horizontal="true" id="vzpp4">
                      <smart-input label="Shift Diff" unspecified-placeholder=" " hide-step-buttons="true" value="{reportworkLaborDetailds.item.comshiftcd}" select-lookup-attribute="comshiftcd" enable-lookup-buttongroup="true" id="e3mbx">
                        <button slot="button-group" kind="secondary" label="Search" icon="Carbon:search" lookup="openShiftDiffLookup" id="qzjrq"/>
                      </smart-input>
    </box>
    Verify the lookup works in preview mode. Publish the changes.
    Include the data into the preLoadedDB by running the cron task. Sync device and confirm.


    ------------------------------
    Niv Geo
    ------------------------------



  • 5.  RE: Mobile - configurations Technician

    Posted 10-08-2024 12:41

    Thanks you all for your suggestions got the fields added and they are working.



    ------------------------------
    Diane Nohner
    City of Minneapolis
    ------------------------------



  • 6.  RE: Mobile - configurations Technician

    Posted 10-08-2024 12:47

    Another question how do you add a check box in mobile technician?


    it is in the labtrans table

    OTpriority  and is a Yorn field.

    labtrans.otpriority 

    Suggestions?



    ------------------------------
    Diane Nohner
    City of Minneapolis
    ------------------------------



  • 7.  RE: Mobile - configurations Technician

    Posted 10-09-2024 12:09

    <smart-input input-kind="YORN" label="OT Priority" hide-step-buttons="true" value="{reportworkLaborDetailds.item.otpriority}" />

    Will look like this:

    Pushing the icon will change to

    Make sure to add the column to the following datasource:

    reportworkLabords
    reportworkLaborDetailds



    ------------------------------
    Niv Geo
    ------------------------------



  • 8.  RE: Mobile - configurations Technician

    Posted 10-21-2024 14:45
    Edited by Diane Nohner 10-21-2024 14:57

    Thank you created the toggles/yorn fields successfully, moving on to other configurations

    Another challenge -

    Technician -

    Report work - tools

    Actuals>Tools

    Our tools are not in the storeroom, access to the storerooms - materials are restricted to storeroom personnel only.

    In core on actuals>Tools users can add the tools from the toolitem 

    screen shot from core  - Maximo.

    any suggestions on how to configure to select from toolitem instead of the storeroom.


    Screen shot from Mobile