Implementing Router Configuration

Objectives

After completing this lesson, you will be able to:

  • Implement router configuration for a list-detail application

Implementing Router Configuration

Now that you have understood the overall design of the application, we will look at the implementation of the routing when using sap.f.FlexibleColumnLayout.

Initializing the Router

When you are starting the application, the Component of the application will be loaded. The following figure, Initializing the Router, shows the implementation of the Component.js implementation.

The router is automatically instantiated based on the configuration in manifest.json and assigned to the Component.

The router has to be initialized in the init-function of the Component the router. When you are using the SAP Business Application Studio, the invocation of the initialize function on the router object is added to the generated code.

Log in to track your progress & complete quizzes