[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: CheckBoxList
James
In this case, you might want to use a WORepetition of WOCheckBoxes
instead of a WOCheckBoxList... or
...if we're talking WO4, you can do anything you want if you use
WXCheckBoxList
Add the ComponentElements.framework to your project (it should be in
Local/Library/Frameworks
and go to town. For maxi-customization, copy the WXCheckBoxList.wo to
your project's Components and the WXCheckBoxList.wos to your Classes
and then you will also have access TO the component itself so you can do
whatever you want with the template/wod/code WXCheckBoxList uses.
For example here is the complete HTML template for WXChekcBoxList:
<!-- ------------------
< -- WXCheckBoxList
< -- ------------------ -->
<webobject name=CheckBoxWrapper>
<webobject name=CheckBoxRepetition>
<webobject name=CheckBox></webobject><webobject
name=Content></webobject>
</webobject>
</webobject>
You could add a WOString object (before the CheckBox object) here where
its value is bound to whatever.
d
"Schrecengost, James" wrote:
>
> Okay, I read the archive, and answered most of my questions (and got it
> working), however, I do have another.
> What I have is a DisplayGroup of area codes. each area code has a state
> name with it, ie:
> Alabama 205
> Alaska 250
> etc..
>
> now what I have is a list of checkboxes, 10 in a row (using a mod op), but I
> would like the state name, a line break then
> more area codes, breaking at the next state - so like California (which has
> like 25 area codes) would have 3 rows under it.
> here's kinda what I want it to look at (use a mono-spaced font to readthis,
> if you can!!)
> Alabama
> [] 205 [] 256 [] 334
> Alaska
> [] 250 [] 907
> ...
> California
> [] 209 []213 [] 310 [] 323 []408
> [] 415 [] 510 [] 530 [] 559 []562
> Colorado
> [] 303 [] 719 [] 720 [] 970
> etc..
>
> Now, the problem I have is the prefix attrib, is AFTER the check box, and
> before the text (area code).
> like this:
> [] PREFIX 303 SUFFIX
>
> is there a way to prefix the actual checkbox?
> Thanks!!
>
> These opinions are mine, and not necessarily those of my employer.
>
> James 'Ghostman' Schrecengost
> Johns Manville, Electronic Commerce Team
> schrecen@jm.com
> 303-978-2677