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
If you have a Fiori Element application, the CDS plugin automatically provides and generates a view `sap.changelog.ChangeView`, the facet of which is automatically added to the Fiori Object Page of your change-tracked entities/elements. In the UI, this corresponds to the *Change History* table which serves to help you to view and search the stored change records of your modeled entities.
168
177
169
-
### Customizations
178
+
## Customizations
179
+
180
+
### Altered table view
170
181
171
-
The view can be easily adapted and configured to your own needs by simply changing or extending it. For example, let's assume we only want to show the first 5 columns in equal spacing, we would extend `srv/change-tracking.cds` as follows:
182
+
The *Change History*view can be easily adapted and configured to your own needs by simply changing or extending it. For example, let's assume we only want to show the first 5 columns in equal spacing, we would extend `srv/change-tracking.cds` as follows:
172
183
173
184
```cds
174
185
using from '@cap-js/change-tracking';
@@ -190,6 +201,24 @@ In the UI, the *Change History* table now contains 5 equally-spaced columns with
190
201
191
202
For more information and examples on adding Fiori Annotations, see [Adding SAP Fiori Annotations](https://cap.cloud.sap/docs/advanced/fiori#fiori-annotations).
192
203
204
+
### Disable lazy loading
205
+
206
+
To disable the lazy loading feature of the *Change History* table, you can add the following annotation to your `srv/change-tracking.cds`:
207
+
208
+
```cds
209
+
using from '@cap-js/change-tracking';
210
+
211
+
annotate sap.changelog.aspect @(UI.Facets: [{
212
+
$Type : 'UI.ReferenceFacet',
213
+
ID : 'ChangeHistoryFacet',
214
+
Label : '{i18n>ChangeHistory}',
215
+
Target: 'changes/@UI.PresentationVariant',
216
+
![@UI.PartOfPreview]
217
+
}]);
218
+
219
+
```
220
+
221
+
The system now uses the SAPUI5 default setting `![@UI.PartOfPreview]: true`, such that the table will always shown when navigating to that respective Object page.
0 commit comments