I just don’t understand that data binding properties setting at all.It seems whenever I try to use that to populate a listbox,combo box, checkbox, radiobutton…I get http command exception errors and the page will not load. (looking to a categorized, ascending view)
So what good is the damn thing?.
In Eclispse just about everything is just one big WTF.
I am unable to find a simple example on the wiki on how to setup and use a simple checkbox or radiobutton. (remember…simple)…
It just doesn’t exist.
Can anyone help enlighten me on this ?
Subject: Data Binding
Are you trying to bind the value from your listbox to a categorised view? Or are you trying to define the options doing an @DbLookup/@DbColumn from a categorised view?
Subject: Type of control…
Normally with any radio button or check box fields, to create choices to check off or enable… we’d do a @DBcolumn to a categorized column in some view somewhere. (we both know it doesn’t have to be categorized, just ascending or decending)…
I can do combo boxes, and list boxes…but what i’ve discovered, is despite the prompts for requirment of data binding, don’t use it. It will not work and that you have to use a dbcolumn in the value tab in properties.
and this bring me around to my question.
For checkboxes or radio button controls, the only type of input for choices i can do is with the data binding tab. But it fails every single time.
Even trying to create the choices manually.
Subject: Works fine for me
I’m not sure if you’re misunderstanding data binding. This isn’t used to set the options, it’s used to set where the value gets saved. For example, I have a combo box with data binding to document1 (my data source) to a field called Status (source tab:value attribute). The Values tab holds the options (source tab: xp:selectItems), which holds the output from my @DbLookup with a format of label|value. See code below:
<xp:comboBox id=“status1” value=“#{document1.Status}” styleClass=“mediumTextField”>
<xp:selectItems id="selectItems1"> <xp:this.value><![CDATA[${javascript:var vals = @DbLookup(@DbName(),"luKeys","Quotation Status",2,"[FAILSILENT]");
vals + “|” + vals}]]></xp:this.value> </xp:selectItems>
</xp:comboBox>
It’s the same kind of thing for a radioGroup (I use radioGroup/checkBoxGroup controls - you’ll need use Other to get them):
<xp:radioGroup value=“#{document1.Attention}”
id="attention1" defaultValue="No">
<xp:selectItem itemLabel="Yes" itemValue="Yes" id="selectItem1"/>
<xp:selectItem itemLabel="No" itemValue="No" id="selectItem2"/>
</xp:radioGroup>