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!

apex shuttle item/multi select deliminated value not working in Jquery selector

Ramani_apexOct 26 2015 — edited Nov 9 2015

i try to fire bulk row in tabular form with selected rows based on LOV values,the rows are generating with default lov values inserted but not in my selected values.how can pass only selected list of values to insert in tabular form(specified column).

var a = $v("P3_SHUT_DELI_VALUE").split(":") // Delimiter is a string

//P3_EMP_LIST_ITEMS

for (var i = 0; i < a.length; i++)

{

var last_rownum = $('input[name="f02"]').closest('tbody tr:nth-last-child(1)').children('td').children('input[name="f02"]').val();

var next_rownum = 0;

//if(last_rownum == $v("P3_SHUT_DELI_VALUE").split(":")  ){last_rownum = 0};

if(last_rownum == " " ){last_rownum = 0};

if (!$.isNumeric(last_rownum)) {last_rownum = 0};

next_rownum = Number(last_rownum) + 1;

apex.widget.tabular.addRow();

//var row0 = $('input[name="f02"]').closest('tbody tr:nth-last-child(2)');

//row0.insertAfter(row0.next());

$('input[name="f02"]').closest('tbody tr:nth-last-child(1)').children('td').children('input[name="f02"]').val(next_rownum);

//need lert as wait message until full rows finished coz we have morethan 100 rows.

var checkboxIndex = apex.jQuery('input[name=f01][value=0]').eq(i).parent().parent().index();

var SelectItem = apex.jQuery('select[name=f03]').eq(checkboxIndex);

var iOption = apex.jQuery(SelectItem).children().eq(i).val();

apex.jQuery(SelectItem).val(iOption);

}

application.https://apex.oracle.com/pls/apex/f?p=70785:3:6246673647727::NO::P3_DEP_LIST:10

user/password: test/test

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 7 2015
Added on Oct 26 2015
6 comments
1,123 views