Skip to Content
Author's profile photo Wouter Lemaire

SAPUI5 with Advanced Routing

Hi,

This tutorial is based on the previous tutorial: Get started with SAPUI5 and Routing

In the previous tutorial, we’ve used the router component in a static way. Now, we’re going to take it to the next level and make it more dynamic. In that way, we could use one view in different ways depending on a parameter.

This tutorial will navigate from the first view to the second with an “id” as parameter. In the second view, we’ll navigate again to the second view with another “id” as parameter.

/wp-content/uploads/2014/05/tut2_441061.png

The tutorial:

You can find the full project on github:

https://github.com/lemaiwo/OpenUI5-and-routing

This project also includes the other two tutorials:

UI5 with basic routing: Get started with SAPUI5 and Routing

Reusable menu: SAPUI5 Application with Reusable Menu

The project starts with the first blog, followed by this blog and the blog with the reusable menu is the last part of the project.

Thanks to Jeremy Coppey for the audio and his help with the editing of the movie.

Feedback is more than welcome!

Kind regards,

Wouter

Assigned Tags

      4 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Former Member
      Former Member

      Hi Wouter,

      The link to 'SAPUI5 Application with Reusable Menu' is not working in this blog. The correct link is: SAPUI5 Application with Reusable Menu.

      Best regards,

      Jeroen

      Author's profile photo Wouter Lemaire
      Wouter Lemaire
      Blog Post Author

      Thanks Jeroen! I've changed it.

      Kind regards,

      Wouter

      Author's profile photo Former Member
      Former Member

      Hi Wouter,

      My application has hundreds of views which use different template, just like the ui5 doc page SAPUI5 SDK - Demo Kit ,the problem is how to config the routes, need I define a pattern to every view?

      Br,

      Coral

      Author's profile photo Former Member
      Former Member

      Hi,

      cool video it's a really great start for people to get how routing is working.

      Just one suggestion, you create a new JSON model everytime your route is matched.

      A better practice would be to only modify the data of the model and create the model in onInit.

      Then you save yourself a lot of rerendering (if you have a productive view with lots of data).

      BR,

      Tobias