Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Add a value(string) to apex select list using javascript.

gm-OracleFeb 12 2014 — edited Feb 13 2014

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!!

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 13 2014
Added on Feb 12 2014
3 comments
3,087 views