Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set value of Popup LOV with dynamic action

I try to set the value of a popup lov with a dynamic action "Set value" of type PL/SQL Function Body. This works with a select list, but not with a popup lov. How can this be done?

like image 931
Stefanie Avatar asked May 12 '17 18:05

Stefanie


1 Answers

Let's assume your item is P1_ITEM and your LOV is

select display, return from table;

In standard Select List value is stored in #P1_ITEM.

In Popup LOV value is stored in #P1_ITEM_HIDDENVALUE, but displayed in #P1_ITEM.

So in dynamic action, you need to set two actions:

  1. Set value 'return' from LOV with affected item P1_ITEM.
  2. Execute JavaScript code
$("#P1_ITEM").val(display)
like image 186
Paweł Prusinowski Avatar answered Oct 21 '22 08:10

Paweł Prusinowski