bind xPages combobox not working properly
bind xPages combobox not working properly
I have a simple combobox that is bind to some combobox field on Notes form.
The problem is that if I open a document with value that is not in the list it sets the xPage combobox to first available instead of blank. I.e. notes document has value e.g. "Done" in the field. But the combo shows "New" instead of blank when I open it in web.
<xp:comboBox value="#{document1.Status}" id="Status">
<xp:selectItems id="selectItems1">
<xp:this.value><![CDATA[#{javascript:var arr = new Array(" ");
arr.push("New");
arr.push("Opne");
arr.push("Cancel");
arr.push("In Progress");
arr.push("Done");
return arr;
}]]>
</xp:this.value>
</xp:selectItems>
</xp:comboBox>
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.