1. create a change type DA on the first LOV, execute following javascript in the DA:
$('#P_SELECT2').select2('data', { R:$v("P_FIRST_LOV") , D: $v("P_FIRST_LOV")+'/Display value'});
2. Here is how to get it cleaned/initilized:
$('#P_SELECT2').val(null).trigger('change');
UPDATE:
New version need to do this way:
$('#P_ITEM').select2("trigger", "select", { data: { id: $v('P_FIRST_LOV'), text: $v('P_FIRST_LOV')+'/Display value' }});
No comments:
Post a Comment