Hi There,
Wonder if anyone could help me? I am trying to insert a value to a field on an XPage.
We have a ListBox with everyone’s names in it. I would like to allow the user to select a name and click a link and the name they have selected would be inserted into another field on the XPage…thus building up a list that is more visible than the listbox.
I have tried the following :
Listbox : requestScope.people
button code : SWR.setValue(“CircList”,requestScope.people);
Partial Update to the field CircList.
Can anyone point me in the right direction?
Thank you.
Jamie
UPDATE : have managed to get the values into the other field, so my new questions are :
-
How do i stop square brackets for the second value eg. Grant,Jamie;[Grant,Jamie]
-
How do I do a multi line editbox and code it to insert the value on the next line?
here is the code I am using for the ‘Add’ button:
var Vnames = SWR.getValue(“CircList”);
var Vpeople = requestScope.people;
if(Vnames == null || Vnames == “”)
{
SWR.setValue("CircList",Vpeople);
}else{
SWR.setValue("CircList",Vnames + ";" + Vpeople);
}