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!

Interactive Report Javascript Refresh working only the first time

492793Jan 23 2012 — edited Jan 24 2012
Hi there,

I'm trying to implement a dynamic action on an interactive report that fires an pl/sql procedure and then reload the IR.

I have something like this:

select par.*,
CASE
WHEN (SELECT 1 FROM addressbook ch WHERE ch.usr_id = (select id from usr where email = :APP_USER) AND ch.address_id = par.id) IS NOT NULL
THEN '<img src="#IMAGE_PREFIX#wwv_cancel.gif" alt"Y" class="delAddressFromBook" id="'|| par.id || '"/>'
ELSE '<img src="#IMAGE_PREFIX#add.gif" alt="N" class="addAddressToBook" id="'|| par.id ||'" />'
END mapped
from addresslist par

My dynamic action uses the jquery selector ".addAddressToBook" and it fires correctly the first time I click on an add-image. My pl/sql-code runs correctly and the IR ist refreshed.
Problem is, when I click the second time in another entry nothing happens. Seems like the javascript is still running something.

Refresh of the IR ist done with javascript gReport.pull().

Thanks in advance.

Florian
This post has been answered by Tyson Jouglet on Jan 23 2012
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 21 2012
Added on Jan 23 2012
4 comments
1,609 views