I would like to create a simple drop down containing all the users in our Domino Directory (names.nsf) - we where using a Dojo Namepicker from the ExtLib but where having multiple problems with our Huawei phones, but thats a tale for another time :o) - no matter what I try I am just getting back an empty list. Here is the XPages code:
<xp:comboBox value="#{document1.betreuerIn}" style="width:350px"
id="comboBox1" required="true" defaultValue="#{javascript:sessionScope._stdCommonUserName}">
<xp:selectItems>
<xp:this.value><![CDATA[#{javascript:allPeople()}]]></xp:this.value>
</xp:selectItems>
</xp:comboBox>
and here the function allPeople:
var mydb = new Array (@DbName()[0], "names.nsf");
var myPeople = new Array (@DbColumn(mydb, "($VIMPeople)", 1));
return myPeople;
or
var mydb = new Array (@DbName()[0], "names.nsf");
return @DbColumn(mydb, "($VIMPeople", 1);
I am always getting an empty list back. mydb contains a server and the names.nsf database. The view ($VIMPeople) exists in the Domino Directory.
According to this: http://xpageswiki.com/apps/wiki-xpages/wiki-xpages.nsf/dx/Work_with_DbColumn_and_DbLookup it should work?
What am I doing wrong?