-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update step-30-routing-and-navigation-e5200ee.md #186
Conversation
The details object of the routing parameters is not functioning correctly, but it should use "viewId" and "viewName" instead of "id" and "name".
Please review. I followed the documentation for implementing routing, but I am unable to navigate. I discovered that the properties of the Details object are different. is it due to the version ? |
@satyadwivedi which version of SAP UI5 are you using. i just looked into my application. In the targets the properties name as follows. in the fiori elements app, in the freestyle app,
|
Hi @satyadwivedi , thanks for your contribution! We'll take a look and will get back to you. |
![]() In my freestyle SAPUI5 app, I see id and name inside 'targets.details' instead of viewId and viewName. please refer to the doc https://sapui5.hana.ondemand.com/#/topic/e5200ee755f344c8aef8efcbab3308fb below config is not working "targets": { where as this is working - "targets": { |
@satyadwivedi your |
Hi @satyadwivedi, The Developer Guide and Tutorial contain the most up-to-date version of the routing configuration. With the introduction of the Component target, the options prefixed with "view"—such as In the tutorial, the As pointed out by @boghyon, try to add the Best regards, |
Hi @satyadwivedi , I think this way of naming the routing parameters might be deprecated since UI5 1.62 when component targets were enabled. See the comments by @stopcoder and @boghyon above. |
Hi @boghyon @stopcoder , I am using sapui5 version 1.120.0 (stable version ), I tried the above setting by defining the and I am adding my config below as well - "routing": { This is my SAPUI5 version configuration "sap.ui5": { One strange I noticed that after adding Thanks! for your patience and quick response. |
Hi @satyadwivedi, the new set of options without the "view" prefix only works with asynchronous routing. For compatibility reasons, the default value of the To simplify the configuration of different options related to asynchronous loading, we introduced the In your case,
This strongly indicates that async routing must be enabled to support the new option set. To resolve this, you have two options:
An example usage of
Best regards, |
thanks! for clarification. |
@ future readers: the answer https://stackoverflow.com/a/72617737/5846045 summarizes how to resolve the following errors: Sync Target '[...]' uses the new options which are only supported by async Target. The target '[...]' no viewName defined. |
Thanks for the link @boghyon - always a good idea to look at the console error log! |
The details object of the routing parameters is not functioning correctly, but it should use "viewId" and "viewName" instead of "id" and "name".