hcl-bot
September 30, 2010, 5:28am
1
Hello
I use the folling code to display chechbox
But i don’t found the way to get the valus of cheched boxes ??
Any idea ?
<xp:checkBoxGroup id=“cb_client” layout=“pageDirection” rendered=“true”>
<xp:selectItems id="selectItems1">
<xp:this.value><![CDATA[#{javascript:@Unique(@DbColumn(dblk_affaire,'v_FA_CRM_Filtre',1))}]]></xp:this.value>
</xp:selectItems> </xp:checkBoxGroup>
hcl-bot
September 30, 2010, 9:48am
2
Subject: What are you trying to do?
Are you just trying to store the selected values in a datasource field? If yes, then just bind your checkbox group to your datasource & field via the All Properties > Data > value parameter.
If you’re trying to do something else, then please provide more information in your post.
Subject: Storing or for use in javascript?
Like Judy says, it all depends on what you’re trying to do.
If it’s for storing/saving the data to a notes document, again as Judy said, you need to bind the field to the data source and notes field.
If it’s for use on a different page or if it’s for some javascript, you’ll probably need to bind it to a scoped variable.
Subject: Resolved
I found the solution add value=“#{sessionScope.thevalues}”
in xp:checkBoxGroup balise