• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Dynamic Labels for form UI
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dynamic Labels for form UI


  • Subject: Re: Dynamic Labels for form UI
  • From: David Holt <email@hidden>
  • Date: Wed, 27 Aug 2008 12:23:18 -0700

Hi Chuck,

Thanks for the reply. The only table is a list of variables to hold checkbox values.

T_Group
------------
pk id integer
member integer
isHappy integer
isFull integer
etc.

The labels are in html. 

I guess what I am asking is where I can apply logic to the checkbox bindings to make them correlate to a string binding? The label needs to point to a variable value, not a value, if that makes sense.

i.e. for variable "member" display string related to member "The group allows membership"
for variable "isHappy" display string related to isHappy "The group is a happy group"

Please don't give me grief for my "parable" variables ;-)

David


On 27-Aug-08, at 11:51 AM, Chuck Hill wrote:


On Aug 27, 2008, at 11:36 AM, David Holt wrote:

Hi all,

I have a form with many wo:checkboxes. I would like to store the labels for the checkboxes in the database instead of hardcoding them in the html. Is there a way I can tie a specific checkbox to a unique value in a table of labels? For example: 

<wo:checkbox name = "member" value = "1" selection = "$aGroup.member" /> <wo:string value= ??? />

I think you would want a custom component that contained this or maybe the entire radio group? The component would have the logic to find the label.  I can't be more specific without knowing your database setup.


Chuck


-- 
Chuck Hill             Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.    
http://www.global-village.net/products/practical_webobjects







 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Dynamic Labels for form UI
      • From: Chuck Hill <email@hidden>
References: 
 >Dynamic Labels for form UI (From: David Holt <email@hidden>)
 >Re: Dynamic Labels for form UI (From: Chuck Hill <email@hidden>)

  • Prev by Date: Re: D2W Help
  • Next by Date: Re: How I Got WebAssitant Working on Leopard
  • Previous by thread: Re: Dynamic Labels for form UI
  • Next by thread: Re: Dynamic Labels for form UI
  • Index(es):
    • Date
    • Thread