Finally, I have this working on my test field on "mouseover" event.
I change the hidden field with assigned resources from Pick-list ot
MVEditor and I can get allValues without display values.
Now I need to compile different lists and make the two loops to assign
and remove resources.
I will update this thread.


/* To add resources in selection but not assigned */
var Assigned = form.getAllValues("AssignedAccess");
var Selected = form.getValues("AvailableAccess");
for (var i=0; i < Selected.length; i++) {
if (Assigned.toString().indexOf( Selected[i] ) < 0 ) {
alert ("To add is " + Selected[i] );
}
//alert ("Equal is " + Selected[i]);
}
/* To remove resources assigned but not in selection */
var Assigned = form.getValues("AssignedAccess");
var Selected = form.getValues("AvailableAccess");
for (var i=0; i < Assigned.length; i++) {
if (Selected.toString().indexOf( Assigned[i] ) < 0 ) {
alert ("To remove is " + Assigned[i] );
}
//alert ("Equal is " + Assigned[i]);
}


--
sma
------------------------------------------------------------------------
sma's Profile: https://forums.netiq.com/member.php?userid=174
View this thread: https://forums.netiq.com/showthread.php?t=13685