Closed Nidhi-Sehgal closed 2 years ago
@Nidhi-Sehgal ,
I tried it with the risk management service from our tutorial, and it gets created with a create button. Can you try it with the service in our tutorial?
Best regards, Manju
Hi Manju,
I tried generating the UI from both Business Application Studio as well as using VS Code locally. However, in both the cases, there is no create button in the generated UI.
Is there a property that I need to set at the DB or SRV layer in the '.cds' files in CAP application that will trigger the appearance of a 'Create' button.
Thanks in advance for your response.
Regards, Nidhi Sehgal
@Nidhi-Sehgal ,
In risk management this is done in the file srv/risk-service.cds
where we enable drafts for the Risks
entity using the annotation @odata.draft.enabled
. You can read more about it in the CAP documentation here.
Best regards, Manju
Hi @manjuX ,
Thanks for your response.
Does this imply that CAP applications will always be draft enabled? Is there a possibility that I can have a CAP application in which I can create records without having draft mode?
If yes, then how can it be achieved?
Thanks.
Regards, Nidhi Sehgal
Hi @manjuX
Your response is awaited.
Regards, Nidhi Sehgal
Hi @Nidhi-Sehgal,
This question falls outside the scope of our tutorial, please check the community support site for general questions regarding Fiori elements with the tag SAP Fiori Elements.
Best Regards, Manju
Is there any change in the steps to generate the UI?