cancel
Showing results for 
Search instead for 
Did you mean: 

Client side validation in Fiori elements

BrijeshGandhi
Explorer
0 Kudos

Hello ,

We have Fiori Elements following CAP.

We need to validate that out of two fields , one must have a data before save.

How can we do client side validation in Fiori Elements Application? Thanks !

View Entire Topic
MioYasutake
Active Contributor
0 Kudos

Hi brijesh.gandhi,

If your Fiori elements app is based on OData V4, you can use controller extension 'edit flow' from Flexible Programing Model. Edit flow has a method 'onBeforeSave' where you can add additional logic before saving the data.

https://sapui5.hana.ondemand.com/test-resources/sap/fe/core/fpmExplorer/index.html#/controllerExtens...

https://sapui5.hana.ondemand.com/#/api/sap.fe.core.controllerextensions.EditFlow%23methods/onBeforeS...

Best regards,

Mio