on 10-13-2022 6:00 AM
Hi Team,
I'm inserting the data into a Table using Simple form. If I give the data two times, it needs to neglect it or else I need to get a alert.
Could anyone please help me.
Regards,
Jakir
Hi jakir03 ,
You can do this in many ways based on the scenario. It's question of validation. On any business case you should have a validation at the client-side and server-side to ensure data quality.
Here in your example, the table is backed by a JSONModel, hence you can add validation in the onAdd function to see if already exists in the model.
if(isValid(nObject)){
oModelData.push(nObject);
}
Thanks,
Sachin Srambickal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
11 | |
10 | |
8 | |
8 | |
6 | |
6 | |
6 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.