Hello experts,
I am new to Fiori and I am attempting to create a Master/Detail app with an additional view to display additional item details.
I am getting below error whenever I try to navigate to the additional view
Uncaught Error: failed to load 'ZEHS_NAMESPACE/controller/DetailsExpanded.controller.js' from ../controller/DetailsExpanded.controller.js: Error: failed to load 'ZEHS_NAMESPACE/webapp/view/DetailsExpanded.js' from ../webapp/view/DetailsExpanded.js: 404 - Not Found
This is the code in the Manifest Routing (my code is highlighted in blue)
"routing": { | |||||
"config": { | |||||
"routerClass": "sap.m.routing.Router", | |||||
"viewType": "XML", | |||||
"viewPath": "ZEHS_NAMESPACE.view", | |||||
"controlId": "idAppControl", | |||||
"controlAggregation": "detailPages", | |||||
"bypassed": { | |||||
"target": ["master", "notFound"] | |||||
} | |||||
}, | |||||
"routes": [{ | |||||
"pattern": "", | |||||
"name": "master", | |||||
"target": ["object", "master"] | |||||
}, { | |||||
"pattern": "Person_detailsSet/{objectId}", | |||||
"name": "object", | |||||
"target": ["master", "object"] | |||||
}, { | |||||
"pattern": "DetailsExpanded/{ZzCasId}", | |||||
"name": "DetailsExpanded", | |||||
"target": "DetailsExpanded" | |||||
}], | |||||
"targets": { | |||||
"master": { | |||||
"viewName": "Master", | |||||
"viewLevel": 1, | |||||
"viewId": "master", | |||||
"controlAggregation": "masterPages" | |||||
}, | |||||
"object": { | |||||
"viewName": "Detail", | |||||
"viewId": "detail", | |||||
"viewLevel": 2 | |||||
}, | |||||
"DetailsExpanded": { | |||||
"viewName": "DetailsExpanded", | |||||
"viewLevel" : 3 | |||||
}, | |||||
"detailObjectNotFound": { | |||||
"viewName": "DetailObjectNotFound", | |||||
"viewId": "detailObjectNotFound" | |||||
}, | |||||
"detailNoObjectsAvailable": { | |||||
"viewName": "DetailNoObjectsAvailable", | |||||
"viewId": "detailNoObjectsAvailable" | |||||
}, | |||||
"notFound": { | |||||
"viewName": "NotFound", | |||||
"viewId": "notFound" | |||||
} | |||||
} | |||||
} | |||||
} |
}
This is the code from my additional view
<mvc:View
controllerName="ZEHS_NAMESPACE.controller.DetailsExpanded"
xmlns="sap.m"
xmlns:mvc="sap.ui.core.mvc"
xmlns:f="sap.ui.layout.form"
busyIndicatorDelay="0">
What am I missing here? the name space is correct and the routing is setup to navigate from the details view to the additional details view.
Thanks,
Abdul.