Skip to Main Content

Oracle Forms

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!

How to update table from oracle form

user9276376Jan 22 2012 — edited Jan 22 2012
Hi,

I have a three tables received(master) received_detail (detail) and product_master table.

I build a form using master detail table and want to update one column(current_ stock) in product_master table from oracle forms when save the master detail records. For this purpose I used following update routine in on_update trigger in form level but it does not work.

Every thing is working fine except qty does not update in qty column of product_master table.


UPDATE PRODUCTS_MASTER
SET CURRENT_STOCK = CURRENT_STOCK + :RECEIVED_DETAIL.QTY
WHERE PRODUCTS.CODE = :RCTRAN.PRODCODE

commit;

Kindly give me the solution.

Hassan
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 19 2012
Added on Jan 22 2012
2 comments
4,699 views