cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to refresh backend service metadata and annotation files in VSCode Fiori Tools?

Former Member
10,615

Hi,

When generating a fiori elements app with fiori tools in VSCode the project is built based on the backend service metadata and annotations xml. Super.

But what if I want to change the UI annotations? Should I edit the xml in VSCode, or the CDS in the backend?

If I change CDS annotations, is there a way to "reload" the changes into my existing VSCode project or do I need to regenerate the app from scratch?

Thanks,

T

Accepted Solutions (0)

Answers (2)

Answers (2)

Steve-Kay
Participant

In addition to the above response on the manifest ( click on the manifest.json-->Click on Open Service Manager-->Click on refresh-->Sync ), in order to have the Auto-complete in the annotations file work, close then open Vs Code to have the changes reflected.

NooruBohra
Active Participant
0 Kudos

Hi Stephen,

Do we have the similar Sync button in SAP Business Application Studio? I'm struggling with it.

Steve-Kay
Participant
0 Kudos

Hi Nooruddin,

Sorry, I haven't used SAP BAS so I can't confirm that.

cmilkau
Participant
0 Kudos

This will refresh metadata, but not annotations. OP asked about both of these.

stefan_schreck
Product and Topic Expert
Product and Topic Expert
0 Kudos
cmilkau
Participant
0 Kudos

Where exactly on that page? I see adding local files, changing the hierarchy, activate/deactivate annotations. There is no mention of updating.

stefan_schreck
Product and Topic Expert
Product and Topic Expert
0 Kudos

Well, to be precise, the links describes how to refresh metadata or annotation files if you have updated them originally in the backend. Metadata always have to be edited at the original resource (being CAP or RAP based, remote CDS or local CDS).
Annotations can be redefined in a local file if originated from a backend system. But this is a per project or app decision: it might also make sense to adjust in the backend if you want to share the new definition with other apps.

N_Parag_Senapati
Explorer
0 Kudos

For BAS - Check in manifest.json.

Remove the localURI in the datasource for the service, metadata and annotation. This will force the app to load the metadata and annotations from the backend service and not refer to the local files.

N_Parag_Senapati
Explorer
0 Kudos

For BAS - Check in manifest.json.

Remove the localURI in the datasource for the service, metadata and annotation. This will force the app to load the metadata and annotations from the backend service and not refer to the local files.