• 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: How to get each CheckBox value inside a WORepetition Bind to the same variable
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get each CheckBox value inside a WORepetition Bind to the same variable


  • Subject: Re: How to get each CheckBox value inside a WORepetition Bind to the same variable
  • From: Chuck Hill <email@hidden>
  • Date: Thu, 16 Jun 2011 09:08:18 -0700

> masterCheck : WOCheckBox {
> class = "texte";
>  name = "master";

Do NOT bind name to a constant on form inputs inside a repetition.

Chuck

>  selection = selectedMaster; ----->Variable bind to check box value
>  value = master.diplSpecAbr; --->CheckBox value
>  onclick = "MstChecked(this.form)";----> JS function wo call a java method to get checkbox value



On Jun 16, 2011, at 6:23 AM, email@hidden wrote:

>
>
> Hi,
>
>
>
>
> I have a little problem with checkBoxes values. I have a checkBox which is in a WORepetition and bind to one String variable.
> in html :
> ...
> <webobject name = "masterList">------>WORepetition
>   &nbsp;<webobject name = "masterCheck" />------>Check Box
> <webobject name = "masterLib" /><br />------> WORepetition item label
> </webobject>
> ...
>
>
>
>
> in wod :
>
>
>
>
> ...
>
>
> masterList : WORepetition {
>  list = masters;
>  item = master;
> }
>
>
> masterLib : WOString {
>  value = master.descFr;
> }
>
>
>
>
> masterCheck : WOCheckBox {
> class = "texte";
>  name = "master";
>  selection = selectedMaster; ----->Variable bind to check box value
>  value = master.diplSpecAbr; --->CheckBox value
>  onclick = "MstChecked(this.form)";----> JS function wo call a java method to get checkbox value
>
>
>
>
> ..
>
>
> in Browser :
>
>
> ...
> <br />
> &nbsp;<input onclick="MstChecked(this.form)" class="texte" type="checkbox" value="CV MAST" name="master" />Convention Master (CV MAST)<br /> =====>bind to selectedMaster
> &nbsp;<input onclick="MstChecked(this.form)" class="texte" type="checkbox" value="IM" name="master" />Ingénierie et management (IM)<br /> =====>bind to selectedMaster
> &nbsp;<input onclick="MstChecked(this.form)" class="texte" type="checkbox" value="MP" name="master" />Mécanique et Physique (MP)<br /> =====>bind to selectedMaster
> &nbsp;<input onclick="MstChecked(this.form)" class="texte" type="checkbox" value="STIC" name="master" />Sciences et Technologies de l'information et de la communication (STIC) =====>bind to selectedMaster
> <br />
> ...//All CheckBoxes value are bind to the same variable java side. I can't check all
>
>
>
> So when I execute my apps WORepetition return some CheckBoxes which correspond of object's number listed. And theses CheckBoxes are Bind to the same variable.
> In html when I check all checkBoxes there are no problem but java side I have very very big problem to work with the value of theses checkBoxes.
>
>
> How can I turn my code to allow one variable to have one checkBox?
>
>
> Thanks
>
> _______________________________________________
> 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

--
Chuck Hill             Senior Consultant / VP Development

Come to WOWODC this July for unparalleled WO learning opportunities and real peer to peer problem solving!  Network, socialize, and enjoy a great cosmopolitan city.  See you there!  http://www.wocommunity.org/wowodc11/

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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

References: 
 >How to get each CheckBox value inside a WORepetition Bind to the same variable (From: email@hidden)

  • Prev by Date: Re: WOHTTPConnection and WOResponse issues
  • Next by Date: D2W editRelationship displays PageWrapper???
  • Previous by thread: Re: How to get each CheckBox value inside a WORepetition Bind to the same variable
  • Next by thread: Re: Re: How to get each CheckBox value inside a WORepetition Bind to the same variable
  • Index(es):
    • Date
    • Thread