on 03-13-2024 8:50 PM
Dear all,
In a simple CAPM application, I have a 2 entities defined with parent and child relationship, salesOrder and salesOrderItems. The entities are from an external service oData V4. There is no persistence layer so no 'db' module in the application.
In the handler method of the entities, I am connecting to the external service and passing the query as it is.
In the xs-security.json file, I have defined certain role collections and roles with custom attribute customerId. I would like to grant access and show data for the customer based on the custom attribute assigned in the role, so that the user can only see the data based on the customerId assigned to him/her via the role.
On the header entity, I have used the restriction like this
Without this restriction, everything works fine.
But when I add this restriction, the List report shows the data correctly ( filtered sales order as per the customerId in the role assigned to the user ) but the moment, I select a record and try to go to the object page in the fiori elements app, it gives me an error.
Basically it tries to carry the same filter of customerId while making call to the child entity which is not required.
Any advice how can i overcome this issue ?
Many thanks in advance!
Br
Nilesh
User | Count |
---|---|
81 | |
10 | |
10 | |
8 | |
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.