Maximo

Maximo

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

 View Only
Expand all | Collapse all

suggestion on resolve controller error - Maximo mobile for EAM Technician app v 8.6

  • 1.  suggestion on resolve controller error - Maximo mobile for EAM Technician app v 8.6

    Posted Mon March 28, 2022 10:05 AM
    Hi Team, 

    Can anyone provide a suggestion to resolve below mention error in maximo mobile for EAM technician app


    ------------------------------
    Bala Chendrayudu
    ------------------------------

    #AssetandFacilitiesManagement
    #Maximo


  • 2.  RE: suggestion on resolve controller error - Maximo mobile for EAM Technician app v 8.6

    Posted Tue March 29, 2022 08:07 AM
    We don't officially support writing custom controllers today. Our only officially supported ways to modify the application are via the AppCustomization.js (where you can listen for the various events across all controllers/pages, add methods that get called based on an action in the app, etc.) or via app.xml changes. Without seeing what you're trying to do, it's hard to explain how to accomplish it via the AppCustomization.js

    I'm not an expert when it comes to JavaScript applications and can't currently test this. Looking at the error, I'm guessing one of two things are happening. Either you're referencing the core AttachmentsController and forgot to import it or you copied the AttachmentController JavaScript file to create your new controller and left the export default as AttachmentsController at the bottom of your file and need to rename it to your own class.

    If it's you need to interact with AttachmentsController and you haven't properly imported, add this to the top of your JavaScript file.
    import AttachmentsController from './AttachmentController';

    ------------------------------
    Steven Shull
    ------------------------------



  • 3.  RE: suggestion on resolve controller error - Maximo mobile for EAM Technician app v 8.6

    Posted Wed March 30, 2022 10:01 AM
    Thank you so much Steven Shull for your valuable feedback.

    ------------------------------
    Bala Chendrayudu
    ------------------------------