@@ -23,6 +23,8 @@ view ChangeView as
23
23
entityID as objectID , // no clue why we have to rename this?
24
24
parentEntityID as parentObjectID , // no clue why we have to rename this?
25
25
changeLog .entityKey as entityKey , // flattening assoc path -> this is the main reason for having this helper view
26
+ changeLog .createdAt as createdAt ,
27
+ changeLog .createdBy as createdBy ,
26
28
}
27
29
excluding {
28
30
entityID ,
@@ -36,16 +38,17 @@ entity ChangeLog : managed, cuid {
36
38
serviceEntity : String @ title : ' {i18n>ChangeLog.serviceEntity} ' ; // definition name of target entity (on service level) - e.g. ProcessorsService.Incidents
37
39
entity : String @ title : ' {i18n>ChangeLog.entity} ' ; // definition name of target entity (on db level) - e.g. sap.capire.incidents.Incidents
38
40
entityKey : UUID @ title : ' {i18n>ChangeLog.entityKey} ' ; // primary key of target entity, e.g. Incidents.ID
39
- changes : Composition of many Changes
40
- on changes .changeLog = $self ;
41
+ createdAt : managed : createdAt ;
42
+ createdBy : managed : createdBy ;
43
+ changes : Composition of many Changes on changes .changeLog = $self ;
41
44
}
42
45
43
46
44
47
/**
45
48
* Attribute-level Changes with simple capturing of one-level
46
49
* composition trees in parent... elements.
47
50
*/
48
- entity Changes : managed {
51
+ entity Changes {
49
52
50
53
key ID : UUID @ UI . Hidden ;
51
54
keys : String @ title : ' {i18n>Changes.keys} ' ;
@@ -88,15 +91,14 @@ annotate ChangeView with @(UI: {
88
91
}],
89
92
},
90
93
LineItem : [
91
- {Value : objectID },
92
- {Value : entity },
93
- {Value : parentObjectID },
94
- {Value : attribute },
95
- {Value : valueChangedTo },
96
- {Value : valueChangedFrom },
97
- {Value : createdBy },
98
- {Value : createdAt },
99
- {Value : modification }
94
+ { Value : modification , @ HTML5 . CssDefaults : {width : ' 9em ' } },
95
+ { Value : createdAt , @ HTML5 . CssDefaults : {width : ' 11em ' } },
96
+ { Value : createdBy , @ HTML5 . CssDefaults : {width : ' 9em ' } },
97
+ { Value : objectID , @ HTML5 . CssDefaults : {width : ' 14em ' } },
98
+ { Value : parentObjectID , @ HTML5 . CssDefaults : {width : ' 14em ' } },
99
+ { Value : attribute , @ HTML5 . CssDefaults : {width : ' 9em ' } },
100
+ { Value : valueChangedTo , @ HTML5 . CssDefaults : {width : ' 11em ' } },
101
+ { Value : valueChangedFrom , @ HTML5 . CssDefaults : {width : ' 11em ' } },
100
102
],
101
103
DeleteHidden : true ,
102
104
});
0 commit comments