-
Notifications
You must be signed in to change notification settings - Fork 7
Single attachment #760
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Single attachment #760
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -8,7 +8,7 @@ extend my.Books with { | |||||||||||||||||||||||||||||||||
| @UI.Hidden | ||||||||||||||||||||||||||||||||||
| sizeLimitedAttachments : Composition of many Attachments; | ||||||||||||||||||||||||||||||||||
| @UI.Hidden | ||||||||||||||||||||||||||||||||||
| mediaValidatedAttachments : Composition of many Attachments; | ||||||||||||||||||||||||||||||||||
| mediaValidatedAttachments : Composition of one Attachments; | ||||||||||||||||||||||||||||||||||
| @UI.Hidden | ||||||||||||||||||||||||||||||||||
| anotherMediaValidatedAttachments : Composition of many Attachments; | ||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||
|
|
@@ -42,9 +42,20 @@ annotate adminService.Books with @(UI.Facets: [{ | |||||||||||||||||||||||||||||||||
| $Type : 'UI.ReferenceFacet', | ||||||||||||||||||||||||||||||||||
| ID : 'AttachmentsFacet', | ||||||||||||||||||||||||||||||||||
| Label : '{i18n>attachments}', | ||||||||||||||||||||||||||||||||||
| Target: 'mediaValidatedAttachments/@UI.LineItem' | ||||||||||||||||||||||||||||||||||
| Target: 'mediaValidatedAttachments/@UI.FieldGroup' | ||||||||||||||||||||||||||||||||||
| }]); | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| annotate adminService.Books with @odata.draft.enabled; | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| annotate adminService.Books.mediaValidatedAttachments with @UI.FieldGroup: { | ||||||||||||||||||||||||||||||||||
| Data: [ | ||||||||||||||||||||||||||||||||||
| {Value: content}, | ||||||||||||||||||||||||||||||||||
| {Value: fileName}, | ||||||||||||||||||||||||||||||||||
| {Value: mimeType}, | ||||||||||||||||||||||||||||||||||
| {Value: status} | ||||||||||||||||||||||||||||||||||
| ] | ||||||||||||||||||||||||||||||||||
| }; | ||||||||||||||||||||||||||||||||||
|
Comment on lines
+51
to
+58
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Logic Error: In OData/Fiori Elements, entries in a Consider adding the explicit
Suggested change
Double-check suggestion before committing. Edit this comment for amendments. Please provide feedback on the review comment by checking the appropriate box:
|
||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| service nonDraft { | ||||||||||||||||||||||||||||||||||
| entity Books as projection on my.Books; | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: SNAPSHOT dependency committed to the sample project
1.4.0-SNAPSHOTis an unstable, non-reproducible build artifact. Consumers of this sample will get unpredictable results depending on what is currently published to their local/remote snapshot repository, and the build may break entirely once the snapshot is no longer available. This sample should reference a stable, released version (e.g., the previous1.3.3or the upcoming stable1.4.0once released).Consider reverting to the last stable release or pinning to the actual release version once it is published.
Double-check suggestion before committing. Edit this comment for amendments.
Please provide feedback on the review comment by checking the appropriate box: