Skip to Content

Fiori extenstion toolkit - Redefine routes - How to?

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on May 16, 2014 at 12:53 AM

    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"

    },

    }

    },

    }

    },

    }

    }

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.