on 11-26-2020 11:15 AM
Hello,
I have a Fiori Element List Report with local Annotations. The Annotations are created with the Annotation Modeler in WebIDE.
I want to control the possibility of creating new Entities in the EntitySet. For this I am using Capabilities.InsertRestrictions on EntitySet-Level:
Setting it to "true" or "false" works perfect, the "Create" Button is visible or not according to true/false.
But I want to control the visibility of the Button from the Backend depending on user authorizations.
Instead of using "Bool" for the Expression Type, I can use "Path" and name a Property of my Entity.
This works perfect for Capabilities.UpdateRestrictions as "Update" refers to a single Entity.
But it does'nt work for Capabilities.InsertRestrictions as "Insert" referes to the EntitySet. The Button is alway visible.
I know that there might be a solution using CDS/BOPF, but I don't want to do a complete redesign of the App.
Any help highly appreciated...
Thanks & Best Regards
Jürgen
Hi Jürgen,
You can do this in MPC_EXT class by extending the Define method.
DATA(lo_eset) = model->get_entity_set( iv_entity_set_name = |***Entity Set Name****| ).
lo_eset->set_creatable( abap_true ).//Add Auth check
Thanks,
Angshuman
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
77 | |
11 | |
8 | |
8 | |
6 | |
6 | |
6 | |
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.