on 2023 Sep 12 11:50 PM
Hello, I am making an application to generate an employee summary. For this, we have generated an object page using SAP Fiori, in which we are setting up the UI using only CDS annotations (not xml views). We have annotated this particular section below with "UI.FieldGroup" and the summary text with "UI.DataField"
But there is only one problem, we need the text inside that box to look more like an E-mail (centered and going across the whole box, as opposed to being boxed to the left corner).
something like this E-mail below.
I've looked through the documentation for both FieldGroup, all the DataField types and even looked into FormattedText, but i'm not seeing how to change the format of the DataField value text using CDS annotations.
Below is the current code. The text which needs to be formatted is "summarizedInfo" inside the value property of the DataField below.
I've attempted to use FormattedText, but i'm not quite sure how to set it up here to be used in a DataField and wasn't able to find a solution in the documentation. This is how I tried it (to no avail)
I tried using DataFieldForAnnotation to reference a separate UI.FieldGroup containing just the formatted text, but It doesn't display anything this way, i'm not even sure if it's possible to use FormattedText here as a DataField value.
Is the above approach possible and if so where am I going wrong? If not, is there any other way to format the summarizedText inside the value property?
Request clarification before answering.
User | Count |
---|---|
76 | |
21 | |
8 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.