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