Skip to content

Commit 55e76c0

Browse files
authored
Merge pull request mendix#10453 from joostverhoog/Collection(primitive)-type-params-support-in-odata-action
Documentation for the support of Collection(primitive) attributes in OData
2 parents 907cbdb + 9aec900 commit 55e76c0

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

content/en/docs/refguide/modeling/integration/odata-services/consumed-odata-services/consumed-odata-service-requirements.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ The most commonly used attribute types can be used in your app. The types of the
8888
| Enumeration | Enumeration |
8989
| Int64 | Long |
9090
| String, Guid | String |
91+
| Collection | List (see [Collection Properties](#collection-properties) below) |
9192
| (Other) | (Ignored) |
9293

9394
¹ In Studio Pro, Booleans cannot be null. If the service returns null, the app will use the value `false`.
@@ -122,6 +123,22 @@ The binary data format is supported in the form of *media entities*. When a medi
122123

123124
Currently, the binary data can only be accessed by Java actions.
124125

126+
### Collection Properties {#collection-properties}
127+
128+
{{% alert color="info" %}}
129+
Collection properties were introduced in [Studio Pro 11.6.0](/releasenotes/studio-pro/11.6/).
130+
{{% /alert %}}
131+
132+
Entity type properties that are a collection of a supported attribute type are supported through the use of an associated non-persistable entity.
133+
134+
Take, for example, a `Product` entity type has an attribute `Tags` with type `Collection(Edm.String)`. The resulting domain model looks as follows:
135+
136+
{{< figure src="/attachments/refguide/modeling/integration/odata-services/consumed-odata-service/collection-of-primitives.png" alt="A product entity with an associated ProductTag entity. The ProductTag entity has a Tag attribute" width="531" class="no-border" >}}
137+
138+
For entity sets, these properties are not supported. This means they can only be used in parameters and return values of external actions.
139+
140+
Collection properties are not supported for services using OData v3.
141+
125142
### Associations
126143

127144
An OData v3 association can only be used if it has two ends.
8.13 KB
Loading

0 commit comments

Comments
 (0)