I have a combo box that is retrieving values from a view using a lookup with another combo box value.
The lookup appears to be working fine however there seems to be some server side validation appearing out of no where.
Server Side error: “Validation Error: Value is not valid”
Here is the code for the combo box:
<xp:comboBox id=“link_cat_sub”
value="#{document.link_cat_sub}">
<xp:selectItem
itemLabel="Select One" itemValue="Select One"
id="selectItem2">
</xp:selectItem>
<xp:selectItems id="selectItems2">
<xp:this.value><![CDATA[#{javascript://var ctry = document.getItemValueString("link_cat");
var combo1 = getComponent(‘comboBox1’);
// value submitted from the browser
var ctry = combo1.getSubmittedValue();
var lst1 = @Unique(@DbLookup(@DbName(),“categories”,ctry,2));
@Explode(lst1,“,”)}]]></xp:this.value>
</xp:selectItems>
</xp:comboBox>
Any help would be greatly appreciated.