cancel
Showing results for 
Search instead for 
Did you mean: 

How to validate the input value in back-end system in fiori app?

former_member189009
Active Participant
0 Kudos

Dear friends,

      I create a custom fiori app to creat sale order, when I input sold-to number I want to validate it's value in my back-end system then return a bunch value of ship-to number for user to select, so any suggestion about this case or is there any example about back-end validation of the front-end input value ?

Thanks for your sincerely answer!

Zhang

Accepted Solutions (0)

Answers (1)

Answers (1)

Jocelyn_Dart
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Zhang

Plenty of examples in the standard apps.

Depends how far you want to go and how it relates to your scenario.

If you want a simple option you could use an OData function import to validate and return the list of ship-to.  

Or you could include it in your OData Model as a Navigation relationship between Sold-To and Ship-To.  Given your OData Model looks like its based on Sales Order, this might make the best sense.

Also depends how many ship-to's you might return.

If there is potentially a large number you can go full on value help through a Smart Template - check the Smart Controls Tutorial in

SAPUI5 SDK - Demo Kit

You might want to rethink your controls choice.  A combo box would be better for Ship-To.

A placeholder in your Sold-To or Ship-To or both could be used to reinforce that your user needs to enter the sold-to value first.

Rgds,

Jocelyn