I'm using a lookup function in a Calculated Value control, it would then be sent to a JavaScript function:
getS23Delegates(lookup("Test","ID",CostCentre1,"S23Delegate",true))
The statement above would call the javascript function getS23Delegates() and send the parameter of the lookup result :
function getS23Delegates(value) {
alert(value);
}
The lookup would have to get results from the list called "Test", using CostCentre1 named control as my filter and grab the values from the list column "S23Delegate and I set the 5th parameter as true because I want to get multiple items from the "Test" list.
But I'm only getting the first item and not the second one. I'm supposed to be getting 2 S23Delegates. There might be something wrong in my code. I appreciate your help. Thanks