Unfortunately, stack traces do not help me isolate the error. However, I can guess that your problem is that the selectItems (plural) value is set as a string, and not something with multiple values. The selectItem (singular) element may contain a string as a value, but not selectItems (plural).
So, this selectItems set for combobox is valid:
<xp:selectItems> <xp:this.value><![CDATA[#{javascript:applicationScope.globalSettings.allCurrencies}]]></xp:this.value> </xp:selectItems>
Like this one:
<xp:comboBox id="emailTypeCB1" value="#{newOrgDoc.EMailType}"> <xp:this.defaultValue><![CDATA[#{javascript:var keywordChoices = new TS_Keywords(); var tmp = keywordChoices.Lookup("Contact / email types", true); return keywordChoices.getDefaultValue();}]]></xp:this.defaultValue> <xp:selectItem itemLabel="-- choose --" id="selectItem14"> </xp:selectItem> <xp:selectItems id="selectItems12"> <xp:this.value><![CDATA[#{javascript:return new TS_Keywords().Lookup("Contact / email types", true);}]]></xp:this.value> </xp:selectItems> </xp:comboBox>
But, if I tried this, it would not work if viewScope.myChoices was a string, and not something with multiple values:
<xp:comboBox id="emailTypeCB1" value="#{newOrgDoc.EMailType}"> <xp:selectItems id="selectItems12"> <xp:this.value><![CDATA[#{javascript:viewScope.myChoices;}]]></xp:this.value> </xp:selectItems> </xp:comboBox>
I would suggest that the difference is not only that you opened it in XPiNC and in the browser, but in each of them the value was set differently - as a result, when you were in Notes.
source share