1. Nathan01/12/2010 12:02:02 PM
Can you perhaps give an example on how to compute the values for the checkbox group and radiobutton group controls?
2. John Mackey01/13/2010 05:25:15 AM
Homepage: http://www.jmackey.net
@Nathan. You can look at the source for the computed value for a combobox control and use that as a guideline. I understand that they will be adding in the interface for both radio buttons group control and checkbox group control in one of the next releases.
Here's an example of the computed values for a checkbox group control taken from my survey tool example. Look at the value for this tag "<xp:selectItems>":
<xp:checkBoxGroup id="CheckBox"
value="#{SurveyQuestion.Answer}" layout="pageDirection">
<xp:this.rendered><![CDATA[#{javascript:type=SurveyQuestion.getItemValueString("AnswerType");
return type=="CheckBox";}]]></xp:this.rendered>
<xp:this.required><![CDATA[#{javascript:req=SurveyQuestion.getItemValueString("Required");
return req=="Yes";}]]></xp:this.required>
<xp:selectItems>
<xp:this.value><![CDATA[${javascript:choices=SurveyQuestion.getItemValueString("AnswerChoices");
return @Explode(choices,",");}]]></xp:this.value>
</xp:selectItems>
</xp:checkBoxGroup>
3. Chris Parkhouse01/21/2010 11:20:15 PM
Hi John
Thank you for a great looking sample application in your survey tool. I have loaded it onto a 8.5.1 server and when following through any links I get the following error message
Error 500
HTTP Web Server: Command Not Handled Exception
I did sign the database - though I am on a DDN server so could not get access to check the server configurations
Here's a link to the database on the server
{ Link }
Any ideas of thoughts?
Thanks again
Chris
4. John Mackey01/22/2010 04:05:59 AM
Homepage: http://www.jmackey.net
@Chris, try opening the db in designer and doing a project - clean. This will recompile the XPages. The db was compiled with the 8.5 code stream. That's the first place I would look.
-John
5. Fredrik Norling02/01/2010 06:19:01 AM
Could you dynamically create other stuff in a xpage
Like Hotpots on a image?