cancel
Showing results for 
Search instead for 
Did you mean: 

Create button not visible

martag1
Explorer
0 Kudos
3,868

I'm trying to add fiori annotations so I can add new countries codes to Countries entity ( from'@sap/cds/common) .

Problem is that in Fiori preview I cannot see create button :

using CatalogService from './cat-service.cds';

annotate CatalogService.Countries with @( Capabilities.InsertRestrictions.Insertable : true, // Object Page Section UI.LineItem : [ { $Type : 'UI.DataField', Label : '{bi18n>objectType}', Value : code, ![@UI.Importance] : #High }, { $Type : 'UI.DataField', Label : '{bi18n>accessoryId}', Value : name, ![@UI.Importance] : #High }
]);What can I do to enable create button?
View Entire Topic
msiblyb
Explorer
0 Kudos
Insert the following code in your schema.cds file

@odata.draft.enabled
@odata.draft.bypass
entity entityname {
fields...
...
}


Deploy your code...
Run...