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!

Highlight row not working after dynamic refresh

nbyrne76Jan 9 2014 — edited Jan 9 2014

Hi


Application Express 4.2.1.00.08


Hoping someone can help with this. I have a report (list of loans for a person) that gets dynamically refreshed when the account number changes. The loan id column is a link that when clicked fires a dynamic action that uses javascipt to highlight the current row

$('.highlight-row').removeClass ('highlight-row');

$(this.triggeringElement).parent().parent().children().addClass ('highlight-row');

This works fine first time around however if the loans region is refreshed the javascript stops working and the current row is not highlighted.

Thanks


Neal



This post has been answered by fatehcis-JavaNet on Jan 9 2014
Jump to Answer

Comments

fatehcis-JavaNet
Answer

Hello,

What is the Event Scope ?

It should be Dynamic.

You can create another DA the Event of which is:

After Refresh.

Selection Type: Your Report

Marked as Answer by nbyrne76 · Sep 27 2020
nbyrne76

Hi Mindmap

My dynamic action is setup as follows

When

Top

*
*
*

True Actions

Top

The following actions will be fired when the 'When' condition is met, or when it is 'No Condition'.

EditSequenceActionFire On Page LoadSelection TypeAffected Elements
Edit10Execute JavaScript CodeYesRegionLoans

nbyrne76

the jQuery Selector value is ".updateLoanNo" - it is not showing above for some reason

nbyrne76

Link text being - #LOAN_NO#

Link attributes - id="#LOAN_NO#" class="updateLoanNo"

nbyrne76

If i refresh the page the highlight works fine on clicking the link - its only when the account no is updated which fires a dynamic refresh of the loans area the highlight stops working when clicking the link. Refreshing the page again makes the highlight start working again when clicking the link.

Tom Petrus

As Mindmap indicated, set the "Event scope" of your dynamic action to "Dynamic" as it will be on "Static" now. It is under the "Advanced" section of the dynamic action, under the true and false actions.

nbyrne76

Thanks Guys - Learn something new everyday!

1 - 8
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Feb 6 2014
Added on Jan 9 2014
8 comments
644 views