Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 4557 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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.

Posted

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; ""]

  • Like 1
Posted

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.

Posted

Did you set your target field?

Posted

Done it!!!!!!! :shocked:

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.

Posted

Actually, it's the Get( filename ) function that broke. It stops at the first period in the name.

Posted

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. :^)

Posted

Sorry laretta, just simplyfied

Set Field [ table::field ; If ( IsEmpty ( TABLE::Field ) ; ValueListItems ( Get ( FileName ) ; "ValueListName" ) ; "" ).

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.