Skip to Content
0
Jun 24, 2020 at 07:48 PM

Controlling visibility of UI elements in SAP fiori app based on data from backend ?

388 Views

Hi Experts !

I was wondering if it is a suitable approach to develop and control ui element visibility from backend, when there is one application which is common to more than one role and only differs in access to certain buttons on the page among these roles? rather than create three different roles.

For instance an application to view a document which is same for Employee and Manager with only difference that manager gets to approve the report other than viewing it in display mode. In this case, controlling the visibility of Approve button from Odata service where from back-end we can return a variable to enable and disable button if the logged in user is a manager.

Regards.