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!

dialog closed=>refresh LOV=>set new value

Pavel_pSep 1 2015 — edited Sep 15 2015

Hello,

I'm really struggling with the following problem. I want my users either to pick from existing customers or create the new one if it does not exist. So I have a form (P1), on a form is LOV with existing customers and a button "Create new customer" next to the LOV that invokes the modal dialog form (P2), where the new customer can be added.

In the P2 Process row of Customer is an option to return an item, so I return it back to P2_CUSTOMER_ID (which is my primary key item). On P1 I created the dynamic action:

Event: Dialog closed

Selection type: Button

Button: AddCompany

and there are 2 true actions.

1) refresh item P1_CUSTOMERS_LOV

2) set value

     Type: Return dialog item

     Return item: P2_CUSTOMER_ID

     Affected elements=>Item(s): P1_CUSTOMERS_LOV

The customers LOV is refreshed properly but the value is not set. What is even more surprising is that if i "insert" another action between these two (execute javascript code alert('customer added');) the new value is set properly as expected.

I really have no idea what I'm missing and any help would be highly appreciated.

Regards,

Pavel

This post has been answered by Denes Kubicek on Sep 10 2015
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 13 2015
Added on Sep 1 2015
22 comments
6,561 views