check duplicate records

Questionscheck duplicate records
toki asked 12 years ago

Hi,

Is there any control option in PhpGrid to prevent duplicate records?

Regards….

2 Answers
Abu Ghufran answered 12 years ago

If you talking about duplicate entries on display, you can apply "distinct" sql command.
Alternate, you can also use $e["on_data_display"] events to block duplicates at application level. (refer custom-events.php)

For insert/update checks, you can have your server-side validation before posting. (refer server-validation.php)

toki answered 12 years ago

Hi Abu,

As you mention,

For insert/update checks, you can have your server-side validation before posting. (refer server-validation.php

server-validation.php example explain and works very nice that how it is possible to check duplicate records during inserting or editing records.

Thank you very much.
Regards….

Your Answer

4 + 2 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?