2022 Feb 28 10:44 AM
Hello,
I have a CDS like the following, which I am using as value help (annotations omitted here)
define view ZZVIEW
as select from ZZTABLE
{
key fieldA
fieldB
}
In the consumption view, I need to be able to filter on fieldB but I don't want the table to show the fieldB column.
I tried the annotations @UI.lineItem: [{hidden: true}] and @Consumption.hidden: true but they hide both the column and the filter.
Is there any annotation that I can use to achieve this?
Thanks
2022 Mar 02 1:53 PM
2023 Jan 12 8:58 AM
oussama.kassah2 do you found a solution regarding this topic?
2023 Jan 12 10:04 AM
Unfortunately this does not seem to be possible. You need to add a custom filter on the front end..
2023 Jul 25 2:44 PM
Hi,
Please expose the sub CDS as an association and filter it with odata query as below.
/sap/opu/odata/sap/TOP_CDS/<EntitySet>?$filter=param1 eq '11234' and <Association>/<Sub CDS column name> eq '111111'&$format=json
Check the odata call procedure more
OData Query Options | Mendix Documentation Section 4.5