on 06-22-2022 12:27 AM
I am using filterBar as selectionFields and Table as LineItems in my below annotation.cds.
using service1 as service from './srv/xyz-service'
annotate service.XYZ with @(UI : {
selectionFields : [
OrderType
],
....
LineItem : [
{
$Type : 'UI.DataField',
Value : Batch,
Label : {$edmJson: {
$If: [{$Eq: [
{$Path: 'OrderType'}, 'Discrete']},
'{i18n>Label1}', // condition is true
'{i18n>Label2}', // condition is false/else-block
]}},
}]]
}
We have a requirement to update the label dynamically like above. Hence, using edmJson, is it possible to update it?
The above code is not giving results as expected for else block, as the view does not refresh the new i18n label based on condition.
User | Count |
---|---|
80 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.