You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OData supports dynamic expressions in annotations.
879
-
For OData annotations you can use the "edm-json inline mechanism" by providing a [dynamic expression](https://docs.oasis-open.org/odata/odata-csdl-json/v4.01/odata-csdl-json-v4.01.html#_Toc38466479) as defined
931
+
Use the EDM JSON expression syntax only as fallback mechanism.
932
+
Whenever possible, use [expression-like annotation values](#expression-annotations) instead.
933
+
For the example below, simply write `@UI.Hidden: (status <> 'visible')`.
934
+
935
+
:::
936
+
937
+
In case you want to have an expression as value for an OData annotation that cannot be
938
+
written as a [CDS expression ](#expression-annotations),
939
+
you can use the "edm-json inline mechanism" by providing an [EDM JSON expression](https://docs.oasis-open.org/odata/odata-csdl-json/v4.01/odata-csdl-json-v4.01.html#_Toc38466479) as defined
880
940
in the [JSON representation of the OData Common Schema Language](https://docs.oasis-open.org/odata/odata-csdl-json/v4.01/odata-csdl-json-v4.01.html) enclosed in `{ $edmJson: { ... }}`.
881
941
882
942
Note that here the CDS syntax for string literals with single quotes (`'foo'`) applies,
@@ -901,19 +961,6 @@ is translated to:
901
961
</Annotation>
902
962
```
903
963
904
-
One of the main use cases for such dynamic expressions is SAP Fiori,
905
-
but note that SAP Fiori supports dynamic expressions only for
0 commit comments