Noél Dubau Posted October 31, 2011 Posted October 31, 2011 Hello, First I don't know if I'm in the good section and hope you'll not be angry !!! I have a multivalued field which receives through a script value 1 in the case I click on ; supposing that empty is represented by underscore I have a succession looking like 111_ _ 1 _ 11 In a second step I need to get the list of 1 and empty ; but the function List(myMuliValued) returns only 111111 How can I either : replace the empty values by 0 before calling List ? fill all the values with 0 when creating the record ? Thanks for your ideas, Noël I know how to do wth a script, but I hoped in calculation....
comment Posted October 31, 2011 Posted October 31, 2011 Note: rubrique multivaluée = repeating field You could add a repeating calculation field = GetAsBoolean ( MyRepeatingField ) and point the List() function to it. Or you could use a custom function along the lines of: http://www.briandunning.com/cf/173 Or you could initialize the repeating fields to 0, using a lookup from a global repeating field. Or - and this could well be the best course to follow - do not use repeating fields to store data.
Noél Dubau Posted November 2, 2011 Author Posted November 2, 2011 Thanks for your very complete answer. The first proposition will be my choice ; so I haven't to use of external function. I don't undestand what you mean and how to "initialize the repeating fields to 0, using a lookup from a global repeating field". Indeed repeating fields are not the best thing in FileMaker ; but I was inspired by an example which you can download here (it's in french). Noël
comment Posted November 2, 2011 Posted November 2, 2011 so I haven't to use of external function. A custom function is not an external function. You have the Advanced version, so you shouldn't have any problems installing it (any version can use it). I don't undestand what you mean and how to "initialize the repeating fields to 0, using a lookup from a global repeating field". See the attached. LookUpR.zip I was inspired by an example which you can download here I don't think I can - it says something about being désolé over my lack of accès?
Recommended Posts
This topic is 4789 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now