on 08-19-2021 8:57 AM
Hi All,
I have configured reuse component of SAP BTP DMS Integration Option in my custom UI5 application.
I am able to upload files etc.
For access control I have created a role collection in subaccount and maintained the same in role collection user in SAP DMS Reuse component app in Access Control tab of file properties menu.
Now when I try to access the file using weblink I get File not found error.
Can you guys please check below images and help please?
-Regards,
Rauf Shaikh
Hi Rauf,
The issue is happening because currently the consuming app which you have built to embed Document management is not aware of this particular route. So what you can do is you can define the routing pattern in the manifest file. For e.g
"routing": {
"config": {
"routerClass": "sap.m.routing.Router",
"viewType": "XML",
"async": true,
"viewPath": "com.sap.test.view",
"controlId": "appFiori",
"controlAggregation": "pages",
"clearControlAggregation": false,
"bypassed": {
"target": "notFound"
}
},
"routes": [
{
"pattern": "documents/v1/open/rep={repoId}&obj={objId}&vs={versionSeriesId}",
"name": "DocViewVsIdOpen",
"target": "DocView"
},
{
"pattern": "documents/v1/open/rep={repoId}&obj={objId}",
"name": "DocViewOpen",
"target": "DocView"
},
],
"targets": {
"DocView": {
"viewName": "DocView",
"viewLevel": 1,
"viewId": "DocView"
},
},
},
In manifest you can define the route pattern(shown above) and from your controller you need to to call
requestNavigationAndOpen(sRepositoryId, sObjectId, sVersionSeriesId);
whenever this particular route is matched.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Tapishnu,
I have added route pattern in manifest file but still i am getting file not found error .
m.txt attached manifest file . please provide some inputs.
User | Count |
---|---|
82 | |
9 | |
9 | |
7 | |
7 | |
7 | |
7 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.