on 2020 Jan 07 2:46 PM
Hello everyone, I am working on a Fiori Elements application which should have a list report page with sales orders and corresponding object pages for each sales order with their items.
This works, but I'm trying to add a field group to the object page, as shown here. I cannot make it happen to create the field groups or display any of them. I copied the exact code, so it seems as if the error is not in the code itself..?
I'm using Eclipse with ADT to create the cds views and metadata extensions, SAP Web IDE to create a template app, and Fiori 1809. The service is activated in the maint_services transaction. The annotation file is then successfully transferred from the backend to the front end and loaded within the app, as things like @UI.lineItem: [{ position: 20 }]
work perfectly.
I used
@UI.facet: [{
label : 'General Information',
id : 'GeneralInfo',
purpose: #STANDARD,
type : #COLLECTION,
position: 10
},
{
label: 'Basic Data',
id : 'BasicData',
purpose: #STANDARD,
parentId : 'GeneralInfo',
type : #FIELDGROUP_REFERENCE,
targetQualifier : 'BasicData',
position: 20
}]
and
@UI.fieldGroup: [{ position: 20, qualifier: 'BasicData' }]
PSPElement;
both inside of my metadata extension. Is this the correct approach? (Adding both to the cds view changed nothing..)
I feel like there is something basic I am missing, but I could not figure it out yet. Apart from basic annotations like lineitem and selectionfield, no other annotation worked, so the problem might not be exclusive to field groups.
Thanks for your help 🙂
Hi Simon,
I ddinlt go through your code completely, but you can check this blog, where I've used field group and ui.facet annotations for reference
https://blogs.sap.com/2019/02/08/myinbox-ui-generation-using-cds-views-and-ui.facet-annotation/
The issue most probably might be coming from the annotation file that gets generated in the ui5 list report template app. There it automatically generates the facet annotations in the ui annotation file. What you can do is, delete that annotaions in that file and make sure the ui.facet annotation is taken from the CDs view only, else update annotations in the ui annotation file
Thanks,
Mahesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Simon,
did you find a solution for this?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
add a label to the @UI.fieldGroup annotation. i.e.
@UI.fieldGroup: [{ label: 'PSP Element', position: 20, qualifier: 'BasicData' }]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
70 | |
10 | |
10 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.