admin 9/25/2014 | |
If you import record with primary key field value that is already in the database - it will update the existing record in this case. |
W
|
wrjost author 9/25/2014 |
Problem is that I have two different primary key fields: |
admin 9/25/2014 | |
This doesn't make any sense. The imported file cannot have any primary keys, this is just a set of records. Only database table can have a primary key field. |
W
|
wrjost author 9/26/2014 |
I'm going for your second suggestion, Sergey, by inserting this code as the BeforeInsert event: //********** Check if specific record exists ************
|
admin 9/26/2014 | |
You won't see anything outputted from this event as it's executed via AJAX (you can only see it via Chrome Developer Tools or via Firebug). Also, according to the manual you need to return true if you want to proceed with adding new record and false if you don't. global $conn; |