Hi,
I am facing issues while adding values to apex select list using javascript.
I have an array of values(arr) that needs to be added to select list
P17_X_SELPROD is the select list. Following are the different ways i have tried out:
1)
for (idx=0; idx<arr.length; idx++) {
apex.item('P17_X_SELPROD').addValue(arr[idx]);
}
I got a message 'default Handling not defined for addValue'.
2) $s("P17_X_SELPROD", arr);
3)
for (idx=0; idx<arr.length; idx++) {
$s("P17_X_SELPROD", arr[idx]);
}
4)apex.item('P17_X_SELPROD').setValue(arr);
5) Set Multiple Values in Child LOV
I am a newbie to apex. If anybody have any idea of what is causing the issue, it would be of great help.
Thanks in advance!!