Adding Duplicate Data Alert Message
Adding Duplicate Data Alert Message
thebumba0712
Posts: 3Questions: 1Answers: 0
Hello,
I want to know how to make a pop up error message ('duplicate error') after after attempting to add a data with id that is already existing in the datatable. The script I created is already blocking data for being duplicated because I'm using a primary key in sql. I just need an error message to notify that there's already an existing id in the datatable.
Answers
Is this using Editor?
If so, you could validate that the key is unique - please see the example in this section of the manual.
If not, you would scan the data before adding the row, something like:
Colin
I'm sorry I have trouble understanding validation, should I validate outside the function or add else if condition and include row count
It would be worth looking at Editor - as all these conditions are handled there.
Colin