Skip to Content
0
Aug 30, 2018 at 07:36 AM

How to Validate /check the input field value exist in back end DB or not during live change?

819 Views Last edit May 24, 2020 at 11:27 AM 5 rev

Hi Experts,

I have requirement where in need to create the record from SAPui5 application,

For that we have Form and enterthe all details and submit to the data base.

Now i need to validate the first field value, if that value exist in the system/DB need to populate the error, like this record already exist during livechange.

For E.g., Input fields are as follows.

Empld : 121

EmpName : tom

On Change of Empid value need to check 121 record exist in the database or not.

Following are the blogs refereed for the solution but didn't get the solution for the same.

https://blogs.sap.com/2015/10/19/how-to-sapui5-user-input-validations/

https://blogs.sap.com/2015/11/01/generic-sapui5-form-validator/

As i"m new to SAPUI5.Please help me with the coding.

Thanks in advance.