Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Unique Field Validation in FMP7

 
   Database Forums (Home) -> FileMaker RSS
Next:  Identifying Connected Users in FMP7  
Author Message
ronald_h70

External


Since: Dec 31, 2004
Posts: 14



(Msg. 1) Posted: Wed Aug 10, 2005 7:55 am
Post subject: Unique Field Validation in FMP7
Archived from groups: comp>databases>filemaker (more info?)

Hi All,
I have a need to test a field at entry time to check if it is Unique. I know
there is a standard Unique checkbox in Field Validation, but I want to
validate for uniqueness using the Calculate box because I want the
uniqueness tested only under certain conditions - not a blanket test.
The problem is that I can't find a Unique function for field testing. I can
use the Lookup function on a Self Joining field, but that does not provide
the same flexibility as the standard Unique test.
Is there a separate Unique function, or how can I simulate it.

Regards Ron H.

 >> Stay informed about: Unique Field Validation in FMP7 
Back to top
Login to vote
Remi-Noel Menegaux

External


Since: Apr 21, 2005
Posts: 98



(Msg. 2) Posted: Wed Aug 10, 2005 12:55 pm
Post subject: Re: Unique Field Validation in FMP7 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

You may put a self relationship based on that field and set in its
definition a calculation SUM of it having to be always 1.
Remi-Noel


"Ron H." a écrit :
> Hi All,
> I have a need to test a field at entry time to check if it is Unique.
> I know there is a standard Unique checkbox in Field Validation, but I
> want to validate for uniqueness using the Calculate box because I want
> the uniqueness tested only under certain conditions - not a blanket
> test.
> The problem is that I can't find a Unique function for field testing.
> I can use the Lookup function on a Self Joining field, but that does
> not provide the same flexibility as the standard Unique test.
> Is there a separate Unique function, or how can I simulate it.
>
> Regards Ron H.
>

 >> Stay informed about: Unique Field Validation in FMP7 
Back to top
Login to vote
ronald_h70

External


Since: Dec 31, 2004
Posts: 14



(Msg. 3) Posted: Thu Aug 11, 2005 8:55 am
Post subject: Re: Unique Field Validation in FMP7 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi Remi,
I am not sure how this is going to test that a text field is unique
especially when you consider the 2 scenarios of uniqueness
1. The field to be entered does not have similar data in the same position
elsewhere within the table
2. The field contents exist once in the table and that same unique value is
overwritten into that same position
Could you explain how to use SUM to test for this
Best Regards Ron H.

"Remi-Noel Menegaux" wrote in message

> You may put a self relationship based on that field and set in its
> definition a calculation SUM of it having to be always 1.
> Remi-Noel
>
>
> "Ron H." a écrit :
>> Hi All,
>> I have a need to test a field at entry time to check if it is Unique. I
>> know there is a standard Unique checkbox in Field Validation, but I want
>> to validate for uniqueness using the Calculate box because I want the
>> uniqueness tested only under certain conditions - not a blanket test.
>> The problem is that I can't find a Unique function for field testing. I
>> can use the Lookup function on a Self Joining field, but that does not
>> provide the same flexibility as the standard Unique test.
>> Is there a separate Unique function, or how can I simulate it.
>>
>> Regards Ron H.
>>
>
>
 >> Stay informed about: Unique Field Validation in FMP7 
Back to top
Login to vote
Remi-Noel Menegaux

External


Since: Apr 21, 2005
Posts: 98



(Msg. 4) Posted: Thu Aug 11, 2005 3:55 pm
Post subject: Re: Unique Field Validation in FMP7 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi,
I don't understand your item 1. A field contents may be different from
record to record. Then saying you want its contents to be 'unique' means
you want to have each record to hold a contents of that field that does
not exist in any of the other records. Period.
If you want to have it 'unique' when compared to another field contents,
that is another story - not treated here -, as both fields are on the
same record.
Item2 is obvious : if you want the field contents to be unique among the
records, you sure want this to be true at any stage when filling its
contents.
Now, you are right with your last sentence : one should not use SUM but
COUNT.
Actually there are 2 ways to insure the uniqueness of the contents of a
given field :
1 - when defining FieldA set Control / Unique, and Strict respect of the
conditions, and message like : "There are duplicates values of FiledA !!
Please correct.
2 - define FieldA as a regular text field. Create a self relationship on
FieldA. Create a field named '#_of_dupl' =
COUNT(selfrelationship::FieldA) and another field named Warning =
CASE(#_of_dupl <= 1; ""; "DUPLICATE")
Remi-Noel


"Ron H." a écrit dans le message de
gmHKe.81130$oJ.12203@news-server.bigpond.net.au...
> Hi Remi,
> I am not sure how this is going to test that a text field is unique
> especially when you consider the 2 scenarios of uniqueness
> 1. The field to be entered does not have similar data in the same
> position elsewhere within the table
> 2. The field contents exist once in the table and that same unique
> value is overwritten into that same position
> Could you explain how to use SUM to test for this
> Best Regards Ron H.
>
> "Remi-Noel Menegaux" wrote in message
>
>> You may put a self relationship based on that field and set in its
>> definition a calculation SUM of it having to be always 1.
>> Remi-Noel
>>
>>
>> "Ron H." a écrit :
>>> Hi All,
>>> I have a need to test a field at entry time to check if it is
>>> Unique. I know there is a standard Unique checkbox in Field
>>> Validation, but I want to validate for uniqueness using the
>>> Calculate box because I want the uniqueness tested only under
>>> certain conditions - not a blanket test.
>>> The problem is that I can't find a Unique function for field
>>> testing. I can use the Lookup function on a Self Joining field, but
>>> that does not provide the same flexibility as the standard Unique
>>> test.
>>> Is there a separate Unique function, or how can I simulate it.
>>>
>>> Regards Ron H.
>>>
>>
>>
>
>
 >> Stay informed about: Unique Field Validation in FMP7 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
disabling field validation - Is there any way to turn off field validation /only/ when in Find mode? (i.e. so the user can search for anything in the field, but is restricted in what they can enter as data.) FMP7 Mac. TIA

Version 7/8 field validation - So I'm doing post-conversion from my large v6 solution with the excellent help of MetaDataMagic and I have just got to my first real nasty set of differences. So apparently to make v8 a little less of a dog, they aren't doing field validation checks on....

Field validation and value lists - I have a field, which can be based on different value lists, depending on the context (on one layout it uses value list A, on another it uses value list B, etc.). My problem is how to validate it. The value in the field must be a member of the VL that....

Field validation when window closes - (FM9, PC) Is there a way of forcing FM to validate the contents of a field when the current window closes? The validation (by calculation, using the Scriptfire plugin) works fine when the user tries to enter data to the field, and I've set the field to...

unique field number - Hi, I am wondering how to do the calculation in FM6.0 for one database, how to count the unique field numbe. for example in one database, there is only field called textField, and there are 10 records, 5 records with textField = "w" 2 rec...
   Database Forums (Home) -> FileMaker All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]