Set value of Popup LOV with dynamic action
Asked Answered
B

3

6

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?

Blackness answered 12/5, 2017 at 18:28 Comment(0)
Q
6

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)
Quassia answered 13/5, 2017 at 8:5 Comment(1)
And there still isn't a better way... I wonder when will they change thatHolophrastic
L
0

$('#P1_ITEM').val(&display.)

where display is the name of the field in SQL.

Hope it works.

Lydialydian answered 13/6, 2020 at 2:22 Comment(0)
V
0

This honestly worked the best for me. And was so simple! All you need to do is apex.item('P1_PAGE_ITEM').getValue([1])

It's as simple as using apex.item getValue and rather than () you need to use ([])

Vasomotor answered 7/4, 2023 at 16:50 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.