Skip to Content
0

Unable to add local annotation file in SAP Web IDE

Jun 06, 2017 at 10:00 PM

331

avatar image

Hi,

I am working on a SAPUI5 web application which uses oDataService to bind data to smart controls.

I need to add annotations to my oDataService. I enabled the annotations in my .xsodata

annotations {
enable OData4SAP;
}

I read in one of the blog that currently XS Advanced does not support OData and we should use the local annotation file and SAP Web IDE Annotation Modeller to do the same.

On trying to add a local annotation file, I am getting the following error metadata cannot be loaded.

I also tried to directly update the local metadata.xml to include sap:label and other annotation properties but they don't affect either.

Could someone help me with a way to work with the annotations so as to be able to use the smart controls.

Thanks

capture.jpg (24.0 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Frank Schuler
Jun 07, 2017 at 05:29 AM
0

Hello Ekta,

If you like, please have a look at my respective blog:

How to make your OData entities work with the Fiori Overview Page and Cards leveraging the new SAP Web IDE annotation modeler

This should hopefully give you a good idea how local annotation files work.

Best regards

Frank

Share
10 |10000 characters needed characters left characters exceeded