3 weeks ago
Dear Fiori experts, I hope you can help me with the problem I'm facing.
I'm developing a Fiori Elements app using Flexible Programming Model that we're trying to have as much metadata-driven as possible. OData interface is V4. One of my tasks is to implement a custom column with quite sophisticated set of microchartbars, therefore, I'm doing it on frontend by using CDS as my source of data. No problems so far, I've implemented this custom column in my manifest and custom xml template:
My problem is that its availability has to be dependent of another criterion, such as whether or not a user has some particular authorization. This authorization check is done on backend via custom entity and is exposed as an entity set in my OData V4 service, which I read in the onInit method in my List Page controller extension. Unfortunately, I have no idea how to hide this custom column completely if authority check fails. My best bet so far was to use .setIgnoredFields method in .onBeforeRendering method in my List Page controller extension, but for some reason setIgnoredFields works only with columns that come from backend (Plant, Material, etc.), but it totally ignores if I put there my custom column name, no matter what. In the below example it will hide Plant column entirely, but leaves ComponentsSummaryIndicatorColumn column.
I tried "ComponentsSummaryIndicatorColumn", "DataField::
Request clarification before answering.
User | Count |
---|---|
50 | |
10 | |
8 | |
6 | |
5 | |
5 | |
5 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.