Achineche Posted June 1, 2012 Posted June 1, 2012 I'm trying to accomplish a script to select/unselect all my check boxes at once. I have all months, sometimes I need to ckech just a few but some others I'll need to check the whole year and I'd preffer to check only one box than twelve, lol. Any advice of how to do it? Thank you.
doughemi Posted June 1, 2012 Posted June 1, 2012 Remember a checkbox field is just text field with a return-separated list of the checked boxes. So to check all boxes, all you need to do is Set Field[YourCheckboxField; "January¶February¶March¶April¶May¶June¶July¶August¶September¶October¶November¶December"] To unselect all, SetField[YourCheckboxField; ""] 1
Achineche Posted June 1, 2012 Author Posted June 1, 2012 Thank you doughemi, I'm working on that. Set Field [ValueListItems ( Get ( FileName ) ; "Months" )] But doesn't work, and I don't know what I'm doing wrong.
Achineche Posted June 2, 2012 Author Posted June 2, 2012 Done it!!!!!!! First didn't work well because my file name had an "unusual name?" (i.e. filename v.10.fp7). Curious, get (filename) worked well but valuelistitem didn't. Set Field [ If ( IsEmpty ( TABLE::Field ) ; ValueListItems ( Get ( FileName ) ; "ValueListName" ) ; "" ). Thanks for your help.
Vaughan Posted June 2, 2012 Posted June 2, 2012 Actually, it's the Get( filename ) function that broke. It stops at the first period in the name.
LaRetta Posted June 2, 2012 Posted June 2, 2012 And your last calc STILL doesn't show a field being set ... There are two parts to a set field ... The field to set and then the calculation. :^)
Achineche Posted June 2, 2012 Author Posted June 2, 2012 Sorry laretta, just simplyfied Set Field [ table::field ; If ( IsEmpty ( TABLE::Field ) ; ValueListItems ( Get ( FileName ) ; "ValueListName" ) ; "" ).
Recommended Posts
This topic is 4557 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