Hello all,
I am developing an application where I am using an Analyitical smart table. This table is annotated locally and now I want to add a criticality status to a field depending on a condition.
The cds view has no OData.publish annotation and it is used as data reference in the SEGW OData service.
My criticality field in the analytical cds view looks like this:
@DefaultAggregation: #SUM manual_correction, @DefaultAggregation: #SUM summe, case when summe > 100 then 1 else 3 end as criticality_1, case when manual_correction < 100 then 3 else 1 end as criticality_2,
The annotations for those criticality values are used in the local annotation file as shown here:

This leads to the following result:

Summe shows the criticality state perfectly because there is a dataField with the value criticality_2 added to the lineItem. On the other hand, Manuelle Korrektur doesn't show any criticality state because there is no dataField with criticality_1 added to the lineItem (if I add it, it works as expected, like in the case of Summe field).
In both DataFields I have added the criticality bound with the path to the property. If I check the UI5 inspector, the DataField for Manuelle Korrektur shows that it has a property bound but with no value:

But for the Summe DataField, the property comes with a value:
If I check the lineItem model Information, I can see that no value is retrieved for criticality_1...

The funny/annoying thing is that if I switch to a TableType --> "Table", then everything works as expected... as shown below:

This makes no sense to me...
Therefore, my questions are:
How can I use this criticality field that I created in my analytical cds view inside my analytical smart table without having to add it as a dataField to the lineItem?
I don't want it to be shown, I just want it to be retrieved and applied as expected...
Is this a bug from the analytical table? Why does it work with Table and not with AnnalyticalTable (both smartTable)?
Thank you so much for your help.