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!

How to Update a Table by Page Item - Source Type: SQL Query (return single)

Vladimir Bartos-OracleAug 7 2012 — edited Aug 7 2012
Hi all,

I would like to update my table QTMT_TICKETS by a form created from the table QTMT_TICKETS, but I change one of the Page Item's Source Type from: Database Column to Source Type: SQL Query (return single value). This item contain an SQL expression. When I run the page I can see the value from the SQL query in the form, but when I press Update button, then this value is not updated in the table.
Is there any way to update the table by the SQL expression value?

I also tried to create an additional PL/SQL process on the form page:
begin
update QTMT_TICKETS
set GATE_COMM_ID = :P20_GATE_COMM_ID
where TICKET_ID = :P20_TICKET_ID;
end;

But it insert only an empty value "-" in the cell of the table.

Could you please let me know what I do wrong in the additional process or if there is a way of updating the table just by the form update process?

Thank you and best regards,

Vladimir
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 4 2012
Added on Aug 7 2012
2 comments
476 views