Skip to Content
0

Save As Draft in SAPUI5

Mar 02 at 07:13 AM

172

avatar image

Hello ,

I have created a SAPUI5 page and hosted in FLP. I want to provide an option to save the form temporary (like save as draft ) so that user can use that form next time. Can someone please suggest on how can I achieve this?

Regards,

Faddy

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Sharath M G Mar 02 at 01:34 PM
1

For Draft, the guidelines link addresses many scenarios( https://experience.sap.com/fiori-design-web/draft-handling/ )

However, the fundamental need to save the user data somewhere instead of updating the actual backend model.

In my opinion, you can choose the local browser cache or use a temporary save using the service.

Regards,

Sharath

Share
10 |10000 characters needed characters left characters exceeded
Andrea Basalo Balado
Mar 02 at 09:49 AM
1

Hello,

For general information, refer to the following Fiori Design Guidelines about Draft Handling.

If you are using Fiori Elements you can achieve this easily through annotations, Preparing OData Services.

If you want to include the functionality in a free-style SAPUI5 app, you can refer to DraftController sap.ui.generic.app.transaction.DraftController.

Regards,

Andrea

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Hello Andrea,

Thanks for your response.

Does this mean, Save As Draft can be achieved only with the help of an oData service. I was thinking whether there is any APIs by which we can save the data to the user preference in the gateway system itself.

Also I am not finding a good example for the solution you have provided. Did you find any..

Regards,

Faddy

0
SAP Learner Mar 05 at 10:09 AM
0

Hello..

So even in the back end system also, how this can be achieved. Should we create separate table for save as draft (Where many UI fields which correspond to mandatory fields in DB table are blank) and actual save?

Does anyone have a sample source code?

Regards,

Faddy

Share
10 |10000 characters needed characters left characters exceeded