Maximo

Maximo

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

Β View Only
  • 1.  Anywhere Complex attributes

    Posted 11/02/21 12:52 PM

    Hi,

    First time adding a complex attributes to the workorder resource but it seems like I am missing something because the list is empty on the device side.

    I added the object/relationship on the oslcwodetail object structure.
    I added the reference in the rdfspuller.xml
    I created the resource and adding the new attribute in the workorder resource.

    With the oslc resource from the browser :
    In anywhere (Chrome inspect)

    Definition

    What am I missing ? 

    Thank you 



    ------------------------------
    Mathieu Guilmette
    ------------------------------



    #Maximo
    #AssetandFacilitiesManagement
    #MaximoAnywhere


  • 2.  RE: Anywhere Complex attributes

    Posted 11/03/21 07:01 PM
    Mathieu,

    Did you create the resource in the XML for you "describeByResource"?  If you look at workorder you will see the first complex attribute listed is "taskResource".  If you search on that you will find there is a resource definition that corresponds to the TaskResource. See Below images.  Hope this helps.

    Workorder Resource Complex Attribute for Tasks.

    Task Resource definition


    ------------------------------
    Bradley K. Downing , MBA
    Solutions Engineer
    IBM
    Bakersfield CA
    ------------------------------



  • 3.  RE: Anywhere Complex attributes

    Posted 11/03/21 10:09 PM
    Have you run the RDFS puller?  Is the relationship correct.  I ask because the OSLC query is empty, but I'm assuming there is source data?

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



  • 4.  RE: Anywhere Complex attributes

    Posted 11/04/21 08:12 AM
    Hi,

    I did a full reinstall of the app and it finally works. I don't what was the issue but i'm ok right now.

    Thank you guys

    ------------------------------
    Mathieu Guilmette
    ------------------------------



  • 5.  RE: Anywhere Complex attributes

    Posted 11/04/21 09:13 AM
    Ahhh, now there's the missing bit.

    After you have designed the complex bits, run the RDFS puller, built the app, and finally deployed it, there is one more step.  That is to refresh the lookup data or in your case reinstall it.

    Why?  Yes, after you deployed the app received the changes, but the reference data has not been refreshed.  So that needs to happen somehow.

    Well done for getting it to work.

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



  • 6.  RE: Anywhere Complex attributes

    Posted 11/04/21 03:16 PM
    @Mathieu Guilmette @Craig Kokay

    On this point yes "the missing bit"! If you change the shape of the resources and or add new resources then the user (on Android) can delete data and cache.  If you are on iOS then you must (as in musta, gotta, havta 😜 )​ delete the app and re-install it.  

    iOS forces you to do this since you have no ability to delete the data from within the app. (in my opinion this is a severe limitation of iOS for this type of app.) So Mathieu may be on iOS?​

    ------------------------------
    Bradley K. Downing , MBA
    Solutions Engineer
    IBM
    Bakersfield CA
    ------------------------------