cancel
Showing results for 
Search instead for 
Did you mean: 

Fiori extenstion toolkit - Redefine routes - How to?

michael_pang4
Active Participant
0 Kudos

Hi,

We are working with CRM Fiori apps SPS3.

We want to redefine the routes defined in the Component.js

How do I know what the syntax should be?

In the extensive project

The CRM My Opportunities app already have detailPageRoutes defined.

I'm trying to add my custom route, but it is not getting called.

Please see attached.

Accepted Solutions (0)

Answers (1)

Answers (1)

michael_pang4
Active Participant
0 Kudos

I've figured it out thanks to a document I found on SCN "Use Cases for Extending the UI of SAP Fiori Apps.pdf"

I've added this inside the metadata tag:

routing : {

"routes" : {

  "masterDetail" : {

   "subroutes" : {

    "master" : { // master is the name of the route

     "subroutes" : {

      "create2" : {

       "pattern" : "create2/{contextPath}/{processType}/{something}",

       "view" : "CustomView"

      },

     }

    },

   }

  },

}

}