dbTalk Databases Forums  

Number of repetition fields filled out

comp.databases.filemaker comp.databases.filemaker


Discuss Number of repetition fields filled out in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jokin
 
Posts: n/a

Default Number of repetition fields filled out - 11-29-2006 , 06:14 AM






Hi everybody.
Is there any way to obtain a number corresponding to the fields with
data in a repetition field?
For example, if I have a repetition field with 10 repetition fields but
I have data (information) in the first three, I would like to have the
value "3", if I have 5 out of 10, I would like to obtain the value "5".
I cannot find any function for that.
Thanks,
Jokin


Reply With Quote
  #2  
Old   
Bill Marriott
 
Posts: n/a

Default Re: Number of repetition fields filled out - 11-29-2006 , 06:52 AM






This is a more complex question than it seems.

If you are just trying to figure out how many values are in the repeating
field, you can use the Count() function. However, this will not care whether
the values are in repetitions 1,2,4 or 1,3,5 or 2,4,5.

If you are trying to determine which repetitions are being used and which
are empty, then the surest way is to use Get(CalculationRepetitionNumber).
For example, create a calculation field, "WhichRep" with the following
formula:

If(not IsEmpty(X);Get(CalculationRepetitionNumber);"")

Where X is the repeating field you're trying to analyze. Make sure you also
specify that the calculation repeats as much as X does. and then,

List(WhichRep) in a new calc field returns all those values into a single
field. But you may not need this second calc field, depending on how you're
going to use the info.

"Jokin" <joaquin.castilla (AT) gmail (DOT) com> wrote

Quote:
Hi everybody.
Is there any way to obtain a number corresponding to the fields with
data in a repetition field?
For example, if I have a repetition field with 10 repetition fields but
I have data (information) in the first three, I would like to have the
value "3", if I have 5 out of 10, I would like to obtain the value "5".
I cannot find any function for that.
Thanks,
Jokin




Reply With Quote
  #3  
Old   
Ursus
 
Posts: n/a

Default Re: Number of repetition fields filled out - 11-29-2006 , 12:47 PM



Jokin also might want to consider if a repeating field is the most
appropriate way to stare his data. He didn't give enough background, but
setting this one up using a relation might be easier.

Ursus


"Bill Marriott" <wjm (AT) wjm (DOT) org> schreef in bericht
news:E-GdnRApqeYfH_DYnZ2dnUVZ_tidnZ2d (AT) comcast (DOT) com...
Quote:
This is a more complex question than it seems.

If you are just trying to figure out how many values are in the repeating
field, you can use the Count() function. However, this will not care
whether the values are in repetitions 1,2,4 or 1,3,5 or 2,4,5.

If you are trying to determine which repetitions are being used and which
are empty, then the surest way is to use Get(CalculationRepetitionNumber).
For example, create a calculation field, "WhichRep" with the following
formula:

If(not IsEmpty(X);Get(CalculationRepetitionNumber);"")

Where X is the repeating field you're trying to analyze. Make sure you
also specify that the calculation repeats as much as X does. and then,

List(WhichRep) in a new calc field returns all those values into a single
field. But you may not need this second calc field, depending on how
you're going to use the info.

"Jokin" <joaquin.castilla (AT) gmail (DOT) com> wrote in message
news:1164802495.990556.254220 (AT) n67g2000cwd (DOT) googlegroups.com...
Hi everybody.
Is there any way to obtain a number corresponding to the fields with
data in a repetition field?
For example, if I have a repetition field with 10 repetition fields but
I have data (information) in the first three, I would like to have the
value "3", if I have 5 out of 10, I would like to obtain the value "5".
I cannot find any function for that.
Thanks,
Jokin






Reply With Quote
  #4  
Old   
Jokin
 
Posts: n/a

Default Re: Number of repetition fields filled out - 11-29-2006 , 08:40 PM



Count () is working perfect.
Thank you
Jokin

On Nov 29, 7:14 am, "Jokin" <joaquin.casti... (AT) gmail (DOT) com> wrote:
Quote:
Hi everybody.
Is there any way to obtain a number corresponding to the fields with
data in a repetition field?
For example, if I have a repetition field with 10 repetition fields but
I have data (information) in the first three, I would like to have the
value "3", if I have 5 out of 10, I would like to obtain the value "5".
I cannot find any function for that.
Thanks,
Jokin


Reply With Quote
Reply




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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.