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

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

Recommended Posts

Posted

I have 48 check boxes each one is its own field. I have set them up to all be checkboxes with value on or off. But I have also made them all buttons running its very own very specific Script. Here is an example

() January

Ok when you click the check box above it is suppose to check it and start this script

Go to Layout ["Month Setup"(MonthAdvopt)]

New Window [Name: "jan05"; Heaight: 300; Width: 240; Top: 50; left:500)]

Go to Layout ["Jan05"(monthAdvopt)]

Preform Script ["Hide Status area"]

Set Field [Monthadvopt::month transfer; "january"]

Set Field [Monthadvopt::Year transfer; "2005"]

copy [select; monthadvopt::CustID Transfer]

Paste [select; Monthadvopt::CustID Jan05]

However It just runs script and does not mark the box at all. Here is next box same effect.

() February

Go to Layout ["Month Setup"(MonthAdvopt)]

New Window [Name: "Feb05"; Heaight: 300; Width: 240; Top: 50; left:500)]

Go to Layout ["Feb05"(monthAdvopt)]

Preform Script ["Hide Status area"]

Set Field [Monthadvopt::month transfer; "February"]

Set Field [Monthadvopt::Year transfer; "2005"]

copy [select; monthadvopt::CustID Transfer]

Paste [select; Monthadvopt::CustID Feb05]

And I have 48 of these to last till the year 2008.

What I need is a script or a way to check the boxes before it runs the script.

Hopefully you got enough info to understand what I am looking for now.

Posted

Ok once again I think I am confusing you the check box is either on or off not a value list at all. I mean do not get me wrong there are 48 value lists 1 for each checkbox but each checkbox is just that a (checkbox) on (x) or off () HOw do I get the check box to be checked. Ahh I think you may have hit something here do I have to specify the value list for the checkbox to be checked and if the answer is yes how do I script that function so I can do it 48 times.

Posted

I think I answered this once before. Your check has a vaule of 1 or 0. These are Boolean numbers for true or false. Use the "Not" operator, i.e., Set Field [Field; not Field] will toggle the value between 0 & 1. If it is 0 the result is 1, if it is 1 the result is 0.

Posted

Take a look at the sample file. I have made the button red outline and placed it over the checkbox. Clicking on the button runs the one line script toggle. Note there are really 2 checkboxes but I made the field small to show only the one of interest.

This topic is 7095 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.