on 2024 Oct 11 2:05 PM
I have a simple CDS view with LINE_ITEM annotation.
Dependent on a condition i want to hide the column via the hidden property.
@ui.lineItem: [{ position: 1000, hidden: true }] works fine. The column is not rendered.
But none of the variants works all all:
@ui.lineItem: [{ position: 1000, hidden: #( 'X' )}]
@ui.lineItem: [{ position: 1000, hidden: #( true )}]
@ui.lineItem: [{ position: 1000, hidden: #( abap_true )}]
@ui.lineItem: [{ position: 1000, hidden: #( '1' )}]
Intention was to use something like:
@ui.lineItem: [{ position: 1000, hidden: #( case when MyTableField = '' then abap_true else abap_false end )}]
The question is, was is the correponding expression to "hidden: true"
Request clarification before answering.
| User | Count |
|---|---|
| 18 | |
| 7 | |
| 6 | |
| 6 | |
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.