Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ annotate Attachments with @UI: {
{Value: note}
]
} {
content @Core.ContentDisposition: { Filename: fileName, Type: 'inline' };
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, das hatte ich ganz uebersehen. Es hatte bisher aber nicht funktioniert, der fileName wurde nicht uebertragen. Mit dieser Annotation hat es dann geklappt. Die SDM Kollegen haben danach gefragt.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dann kann man es vielleicht an der anderen Stelle löschen, aber wenn es so funktioniert, dann approve ich mal

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wie ist das mit Annotations bei Aspekten, werden die auch vererbt ? Bisher war diese Annotation beim Aspect MediaData. Hatte das frueher schon mal funktioniert ?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ich dachte sie werden vererbt, aber wenn das nicht richtig funktioniert, dann sollten wir alle an den Attachment-Aspect packen, was denkst du?

Copy link
Collaborator Author

@mofterdinger mofterdinger Oct 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Scheint ein Bug oder Feature im cds compiler zu sein. Nur wenn ich die Anntation nochmal am Attachment Aspekt mache, bekomme ich die Annotations auch im EDMX zu sehen:

      <Annotations Target="AdminService.Books_covers/content">
        <Annotation Term="Core.ContentDisposition">
          <Record Type="Core.ContentDispositionType">
            <PropertyValue Property="Filename" Path="fileName"/>
            <PropertyValue Property="Type" String="inline"/>
          </Record>
        </Annotation>
        <Annotation Term="Core.MediaType" Path="mimeType"/>
        <Annotation Term="Common.Label" String="{i18n>attachment_content}"/>
      </Annotations>

Das EDMX ist allerdings relevant fuer das Fiori UI.

Ich merge deswegen diesen PR und lasse die Annotation auch am MediaData Aspekt stehen.

note @(title: '{i18n>attachment_note}');
modifiedAt @(odata.etag);
}
Expand Down