SAP-samples / cloud-cap-risk-management

The SAP Risk Management example applications show how to deploy a CAP (SAP Cloud Application Programming model) application to Cloud Foundry and Kyma.
Apache License 2.0
67 stars 94 forks source link

Missing 'Create' option after generating 'List Report Object Page' using Fiori: Open Application Generator. #23

Closed Nidhi-Sehgal closed 2 years ago

Nidhi-Sehgal commented 2 years ago

issue

Is there any change in the steps to generate the UI?

smahati commented 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

Nidhi-Sehgal commented 2 years ago

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

smahati commented 2 years ago

@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

Nidhi-Sehgal commented 2 years ago

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

Nidhi-Sehgal commented 2 years ago

Hi @manjuX

Your response is awaited.

Regards, Nidhi Sehgal

smahati commented 2 years ago

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