Skip to Content
1
Mar 13, 2019 at 01:58 PM

Fiori Transactional App using Header->Item functionality with UI.facet annotation

1519 Views

Hi experts,

I have a transactional app, not using draft functionality, with 3 consumption views: header, item and one for texts. I`m using the following annotations:

  • @ObjectModel.association.type: [#TO_COMPOSITION_ROOT, #TO_COMPOSITION_PARENT]
  • @ObjectModel.association.type: #TO_COMPOSITION_CHILD

When I created the Project, in WebIDE, via template List Report based on my OData from my Header CDS, I`ve chosen the main OData service and navigation to_Item, so leaving out the Text view.

In result I have the following scenario:

Both header and item have the “insert” functionality, but not the Text Table. Is this a normal behavior? Or did I forget something in my annotations?

My MDE file which annotates my header CDS view

@Metadata.layer: #PARTNER
@UI.headerInfo: { typeName: 'Handle Type - Header',
                  typeNamePlural: 'Handle Types - Header',
                  title: { type: #STANDARD, value: 'handletype'}}


annotate view YFIORI_FB_C_300 with
{
 
  @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 : 'one',
               position: 20
           },


           {
               label: 'Admin Data',
               id : 'AdminData',
               purpose: #STANDARD,
               parentId: 'GeneralInfo',
               type : #FIELDGROUP_REFERENCE,
               targetQualifier : 'two',
               position: 30
           },


           {
               label: 'Handle Part Type',
               id  : 'HPTYPE',
               purpose: #STANDARD,
               type : #LINEITEM_REFERENCE,
               targetElement: '_Item',
               position: 40
           },


           {
               label: 'Text Table',
               id  : 'HTTEXT',
               purpose: #STANDARD,
               type : #LINEITEM_REFERENCE,
               targetElement: '_HText',
               position: 50
           }]




  @UI: { fieldGroup     : [{ qualifier : 'one', position : 10 }] }
  @UI: { selectionField : [{ position: 10 }],
         lineItem       : [{ position: 10 }],
         identification : [{ position: 10, importance: #HIGH, label: 'Handle Type' }]}
  handletype;


  @UI: { fieldGroup     : [{ qualifier : 'one', position : 20 }]}
  @UI: { lineItem       : [{ position: 20, importance: #HIGH, label: 'Handle Cutout' }],
         identification : [{ position: 20, importance: #HIGH, label: 'Handle Cutout' }],
         textArrangement: #TEXT_LAST}
  handlecutout;




  @UI: { fieldGroup     : [{ qualifier : 'two', position : 10, label: 'Created on', importance: #HIGH }]}
  createdat;


  @UI: { fieldGroup     : [{ qualifier : 'two', position : 20, label: 'Created by', importance: #HIGH }]}
  createdby;


  @UI: { fieldGroup     : [{ qualifier : 'two', position : 30, label: 'Changed on', importance: #HIGH }]}
  changedat;


  @UI: { fieldGroup     : [{ qualifier : 'two', position : 40, label: 'Changed by', importance: #HIGH }]}
  changedby;
}

How can I enable the “insert” also on the Text Table (third facet)?

Thank you

Alex