- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Using ControlAggregation in SAPUI5
“ControlAggregation” refers to the target aggregation to which the mapped view is added.
As Specified in the use case below:
"routing": { "config": { "routerClass": "sap.m.routing.Router", "viewType": "XML", "viewPath": "sap.ui.demo.nav.view", "controlId": "app", "controlAggregation": "dummy", "transition": "slide", "bypassed": { "target": "NA" }
Example
The views are defined as follows:
<mvc:View controllerName="sap.ui.demo.nav.controller.App" xmlns="sap.m" xmlns:mvc="sap.ui.core.mvc" displayBlock="true"> <App id="sampleApp"/> </mvc:View>
So here “controlAggregation” is named as 'dummy' but the app is named as SampleApp.
so the target is 'sap.m.SampleApp' and aggregation is named as 'dummy'. Let us take an example here:
routes :[{ pattern:"employee/{id}", name:"employee", target:"employee" }, { pattern:"department/{id}", name :"department", target:"department" }], targets:{ employee:{ viewName:"Employee", controlAggregation:"masterPage" }, department"{ viewName:"Department", controlAggregation:"contentPage" } }
So when a user navigates to employee/3, routing engine finds that 'Employee' is the target for this pattern. Then it tries to find the name of the view for that target i.e. 'Employee'. After this, it will determine the control aggregation for this View if any. Here we have it to be “masterPage”. Now the View Engine will render the view inside the “masterPage”.
- Related Articles
- Using SSO logon tickets in SAPUI5
- Installing SAPUI5 on local machine using XAMPP
- Converting OData using SAPUI5 libraries to JSON format
- Request Timeout while using Odata call to a gateway in SAPUI5 application
- Passing to method geticon in SAPUI5
- Loading 3rd party libraries in SAPUI5
- Using HTML control and SAPUI5 controls and advantages of using UI5 controls over HTML controls
- How to create a list in SAPUI5?
- Including third party libraries in SAPUI5 Project
- Footer not working in my SAPUI5 application
- Static HTML elements are written directly in SAPUI5
- Align items to center not working in SAPUI5
- Error Failed to load resource in SAPUI5 application
- Change no data text for Search in SAPUI5
- Add Authentication details in the AJAX request in SAPUI5

Advertisements