![]() | |
![]() |
| | Thread Tools | Display Modes |
#11
| |||
| |||
|
|
On Jun 14, 2:48 pm, lawp... (AT) gmail (DOT) com wrote: This should be so simple, I can't understand why I need to bring in someone else. I mean, this should just be a binary field. It's either true or false, 1 or 0, red or green, chocolate or vanilla. If I can't figure it out, I don't see why the original developer would be able to. heh |
|
No. A checkbox uses a value list to determine the choices that are available. |
|
Definitely read the fine manual about checkboxes. Typically, a checkbox lets you select one OR more than one selection. But it sounds like in this case, the developer wanted to use a checkbox to only hold a single value or nothing. This can be valid, but you are definitely not "getting it" enough to fix the problem that you seem to have. |
#12
| |||
| |||
|
|
lawp... (AT) gmail (DOT) com> schreef in berichtnews:1181847334.259573.225100 (AT) d30g2000prg (DOT) googlegroups.com... Without a proper look at your solution I don't think we might resolve this. I am willing to offer some assistance. Just let me know if you need, want this. |

#13
| |||
| |||
|
#14
| |||
| |||
|
#15
| |||
| |||
|
|
On Jun 14, 9:49 am, Paul Bruneau <p... (AT) ethicalpaul (DOT) com> wrote: On Jun 13, 4:11 pm, lawp... (AT) gmail (DOT) com wrote: [ Checkbox field value ] 1 0 If the value of the checkbox field is "1" followed by a carriage return, then a "0" as you seem to indicate, it would mean that both the "1" checkbox and the "0" checkbox were checked, which is normal checkbox behavior. Multiple checked items appear on their own lines with checkboxes. I think I'm beginning to understand. In Filemaker, a checkbox is not a single check box, but actually two checkboxes? So there can be four values of a field with a checkbox? [ ] [ ] = blank [X] [ ] = ? in a small field or 1 <cr> 0 [ ] [X] = ? in a small field or 0 <cr> 1 [X] [X] = 1 |
)
#16
| |||
| |||
|
|
OK, I think I may be starting to understand. If I set the value list of the field that I'm using a checkbox for to have only a value of "1", then the only values of that field, so long as I'm using the checkbox, can be either 1 or blank? |
#17
| |||
| |||
|
|
On Thu, 14 Jun 2007 20:34:36 -0000, lawpoop (AT) gmail (DOT) com wrote: OK, I think I may be starting to understand. If I set the value list of the field that I'm using a checkbox for to have only a value of "1", then the only values of that field, so long as I'm using the checkbox, can be either 1 or blank? Yeeesh! Dude, you're working way too hard on this. There really is a very simple way to do what you're trying to do. You're skipping a step that is crucial -- you're not making a place for FMP to evaluate the checkbox. Here's the way I do it: 1) Create a field: checkbox, value list with only ONE value in it. It doesn't matter what the value is, but whatever it is will appear on your layout. We'll call it PRINT1_CBOX 2) Create a calculation field which evaluates the checkbox field: calc, result is number. We'll call this PRINT1_CALC PRINT1_CALC= IsEmpty ( PRINT1_CBOX ) 3) Make your script decide what to print based on the value of PRINT1_CALC, and NOT the value of PRINT1_CBOX. Step 1 lets your user pick what he wants to print. Step 2 evaluates that choice -- if the box is checked, the calc field is 0, if unchecked, it's 1. Step 3 executes your script based on your user's choice. Simple as that. Hope this helps |
#18
| |||
| |||
|
|
In article <039773l9g0gsk0hca6emhnfd10bt7m48ol (AT) 4ax (DOT) com>, FastWolf wolfsofast (AT) NOSPAMcomcast (DOT) net> wrote: On Thu, 14 Jun 2007 20:34:36 -0000, lawpoop (AT) gmail (DOT) com wrote: OK, I think I may be starting to understand. If I set the value list of the field that I'm using a checkbox for to have only a value of "1", then the only values of that field, so long as I'm using the checkbox, can be either 1 or blank? Yeeesh! Dude, you're working way too hard on this. There really is a very simple way to do what you're trying to do. You're skipping a step that is crucial -- you're not making a place for FMP to evaluate the checkbox. Here's the way I do it: 1) Create a field: checkbox, value list with only ONE value in it. It doesn't matter what the value is, but whatever it is will appear on your layout. We'll call it PRINT1_CBOX 2) Create a calculation field which evaluates the checkbox field: calc, result is number. We'll call this PRINT1_CALC PRINT1_CALC= IsEmpty ( PRINT1_CBOX ) 3) Make your script decide what to print based on the value of PRINT1_CALC, and NOT the value of PRINT1_CBOX. Step 1 lets your user pick what he wants to print. Step 2 evaluates that choice -- if the box is checked, the calc field is 0, if unchecked, it's 1. Step 3 executes your script based on your user's choice. Simple as that. Hope this helps That's over complicating it. You don't need the extra Print1_Calc field at all, and since in older versions of FileMaker you can't have Global Calculation fields it would also be a waste of disk space having one in every record. Helpful Harry Hopefully helping harassed humans happily handle handiwork hardships ;o) |
#19
| |||
| |||
|
|
On Sun, 17 Jun 2007 09:28:17 +1200, Helpful Harry helpful_harry (AT) nom (DOT) de.plume.com> wrote: In article <039773l9g0gsk0hca6emhnfd10bt7m48ol (AT) 4ax (DOT) com>, FastWolf wolfsofast (AT) NOSPAMcomcast (DOT) net> wrote: On Thu, 14 Jun 2007 20:34:36 -0000, lawpoop (AT) gmail (DOT) com wrote: OK, I think I may be starting to understand. If I set the value list of the field that I'm using a checkbox for to have only a value of "1", then the only values of that field, so long as I'm using the checkbox, can be either 1 or blank? Yeeesh! Dude, you're working way too hard on this. There really is a very simple way to do what you're trying to do. You're skipping a step that is crucial -- you're not making a place for FMP to evaluate the checkbox. Here's the way I do it: 1) Create a field: checkbox, value list with only ONE value in it. It doesn't matter what the value is, but whatever it is will appear on your layout. We'll call it PRINT1_CBOX 2) Create a calculation field which evaluates the checkbox field: calc, result is number. We'll call this PRINT1_CALC PRINT1_CALC= IsEmpty ( PRINT1_CBOX ) 3) Make your script decide what to print based on the value of PRINT1_CALC, and NOT the value of PRINT1_CBOX. Step 1 lets your user pick what he wants to print. Step 2 evaluates that choice -- if the box is checked, the calc field is 0, if unchecked, it's 1. Step 3 executes your script based on your user's choice. Simple as that. Hope this helps That's over complicating it. You don't need the extra Print1_Calc field at all, and since in older versions of FileMaker you can't have Global Calculation fields it would also be a waste of disk space having one in every record. The one thing this method does accomplish is, it allows the checkbox field to be treated as a Boolean. I think that's what the OP was aiming for. I don't believe the OP stated which FMP version he's using. I have little experience with versions prior to 7, so definitely I wouldn't be the one to give advice on anything earlier than that. In future I'll be sure to make that clear. |
![]() |
| Thread Tools | |
| Display Modes | |
| |