cancel
Showing results for 
Search instead for 
Did you mean: 

Cant update object page header

cbsmerveguel
Explorer
0 Kudos

Hello All,

Object page header title "Unnamed Object" does not get overwritten with below annotation. I would like to assign the "up_product" value to it. Could you please share your comments why would that be?

screenshot-2023-10-03-at-131119.png

schema.cds:

entity Product : managed 

{ key id            : UUID; 

key product       : String; 

productDetail : Composition of many 

{ key id               : UUID; 

plant            : String;  

planGroupKey     : String;  

planGroupCounter : String; } 

}

annotations.cds:

annotate service.Product.productDetail with @(UI.HeaderInfo:

{ TypeName : '{@i18n>productDetail}',

TypeNamePlural: '{@i18n>productDetails}',

Title : { $Type: 'UI.DataField', Value: up__product }

});

Best,

Merve

View Entire Topic
cbsmerveguel
Explorer
0 Kudos

Hi Ajit,

Thanks a lot for your reply. The "TypeNamePlural: '{i18n>productDetails}'" annotation effects the title of the table and not the header of the Object page. And if I delete the "@" sign, then it can't find the needed i18n property. So, I believe we need this "@" sign.