To Helpful Harry + Dan (about "Checkbox set") -
08-31-2005
, 06:41 AM
Hello,
Before the start of my holiday we had a conversation about possibilities
using the "Checkbox set" within a script. See:
http://tinyurl.com/cwyzr
I should come back what I made of it after my holiday, and yes I have
made a solution different as written by yours and working perfectly.
So I want to share my solution to you, that you also have a better
insight of this typical function and the possibilities to use it.
As written in the previous thread I made already a simple "sideway"
solution by another method of approach just by using a sort of checkbox
field separately.
I can check and uncheck a field as used below:
http://www.fotograaf.cc/ftp/merken-1.gif
http://www.fotograaf.cc/ftp/merken-2.gif
The green one arrow-button is checking or un-checking the active record.
The red double arrow-button is checking or un-checking the complete
found set.
The script for checking or un-checking the active record, see:
http://www.fotograaf.cc/ftp/x-1.gif
Remark: the botton line of the script is to avoid a not nice screen if
the cursor is within the X box itself.
The script for checking or un-checking the complete found set, see:
http://www.fotograaf.cc/ftp/x-2.gif
That the cursor is set to another field after the running, in this case
it takes some more lines.
From this first attempt to check or uncheck a field in a very basic way
I made a script for checking or un-checking the active record as the
field is used by a "Checkbox set" as the more early thread was about.
See example:
http://www.fotograaf.cc/ftp/order.gif
the name "ingepakt" stands for "packed" in my mother language
the name "uitgeleverd" stands for "delivered or send"
To check or uncheck the first word "ingepakt" the script is as follows:
http://www.fotograaf.cc/ftp/order-1.gif
To check or uncheck the second word "uitgeleverd" the script is nearly
the same:
http://www.fotograaf.cc/ftp/order-2.gif
In both situations the script is working either if one or two names are
checked or unchecked. Remark: the third (last) "Else If" function, you
can also use just the "Else" function. But for more understanding the
script, I like the complete "Else If" line better.
As with the above solution of "Checkbox set" I can imagine you can make
a solution too within a loop for a complete found set. (Not made yet and
not showing you in these examples).
If the list with words (and check boxes) increase, the total scriptlines
are becoming more complicated as you have to make a solution for each
check and uncheck situation. In that way maybe it is a better idea to
use more fields as an "X" fill-in and to write normal text in front of
the field as given right at the top of this message.
http://www.fotograaf.cc/ftp/merken-1.gif
http://www.fotograaf.cc/ftp/merken-2.gif
I hope you do like my suggestions and solutions.
--
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. |