Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

Error in search , Column Constrained to be unique, value 'already exist'

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-21-2010, 11:56 AM
aru aru is offline
Junior Member
 
Join Date: Feb 2010
Posts: 24
Default Error in search , Column Constrained to be unique, value 'already exist'

Hi,

I have a table of student. Which have lot of Fields. Around 15 fields Including Address, phone etc.

When I add record, then program is redirected to view Student details. Where we can search. Then I got search result.
Again I added student information. Then program is redirected to view student details. Then I again searched. Then I got an error
Column Address Constrained to be unique, value 'already exist' .
Actually table has only one Primary key. Address is not a key.

How can I debug this problem. I am expecting help and suggestion.

Thanks
Aru
Reply With Quote
  #2 (permalink)  
Old 02-21-2010, 02:25 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 3,827
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

Are you shure that you Adress column doesn't have the 'Unique' parameter set?

Otherwise it would be much easier for us to give you concrete advices if you post your code.

Best regards.
__________________
Klaus
Switzerland
Reply With Quote
  #3 (permalink)  
Old 02-21-2010, 03:33 PM
aru aru is offline
Junior Member
 
Join Date: Feb 2010
Posts: 24
Default

Yes,

In My table there is only a primary key. it is the only first field.
Reply With Quote
  #4 (permalink)  
Old 02-21-2010, 05:34 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 3,827
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

Wouldn't you post your source code, so we could have a close look to find what you problem is ?

Best regards.
__________________
Klaus
Switzerland
Reply With Quote
  #5 (permalink)  
Old 02-21-2010, 06:07 PM
derez's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Posts: 918
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default

aru
"Unique" is a property of each column, not connected to primery key.
If you set your address column to be unique, you'll get this message if you input an address which already exist in this column.
Check this as Klaus suggested.

see the help: AddCol (Column Type, Column Name, Width [,Unique])
__________________
David Erez
Ramat Hasharon, Israel
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Do pointers exist in basic4ppc? rmschreuder Questions (Windows Mobile) 7 11-25-2009 08:55 AM
ListView.dll - Getting the column selected DKnowles Questions (Windows Mobile) 1 01-12-2009 05:30 PM
error with search on the forum moster67 Forum Discussion 4 01-02-2009 07:01 PM
Column names in a table pmu5757 Questions (Windows Mobile) 2 05-07-2008 03:50 PM
Remove Column derez Bug Reports 1 11-01-2007 06:16 PM


All times are GMT. The time now is 05:33 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0