![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Dear All, I have put a couple of simple databases together in Filemaker 10 Pro. However, I am currently breaking my head over what I think is a rather simple problem. I want to add a simple Boolean Field in Filemaker. Answer Rec'd: Yes / No For this I have created a 'Value List' called Boolean with two values in it: 1) Yes, 2) No. Secondly, I flag the properties that this should be a unique value. In the Layout, I have created Tick Boxes for Yes and No. I was hoping that the user simply could toggle between Yes and No, however, Filemaker gives interrupting messages about the Unique value. Can anybody point me to a good and simple method of setting the above up? Thanks in advance. VV |
#3
| |||
| |||
|
|
Secondly, I flag the properties that this should be a unique value. |
#4
| |||
| |||
|
|
"Ph. Verone" <nospam (AT) gmail (DOT) com> wrote in message news:4ccd786f$0$5819$426a74cc (AT) news (DOT) free.fr... Dear All, I have put a couple of simple databases together in Filemaker 10 Pro. However, I am currently breaking my head over what I think is a rather simple problem. I want to add a simple Boolean Field in Filemaker. Answer Rec'd: Yes / No For this I have created a 'Value List' called Boolean with two values in it: 1) Yes, 2) No. Secondly, I flag the properties that this should be a unique value. In the Layout, I have created Tick Boxes for Yes and No. I was hoping that the user simply could toggle between Yes and No, however, Filemaker gives interrupting messages about the Unique value. Can anybody point me to a good and simple method of setting the above up? Use radiobuttons instead of tick-boxes. You probably don't really want to check for a unique value. The user already is limited to a yes or no through the radiobuttons. Further you might re-think the name of the field. A boolean value is a true or a false, also represented as a 1 or a 0, but not a yes or a no. It might be very confusing when you are reworking your solution (say after a year) and find a field that is called boolean, but doesn't actually hold one. |
(
)
#5
| |||
| |||
|
|
Dear All, I have put a couple of simple databases together in Filemaker 10 Pro. However, I am currently breaking my head over what I think is a rather simple problem. I want to add a simple Boolean Field in Filemaker. Answer Rec'd: Yes / No For this I have created a 'Value List' called Boolean with two values in it: 1) Yes, 2) No. Secondly, I flag the properties that this should be a unique value. In the Layout, I have created Tick Boxes for Yes and No. I was hoping that the user simply could toggle between Yes and No, however, Filemaker gives interrupting messages about the Unique value. Can anybody point me to a good and simple method of setting the above up? Thanks in advance. VV |
#6
| |||
| |||
|
|
Add a button to the number field, define data formatting as Boolean. The field can/should be an auto enter; whatever the default status should be, this avoids nulls. The IsEmpty, is then arguably redundant, but a fail safe. The Let structure provides portability, can copy for other fieds and only chage the one (F) definition. EDIT: edit_toggle_boolean # Set Field [ aTable::ae_field; Let([ F= aTable::ae_field ]; Case( IsEmpty ( F) ; 1; F= 1; 0 ; F= 0; 1; ) ) ] # # Commit Records/Requests [ Skip data entry validation; No dialog ] Refresh Window [ Flush cached join results ] The script step can be wrapped in a conditional, which evaluates the source, so you can have one script for multiple booleans |
)
#7
| |||
| |||
|
|
The script step can be wrapped in a conditional, which evaluates the source, so you can have one script for multiple booleans There's a more elegant, one command method of swapping a 0 and 1 boolean value which someone else posted here a long time back ... Set Field [BooleanField; Abs(BooleanField - 1)] Helpful Harry ) |
#8
| |||
| |||
|
|
The script step can be wrapped in a conditional, which evaluates the source, so you can have one script for multiple booleans There's a more elegant, one command method of swapping a 0 and 1 boolean value which someone else posted here a long time back ... Set Field [BooleanField; Abs(BooleanField - 1)] or Set Field [BooleanField ; not booleanfield ] |
)
#9
| |||
| |||
|
#10
| |||
| |||
|
|
In article <eb67f$4cce9c15$53578ad3$1... (AT) cache5 (DOT) tilbu1.nb.home.nl>, <u> wrote: The script step can be wrapped in a conditional, which evaluates the source, so you can have one script for multiple booleans There's a more elegant, one command method of swapping a 0 and 1 boolean value which someone else posted here a long time back ... Â* Â* Set Field [BooleanField; Abs(BooleanField - 1)] or Set Field [BooleanField ; not booleanfield ] Yep, that's another nice, short method. Instead of using checkbox / radio button formatting, I often create my own proper tick boxes. If you know the computer the database will be used on has the Zapf Dingbats (or Wingdings) font, then luckily the tick replaces the 3 or 4 number, so you can use the same method to turn the tick on and off. e.g. Â* Â* Â* Set Field [BooleanField; Abs(BooleanField - 1) * 4] or Â* Â* Â* Set Field [BooleanField ; not(BooleanField) * 4] and simply format the Field to use the Zapf Dingbat font. Helpful Harry Â* ) |
|
In article <eb67f$4cce9c15$53578ad3$1... (AT) cache5 (DOT) tilbu1.nb.home.nl>, <u> wrote: The script step can be wrapped in a conditional, which evaluates the source, so you can have one script for multiple booleans There's a more elegant, one command method of swapping a 0 and 1 boolean value which someone else posted here a long time back ... Â* Â* Set Field [BooleanField; Abs(BooleanField - 1)] or Set Field [BooleanField ; not booleanfield ] Yep, that's another nice, short method. Instead of using checkbox / radio button formatting, I often create my own proper tick boxes. If you know the computer the database will be used on has the Zapf Dingbats (or Wingdings) font, then luckily the tick replaces the 3 or 4 number, so you can use the same method to turn the tick on and off. e.g. Â* Â* Â* Set Field [BooleanField; Abs(BooleanField - 1) * 4] or Â* Â* Â* Set Field [BooleanField ; not(BooleanField) * 4] and simply format the Field to use the Zapf Dingbat font. Helpful Harry Â* ) |
![]() |
| Thread Tools | |
| Display Modes | |
| |