Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9130019
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T07:52:44+00:00 2026-06-17T07:52:44+00:00

I have two reports. Clicking on a column link in the primary report reveals

  • 0

I have two reports. Clicking on a column link in the primary report reveals details about it in the secondary report, and clicking the link refreshes the page (Maybe if only the second report was refreshed using AJAX I wouldn’t have the following problem, but I figure this will be harder to implement and maintain).

I have a javascript function like this to highlight the row:

function highlight(pThis) {
    $x_RowHighlight($x_UpTill(pThis,'TR'), 'pink');
}

But the row of course does not remain highlighted when the page refreshes. I would love to maintain the session state of pThis, if that is possible.

I also have a requirement to place a next button in the secondary report, that would show the details of the next row in the primary report, and highlight that row as well.

Any suggestions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T07:52:45+00:00Added an answer on June 17, 2026 at 7:52 am

    I’ve put together an example page with all code on it: http://apex.oracle.com/pls/apex/f?p=54687:39

    I’ve made it a bit more involved because i wanted to account for a column link. When the link is clicked, the row has to become highlighted aswell. Note that it will only work as long as you remain on the same page (or rather, as long as you are on the same IR page) like this. I now even notice that it’ll keep the row colored when you navigate to the page and reset pagination – oh well, this is a good jumping point.

    I used the rowindex for a good reason: a good solution for an IR doesn’t really exist, and will always be very much custom coded. You’d actually need a value(or values) by which you could uniquely identify rows. That gives some problems since for example hidden columns are not rendered in the HTML. If it is in column, it could very well be that users can hide or in some way remove the column from the html (don’t display it, apply grouping,…).


    I’ve edited my example application page to include a way to deal with classic reports too, after viewing Matthew’s own answer. I’ll try to pick it apart a bit.
    1) i wouldn’t ‘hide’ my column by reducing the width. Just hide your column using the column attributes and change the type to hidden.
    2) you don’t really need a column item, unless you really mean to remember that. But i don’t really see the point of it unless you allow clicking an entire row (as i did in my IR example, but i dismissed that idea for the classic report)
    3) (a+b+c) I did this completely different. I think it is a much better way to assign a class to the row element, as this allows much better manipulation and traverse. The $x_RowHighlight function adds a style attribute to the td elements, and i don’t like that. Controlling the style through a class and CSS is much more versatile.
    I’d also argue that AJAX is not required here! When you click the link, you can directly set the item value and not go through an ajax call. I’d also argue that this does not need to be a synchronous call (which htmldb_Get is by default), but can be asynchronous as to not make the browser wait for a return (there is none).
    Nevertheless, you could require ajax if you want to set it up as in my IR example so that clicking anywhere on a row would select the row.
    As for selecting the next row: in my example you’d need to replace the changing of the input item to a click on the link column – shouldn’t be to hard!


    Performing an async call with htmldb_Get:

    var ajaxRequest = new htmldb_Get(null, $v("pFlowId"), "APPLICATION_PROCESS=some_process", $v("pFlowStepId"));
    ajaxRequest.addParam("x01","some value"); -- adds a parameter to the request, good for the x## variables
    ajaxRequest.add("P1_EMPNO", "some value"); -- adds the key-value to p_args_names en values: page items!
    ajaxRequest.getAsync(function(pResponse){
       if(pResponse.readyState==4&&pResponse.status==200){
          //call finished successfully
          console.log(pResponse.responseText);
       };
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two models Clients and Reports. A Client has_many Reports and a Report
I have two reports built using SSRS 2005. The first report is set to
I have two tables: events_archive and reports. The events table shows all information about
Background: We have two directories of Crystal Reports for both the web side of
I have two git repositories: report.git (Master on remote location) cloned.git (Local) I lost
I have two objects List<Report> List<Newsletter> I need certain properties like Id Date Status
Can you have two tables in Visual studio 2008 report (in the report control)
I have two list of different objects : List<Report> List<Newsletter> each having a 'created
I have a report with two separate tables referencing two separate datasets. The first
I have a problem with CR (version that ships with VS2008). Report has two

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.