Willie Sims
Posts: 0
Joined: Wed Jul 10, 2013 4:37 pm

Unique Database index Field

How can you stop duplicates in the Database? I know that I would need both a server side script but I am at a total loss as to how to go about it?

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Unique Database index Field

Hello Willie,

Please tell us in more detail what exactly you would like to do? Please tell us in more detail what exactly you would like to do? Post a screen shot. What index fields are duplicated?

Willie Sims
Posts: 0
Joined: Wed Jul 10, 2013 4:37 pm

Unique Database index Field

Hello, I have a Database with Truck Numbers in it I am trying to insure that no duplicate truck numbers are entered into the database. But there is no way to set the data field at Unique

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Unique Database index Field

Hi Willie,

You would need to create a service for reading this data. If there is no such record - add it.

Shawn
Posts: 0
Joined: Sat Jun 21, 2014 11:13 pm

Unique Database index Field

Trying to do the same .... how do I know if there are no records ?

Do I assume if the query succeeds it means there are records and failure means record is not present ?

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Unique Database index Field

Hi Shawn,

You can check a length of service response on service Success event. If it equals 0, then nothing is found:preif (data.length === 0){
alert("not found");
}/pre

Shawn
Posts: 0
Joined: Sat Jun 21, 2014 11:13 pm

Unique Database index Field

that worked. thanks katya !

Return to “Issues”