dbTalk Databases Forums  

How to use "Checkbox set" in script

comp.databases.filemaker comp.databases.filemaker


Discuss How to use "Checkbox set" in script in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
Helpful Harry
 
Posts: n/a

Default Re: How to use "Checkbox set" in script - 08-06-2005 , 01:47 AM






In article <dd10d7$uu9$1 (AT) news5 (DOT) zwoll1.ov.home.nl>, Léon Obers
<mail.to.me (AT) fotograaf (DOT) invalid> wrote:

Quote:
Helpful Harry wrote:

My method has the problem of leaving a single carriage return if you
turn off all the options (after turning on one or more) - but it's
usually not a problem, unless you're using a normal version of the
field in a printed report ...

No, in this version of my application, it is only a screen usage menu to
fill in data, and to work with much buttons to automate tasks.

But a good warning what I can expect by making other work-arounds.
Another method for a checkbox field is to separate them into individual
fields for each option, with all fields using a simple value list of
"Yes" (or "On").

Put the field on the layout, but shrink it so you can't see the "Yes"
value. Then use the text tool to type on what you want the label to
read next to the box. You end up with something like:

[ ] Packed <--- PackedField {value list "Yes"}
[ ] Sent <--- SentField {value list "Yes"}

Now you can use the rectangle tool to draw a small square over each
checkbox and define them to run two scripts (or perhaps one script in
FileMaker 7 which passes a parameter to the script) which simply
toggles the field between "Yes" and empty.

PACKED BUTTON
If [PackedField = "Yes", "", "Yes"]

SENT BUTTON
If [SentField = "Yes", "", "Yes"]

In this case there's no need to worry about carriage returns or the
value for one option also being part of another value. )


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


Reply With Quote
  #12  
Old   
Léon Obers
 
Posts: n/a

Default Re: How to use "Checkbox set" in script - 08-06-2005 , 05:33 PM








Helpful Harry wrote:

Quote:
Another method for a checkbox field is to separate them into individual
fields for each option, with all fields using a simple value list of
"Yes" (or "On").

Put the field on the layout, but shrink it so you can't see the "Yes"
value. Then use the text tool to type on what you want the label to
read next to the box. You end up with something like:

[ ] Packed <--- PackedField {value list "Yes"}
[ ] Sent <--- SentField {value list "Yes"}
(Before the day I go for holiday).
This method is exactly the method I made already within my application.
Even a more wide use by making two buttons.
One button showing an ">",
in the middle a square field containg X when a button is pushed or just
empty. At the right a button with double ">>"

Quote:
X
Pushing the left button, do copy an "X" into the field of the active
record. Pushing again it empties.

Pushing the right button, the same as above, but for the complete found
set of records. (So with a loop function in it).

Yesterday evening reading all the suggestions, I was considering if it
is worth the try of your more early suggestions, as this last method is
much more easy. With some extra "tricks" you can even use the same
script for several tables depending to the layout (and used table).

(This is probably the last message till I am back of holiday. So till
2-3 weeks.)


--
Vr.groet - regards, Léon Obers

Reacties per mail, vervang "invalid" door "cc" in het adres.
Reactions by mail, exchange "invalid" by "cc" within address.



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.