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!

Dynamic action not firing not working correctly

Ryansun-OracleNov 5 2014 — edited Nov 5 2014

4.2.1

Thm: 25

Hi - I have one select lists Order_Id and display item Product_name

When the user selects the Order_id from the select list, the Product_name should be populated based on the id selected.

I added a dynamic action - >change on the Order_Id item and made it execute a pl/sql code which is something like this

{code}

  begin

      select product_name into : PRODUCT_NAME from table where order_id = :ORDER_ID;

{code}

I also used  : PRODUCT_ID and :ORDER_ID in the submit items field.

when the page first loads order id is null. User has to select from the list. But when I select a value, I get an error - > Ajax error - > no data found.

looks like the change event is taking the older PRODUCT_ID which is always null first time when the page loads instead of taking the new one selected from the list.

Any suggestions?

thanks,

ryan

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 3 2014
Added on Nov 5 2014
5 comments
1,595 views