Quantcast
Channel: SCN : All Content - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 6178

Fiori - URL parameters

$
0
0

Hi,

 

We are currently using CRM Fiori My Opportunities.

We want to enhance the application using the Fiori extension toolkit to default values in the create screen.

 

In the SAP project, I see that the route is defined as:

"create"  :  {

                "pattern" : "create/{contextPath}/{processType}",

                "view"  : "S5"

       

            },

This route is defined in the Component.js file, and currently it is not possible to redefine with the toolkit. So I'm stuck with the route as it is.

 

Given this route, I expect that when the URL contains create/abc/cde then it should indeed load S5 view and S5 controller.

 

https://host:port/sap/bc/ui5_ui5/ui2/ushell/shells/abap/FioriLaunchpad.html?#ZOpportunity-Manage/create/abc/cde

 

https://host:port/sap/bc/ui5_ui5/ui2/ushell/shells/abap/FioriLaunchpad.html?#ZOpportunity-Manage/create/abc/cde?CustomId=1234

 

 

So I tried redefined the S5 controller onInit to retrieve the URL parameters.

 

Questions:

1) Where should I put the URL parameter? Before the intent or after?

2) How do i retreive this from the onInit method?

 

 

Cheers

 

Michael.


Viewing all articles
Browse latest Browse all 6178

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>