hartmut Posted April 12, 2012 Posted April 12, 2012 Hi I have a value list of ages it is: All 0-4 5-10 10-14 14-19 20-30 30-40 40-50 50-60 60-70 70-80 80-90 90-100 100-110 I set it up as a check box option in the field entry My questing is : How to I use a calculation to set the field with several options selected? In my script I used this: Questions::age&"40-50"&"50-60" The script is called middle ages because I wanted to select all those groups at once. I can't seem to get this to happen. I would appreciate your help. Thanks
mr_vodka Posted April 12, 2012 Posted April 12, 2012 Try Set Field [ YourField; List ( "40-50"; "50-60" ) ]
hartmut Posted April 13, 2012 Author Posted April 13, 2012 I tried it but it doesn't work. There is an error. I don't know how to correct it. [ Questions::question; List ( "40-50"; "50-60" ) ] is the calc I used in the set field.
Vaughan Posted April 13, 2012 Posted April 13, 2012 Was List() in FMP 9? Try: inserting the literal text "40-50¶50-60". The pilcrow character is a carriage return and it separates the different values.
mr_vodka Posted April 14, 2012 Posted April 14, 2012 IIRC it came out in 8.5 I cant see it, please post it here.
hartmut Posted April 14, 2012 Author Posted April 14, 2012 Sorry you couldn't see it I used [ Questions::question; List ( "40-50"; "50-60" ) ] The error was A number, text constant, field name or “(” is expected here. the first "[" was highlighted
Lee Smith Posted April 14, 2012 Posted April 14, 2012 Sorry you couldn't see it The forum accept tiff files, why didn't you post it here?
hartmut Posted April 14, 2012 Author Posted April 14, 2012 I did post it as a tiff file. Somehow it didn't work.
Lee Smith Posted April 14, 2012 Posted April 14, 2012 Hi hartmut As you might have noticed, I having been testing how to attach a tiff image. I forgot that we have changed sites and software since I last did this. IIRC, you used to be able to paste a TIF image directly into your post. If you do that now you get the crazy URL that takes you nowhere. If you attach it as a file, it's downloaded like a FileMaker file. If you convert the TIF to a PNG, and attach it as a file, then it will show in your post. Hope this helps Lee
hartmut Posted April 14, 2012 Author Posted April 14, 2012 I converted it to a png but I can't see how to attach it to the post.
Lee Smith Posted April 14, 2012 Posted April 14, 2012 Like you would if it was a FileMaker file. Only you don't need to zip it. Step 1 Find the file on your hard drive. Step 2 Do not use the Quick Reply, BUT instead, choose the More Reply Option Step 3 Click on Attached Files and this will take you to your hard drive to locate your file that you want to attach and that you previously zipped. Select the file, and then click Attach This File, and then click Add Reply.
bcooney Posted April 14, 2012 Posted April 14, 2012 I think that you've mistaken what goes in the calc dialog. List ( "40-50"; "50-60" ) is the only part that goes in the calc dialog.
Lee Smith Posted April 14, 2012 Posted April 14, 2012 Try Set Field [ YourField; List ( "40-50"; "50-60" ) ] I think that you've mistaken what goes in the calc dialog. List ( "40-50"; "50-60" ) is the only part that goes in the calc dialog. I tried it but it doesn't work. There is an error. I don't know how to correct it. [ Questions::question; List ( "40-50"; "50-60" ) ] is the calc I used in the set field. As you see it in the Script Step, does it look like this? Set Field [ Questions::Questions; List ( "40-50"; "50-60" ) ] if not, how does it differ?
hartmut Posted April 15, 2012 Author Posted April 15, 2012 List ( "40-50"; "50-60" ) that works - that was all i needed in the calc dialog box. i didn't understand thanks everyone
Recommended Posts
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