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
Associations and compositions can be added as columns to a table by adding them to the `@UI.LineItem` annotation. If the property should only be available via the personalization settings, an additional configuration in the [manifest.json](app/listreport-objectpage/webapp/manifest.json) is necessary.
2141
+
2142
+
```cds
2143
+
@UI.LineItem : [
2144
+
{
2145
+
//Search-Term: #NavPropInAdaptability
2146
+
Label : 'Navigation field only available via settings',
2147
+
Value : association2one.country_code,
2148
+
}
2149
+
]
2150
+
```
2151
+
2152
+
Setting the `availability` property to `Adaptation`, will only bring up the property in the table settings for the user add it if necessary.
2153
+
2154
+
```json
2155
+
"RootEntityListReport": {
2156
+
...
2157
+
"options": {
2158
+
"settings": {
2159
+
...
2160
+
"controlConfiguration": {
2161
+
"@com.sap.vocabularies.UI.v1.LineItem": {
2162
+
...
2163
+
"columns": {
2164
+
"DataField::association2one::country_code": {
2165
+
"availability": "Adaptation"
2166
+
}
2167
+
}
2168
+
},
2169
+
...
2170
+
},
2171
+
...
2172
+
}
2173
+
}
2174
+
}
2175
+
```
2176
+
2177
+
The ID of the column follows the pattern `DataField::<path>`, with the dots in the navigation path being replaced by two ':', e.g. `DataField::association2one::country_code`.
0 commit comments