on 12-30-2022 5:17 AM
Hi Experts,
I had built a Fiori element List report application on top of CAP Service using CDS annotations. I have a requirement of hiding CREATE button on List report based on User authorization.
I had used the annotations
entity Books @capabilities(
InsertRestrictions:{
Insertable:<boolean-value>
}
)
Also used annotation
entity Books @(UI. CreateHidden:<Boolean-value>)
If I hard code Boolean value to true or false, I am able to hide Create button.
But I am unable to pass the Boolean value dynamically based on User authorization.
Can anyone let me know how to pass the Boolean value dynamically to annotations based on user authorization to hide the CREATE button on List report.
With Regards,
Partha .
HI @parthasaradhi
Were you able to solve this? I am using a boolean property for UI.CreateHidden but with no effect, it only seems to work with fix true/false values.
BR
Rufat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
68 | |
8 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.