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!

Creating my own Remove links in a report

popovitsjMay 31 2012 — edited May 31 2012
I'm using the online instance on apex.oracle.com.

I'm trying to create "Remove" links in a report. Here's the steps I've taken to establish this:

1. Alter the query to add a static column "REMOVE".

2. Create a hidden page item P4_REM_ROWID

3. In Column Attributes, making the REMOVE column into a column link, Target: Page in this Application, Page: 4 (same page), Request: REMOVE, Item1: P4_REM_ROWID, Value1: #ROWID#, and accepting default values for others.

4. Creating a Process: On Load - Before Header, Run Process: Once per page visit. Condition Type: Request = Expression 1, Expresson 1: REMOVE

With the following PL/SQL:
BEGIN
  DELETE FROM my_table WHERE rowid = :P4_REM_ROWID;
END;
When I click a remove link in the report, I will not get an error, but nothing will be removed either.

I have found that the reason that it's not working, is because the item :P4_REM_ROWID will actually have the value NULL when the code is run.

Does anyone know where this is flawed?
This post has been answered by VC on May 31 2012
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 28 2012
Added on May 31 2012
5 comments
736 views