Maximo

Maximo

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

 View Only
  • 1.  Workorder Custom attributes displayed in Inspection App goes blank while accessing in Mobile App

    Posted 8 days ago

    Hi All,

    We have Maximo Mobile for EAM v9.0 Inspections App slightly customized by displaying few of the custom attributes from workorder in Inspection List page.

    Data display works fine with the Role Based app, but it goes undefined while accessing the same app in Mobile devices/ Windows Desktop App using preloadDB.

    Kindly let us know if anyone faced similar issues.

    Thanks



    ------------------------------
    Bincy Jose
    ------------------------------


  • 2.  RE: Workorder Custom attributes displayed in Inspection App goes blank while accessing in Mobile App

    Posted 7 days ago

    HI Bincy,

    How are you bringing those custom attributes values in Maximo Mobile?  is it part of preload DB? or is it getting downloaded when you are doing refresh on list page?

    If preload db, then check if those details are available in Preload db file.



    ------------------------------
    Ritesh Ranjan
    ------------------------------



  • 3.  RE: Workorder Custom attributes displayed in Inspection App goes blank while accessing in Mobile App

    Posted 6 days ago

    Since you're talking the inspection list page, I assume the changes you made were to the transactional data (attributes or relationships from the inspection result) rather than lookup data (IE the asset, locations, etc. lookup data). Only lookup data is in the preloaded database which means the preloaded database would not matter if you added it to the transactional data.

    One of the biggest things to be careful of is aliasing the same attribute two different ways across datasources. For example:

    name="asset.description--assetdesc"
    name="asset.description--assetdescription"

    In the web, this is OK because each datasource is retrieved individually. In Maximo Mobile, all datasources are combined into one large oslc.select which leads to:

    oslc.select=asset.description--assetdesc,asset.description--assetdescription

    The Maximo REST API will not return the same attribute aliased two different ways. This leads to the value existing in one datasource and not another. 


    The second thing is if you modify the application, you need to update your transactional data. Let's say you didn't have asset.description initially and configure the application to add it. Maximo Mobile will download the new version of the application, but you'll be served based on the data you downloaded from the old version until you update the data (using the Check for Updates, Data Update, etc.). Since the field wasn't retrieved before, Maximo Mobile will think the field value is null.


    If neither of those two things are your problem, as Ritesh mentioned, we would need to understand how you've defined it to help you triage it. 



    ------------------------------
    Steven Shull
    Principal Maximo Solutions Engineer
    Naviam
    Cincinnati OH
    ------------------------------



  • 4.  RE: Workorder Custom attributes displayed in Inspection App goes blank while accessing in Mobile App

    Posted 2 days ago

    Hi Steven,

    Thank you for the update.

    As you mentioned we are working on transactional data trying to display the workorder fields in list page and also would need this field information for a conditional logic on the questions in execution page(execution_panel).

    Kindly let me know how can we fetch the same attributes in two different data sources in Mobile for the same app? Should we just go for two different relationships?

    Also in Mobile 9 version we see the workorder fields are ignored in InspectionList controller file.

    ds.addIgnoreField("workorder")

    Similarly other controller file shows addIgnoreField line of codes new to Mobile 9. Could you please help with the details on these.

    Thanks,



    ------------------------------
    Bincy Jose
    ------------------------------



  • 5.  RE: Workorder Custom attributes displayed in Inspection App goes blank while accessing in Mobile App

    Posted 2 days ago

    You can retrieve the same attribute across as many datasources as you want, and you want to use the same relationship from a performance perspective. But you need to do it consistently. IE if you call it asset.description--steven, you need to use asset.description--steven every single time. If you have even a single place where you use asset.description--bincy, then some of your datasources will be broken.

    The DEBUG windows app is helpful here but since you're on maximo mobile 9, you can also hit /maximo/oslc/graphite/mobile/requests . That API will show you what the full request is that will be made for all the different Maximo Mobile datasources. You can test that REST API and validate your results. If you get data back in the API, then that's likely not your issue.


    Regarding the ignore field, it's not the issue you have here. There are some attributes, typically special attributes that the framework uses to indicate a record has been added for example, on datasources that the framework should ignore in a few different scenarios. This just tells the datasource additional attributes to ignore. It won't impact download of the attributes nor display of them. 



    ------------------------------
    Steven Shull
    Principal Maximo Solutions Engineer
    Naviam
    Cincinnati OH
    ------------------------------