dbTalk Databases Forums  

Query regarding the Check Box field

comp.databases.filemaker comp.databases.filemaker


Discuss Query regarding the Check Box field in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Nick Marshall
 
Posts: n/a

Default Query regarding the Check Box field - 07-04-2005 , 07:14 AM







Hi,

I am trying to display a number of results from a Case command in a Check
Box field and Iım experiencing some problems.

What I want to happen is when a date is entered into a field (sampledate_1)
an ³x² is automatically entered into a Check Box field (called
results_check) next to the relevant field title. Then, when another date is
entered into another one of the date fields (sampledate_2), another ³x² is
marked next to the relevant ³results_check² field, and so on until theyıre
all checked.

Iım unsure as to what calculation I will need to use as the Case command
only seems to display 1 true result at a time.

Thanks in advance,




Nick






Reply With Quote
  #2  
Old   
Bill
 
Posts: n/a

Default Re: Query regarding the Check Box field - 07-04-2005 , 08:01 AM






In article <BEEEE6BB.8297%nick (AT) span (DOT) org.uk>,
Nick Marshall <nick (AT) span (DOT) org.uk> wrote:

Quote:
Hi,

I am trying to display a number of results from a Case command in a Check
Box field and Iım experiencing some problems.

What I want to happen is when a date is entered into a field (sampledate_1)
an ³x² is automatically entered into a Check Box field (called
results_check) next to the relevant field title. Then, when another date is
entered into another one of the date fields (sampledate_2), another ³x² is
marked next to the relevant ³results_check² field, and so on until theyıre
all checked.

Iım unsure as to what calculation I will need to use as the Case command
only seems to display 1 true result at a time.

Thanks in advance,




Nick
You might try a series of If statements. This is more cumbersomme to set
up than a Case statement, but you can get multiple True results this way.

Bill

--
For email, remove invalid.


Reply With Quote
  #3  
Old   
Helpful Harry
 
Posts: n/a

Default Re: Query regarding the Check Box field - 07-05-2005 , 01:54 AM



In article <BEEEE6BB.8297%nick (AT) span (DOT) org.uk>, Nick Marshall
<nick (AT) span (DOT) org.uk> wrote:
Quote:
I am trying to display a number of results from a Case command in a Check
Box field and Iım experiencing some problems.

What I want to happen is when a date is entered into a field (sampledate_1)
an ³x² is automatically entered into a Check Box field (called
results_check) next to the relevant field title. Then, when another date is
entered into another one of the date fields (sampledate_2), another ³x² is
marked next to the relevant ³results_check² field, and so on until theyıre
all checked.

Iım unsure as to what calculation I will need to use as the Case command
only seems to display 1 true result at a time.
You could use separate fields for each checkbox, then each is a simple
calculation field:

ResultsCheck_X {Calculation, Text result}
= If (IsEmpty(SampleDate_X), "", "Check")

where "Check" is whatever value the checkbox uses when it's turned "on".


If you want to use one field for all the checkboxes, then you need to
understand how checkbox fields work. A 'checkbox' field is really just
a normal field set to display it's data in a different format - the
field contains each "on" value separated by a Return character. You can
see how they work by duplicating the checkbox field and making it use
"Normal" format, then try turning different checkboxes on and off and
see what is displayed in the normally formatted version.

Getting back to the original problem, to get each value in the
multiple-checkbox field to turn "on" when a date is entered in another
field you could use something like:

ResultsCheck {Calculation, Text result}
= If (IsEmpty(SampleDate_1), "", "Check_1ĥ")
& If (IsEmpty(SampleDate_2), "", "Check_2ĥ")
& If (IsEmpty(SampleDate_3), "", "Check_3ĥ")
& If (IsEmpty(SampleDate_4), "", "Check_4ĥ")
& ...
& If (IsEmpty(SampleDate_X), "", "Check_X")

where "Check_Y" are the appropriate values of the checkbox options and
the ĥ character is the Return character that's on one of the buttons in
the Define Calculation window.






Helpful Harry
Hopefully helping harassed humans happily handle handiwork hardships ;o)


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.