cancel
Showing results for 
Search instead for 
Did you mean: 

How to add ValueList in CAP CDS for a FIORI ELEMENTS App

Rohit_Patil
Explorer
0 Kudos

I have a CAP project which has one table and is a respective OData service. I have created a list object FIORI ELEMENTS App, so first, it gives me all the records, and then there is a create button that will open a form to create a new record in that table.

Now in that form where I am filling the data, I want Add Courses fields to get a value list from an external service which I have already defined

how I achieve that,

thank you.

Accepted Solutions (1)

Accepted Solutions (1)

Epena
Participant
0 Kudos

Hello rohit_patil ,

I'm not sure I understand. Do you want the value help for "Add course" field to come from the data stored in your "Courses" entity?

If that's the case, there is an annotation for value lists:

https://cap.cloud.sap/docs/advanced/fiori#convenience-option-cdsodatavaluelist

Regards.

Rohit_Patil
Explorer
0 Kudos

Thanks sir right I want this but I didn't understand how to apply can you help me?

Answers (1)

Answers (1)

Ivan-Mirisola
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi ,

Have you tried to use the annotation for Value List Entities:

https://cap.cloud.sap/docs/advanced/fiori#value-help-support

Best regards,
Ivan

Rohit_Patil
Explorer
0 Kudos

Thank you sir