I took out the focus code. Not sure why it was there.
<xp:tr themeId="HtmlTr.form.body">
<xp:td themeId="HtmlTd.form.body.label">
<xp:label value="Reader Group:" id="label1" themeId="Text.table.label">
</xp:label>
</xp:td>
<xp:td themeId="HtmlTd.form.body">
<xp:comboBox id="comboBox1" value="#{dominoDoc.ReaderGroups}">
<xp:selectItems id="selectItems1">
<xp:this.value><![CDATA[#{javascript:var arr = new Array(" ");
var rgs = @DbColumn("", "RolesforDB", 1);
var list = arr.concat(rgs);
return list; }]]>
</xp:this.value>
</xp:selectItems>
<xp:eventHandler event="onchange" submit="true"
refreshMode="partial">
</xp:eventHandler></xp:comboBox>
<xp:message id="messageReaderGroups" for="comboBox1"
showDetail="false" showSummary="true">
</xp:message></xp:td>
</xp:tr>
As far as the querysave,
I'm not sure what I would put in there.
I am modifying a custom control, called mainTopic.. I see it has a querySaveDocument event..
Since I am modifying a database I created from the standard discussion document, it has stuff that I have no idea what it means, especially since this is my first xpage application.
// store user CGI variables
var cgi = new CGIVariables();
dominoDoc.replaceItemValue("Remote_User", cgi.get("REMOTE_USER"));
dominoDoc.replaceItemValue("Remote_Addr", cgi.get("REMOTE_ADDR"));
cgi = null;
That is what is in the querySaveDocument now..
so, would I just do
if(domonoDoc.getItemValue(ReaderGroups)[0] == " ")
{
//not sure what to do if it does = " ".. meaning, how do I stop it from saving or submitting?
return false;
}
Thank you so much for your help
![Querysaveevent](cid:querysaveevent)