on 12-15-2015 1:46 PM
I'm trying to give a static ID to a JS View in manifest.json. Here it is:
{
"config": {
"routerClass": "sap.m.routing.Router",
"viewType": "JS",
"viewPath": "kalite.view",
"controlId": "realMainApp",
"controlAggregation": "pages",
"transition": "slide"
},
"routes": [{
"pattern": "",
"name": "mainView",
"target": "main"
}],
"targets": {
"main": {
"viewName": "Main",
"viewId":"MainView",
"viewLevel" : 1
}
}
}
and I'm trying to get that view by:
sap.ui.getCore().byId("MainView").addDependent(newRecordDialog);
But it doesn't work. It gives "Cannot read property 'addDependent' of undefined" error. Because the view ID is different than what I give:
How can I give a static ID to a static JS View ??
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.