cancel
Showing results for 
Search instead for 
Did you mean: 

Hide CREATE Button on Fiori element List Report based on user Authorization using CAP CDS

parthasaradhi
Explorer

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 .

View Entire Topic
rgadirov
Participant
0 Kudos

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