PDA

View Full Version : picklist names, multivalue, add to selected values



flyingman
30 Nov 2009, 3:30 AM
I have a names-picklist:
showStellvertretung : function(){
ws = new Ext.nd.UIWorkspace();
ws.pickList({
type: "names",
width: scw80,
dbPath : "/Global/Zentral/chbs410.nsf/",
viewName : "LookUpPersonNachVorname",
title : "Stellvertreter",
prompt : "Wählen Sie den/die Stellvertreter aus.",
column : 16,
multipleSelection : true,
useCheckboxSelection : false,
callback : this.handleMyPickListStellvertreter
});
}, //showStellvertretungHow can I add a new values add to selected values? First I select 3 names (student01, student02 and student03). Then I will add student04, without I must choice the other (student01, student02 and student03).

Thanks

Roland

ragdam
5 Mar 2011, 10:08 AM
I have the same problem.
The name picklist is shown correctly, but the selections is not updated with the value(s) of the target field.

I would like a loading of data coming from target Field




ws.pickList({
type: "names",
showSearch: true,
dbPath : "/names.nsf/",
viewName : "($VIMPeopleByLastName)",
title : 'Select Name',
data: Ext.get(id).dom.value //<===== I WOULD LIKE A PROPERTY LIKE THAT
column : 4,
multipleSelection : true,
useCheckboxSelection : false,
callback : function(recs) {
var tmp = "";
if (recs != null) {
for (var i=0; i<recs.length; i++) {
tmp += recs[i] + ";";
}
Ext.get(id).dom.value = tmp.substr(0,tmp.length-1)
}
}
}, Ext.get(id).dom.value);


Thank you for your help