Highlight conditional in standard report based on a column - endangered

Hi all

I've implemented a conditional formatting on a standard report based on the thread below

Highlighting a row in a tabular form, based on a column in the row

Everything works fine, except when you hover over the report highlighting disappears. It reappears if you refresh the page, or scroll to the next page in the report.

I use in my style in the model tag
style = "background: red".

Is this something to do with the model? I use the theme generator 2.

Any ideas?
Andrew

Hi André,.
It is in from the report model - before every line:
Just remove the # if #HIGHLIGHT_ROW you don't need.

Regards Garry

Tags: Database

Similar Questions

  • How to highlight a cell IR report based on a value in another column?

    I used the code below and the cell is highlighted for all use column formatting css #COLTOHIGHLIGHT #add to pageBut what I need is if the HIDDENCOL is 'OUT' value and Custom2 should apply if the HIDDENCOL has value 'IN' then custom1 should apply. How to do? Please help thanks loly

    Sinduja Sivasailam wrote:

    Thank you for your contributions. I understand the concern.

    As suggested, I've reproduced the problem in the environment of the APEX.

    Thanks for making the effort. I suggest the following approach, which is more flexible and allows a more efficient use of the separation of concerns as above. I created an example on a new page to illustrate this.

    1. change the report query to

    select
        jan
      , feb
      , mar
      , jan_st
      , feb_st
      , mar_st
    from
        project_status
    

    2. in the report, set the month columns to display text and status columns to be hidden.

    3. set the property Expression of HTML for each column of months to use a HTML data attribute to include metadata status as well as the displayed value:

    #JAN#
    

    4. create a dynamic action after Refresh on the IR region to retrieve the status of project code in the columns of months and apply it as a class to the cell of report element:

    Event: After refresh

    Selection type: Region

    Region:

    Real Actions

    Sequence: 10

    Action: Run the JavaScript Code

    Fire on Page load: Yes

    Code

    $('.a-IRR-table td [data-prj-status]').each(function () {
      var x = $(this);
      x.parent().addClass(x.data('prjStatus'));
    });
    

    5 Add a style sheet to the page of Inline CSS property with a rule to set the background color of cell as required for each State of the project:

    .a-IRR-table tr:hover td {
      opacity: 0.7;
      transition: opacity .1s
    }
    .a-IRR-table td.REQ,
    .a-IRR-table tr:hover td.REQ {
      background-color: #ff9;
    }
    .a-IRR-table td.INP,
    .a-IRR-table tr:hover td.INP {
      background-color: #cf9;
    }
    .a-IRR-table td.YTS,
    .a-IRR-table tr:hover td.YTS {
      background-color: #ccf;
    }
    .a-IRR-table td.CR,
    .a-IRR-table tr:hover td.CR {
      background-color: #f66;
    }
    .a-IRR-table td.COM,
    .a-IRR-table tr:hover td.COM {
      background-color: #9cf;
    }
    
  • Highlighted value in table reports using html changes column width

    I use basic highlighting using raw html SQL to select a column. However, I noticed that the column width becomes very large compared to the displayed value, maybe there also took html into consideration for length? Not sure if there is a problem with the grid itself.

    for example this piece of code, see the difference in width of columns status and status_1... Ideally I would like to see the two columns of the same size as status_1.

    select case when BP.STATUS = 'LOCKED' then '<html><body><strong><font color="blue">' || BP.STATUS || '</font></string></body></html>' 
    when bp.status = 'COMPLETED' then '<html><body><strong><font color="green">' || bp.status || '</font></string></body></html>'
    when BP.STATUS = 'PROCESSING' then '<html><body><strong><font color="orange">' || BP.STATUS || '</font></string></body></html>' end STATUS
    ,BP.STATUS STATUS
    from (select 'COMPLETED' status from dual union all select 'PROCESSING' from dual union all  select 'LOCKED' from dual) bp ;
    

    Developer SQL 4.1.1

    It's an unfortunate side effect

    We could / should have code in there to set the width based on the vs html rendering the actual html source code

    but it's a development request

  • How to classify the lines on a report based on a column value

    Hi gurus,

    I have a dimension of project, each Member of the project are a member of the ProjectStatus into account dim Smartlist Type with these values: new, ongoing, completed... and other account information such as... ProjectName, ProjectStartDate, ProjectFinishedDate...

    I want to create a report like this:

    Page: List of entity
    Column: Project Info accounts
    Rank: List of projects classified by ProjectStatus account as below:

    1. NEW PROJECT
    List of projects with ProjectStatus New
    2. THE CURRENT PROJECT
    List of projects with current ProjectStatus
    3 END OF THE PROJECT
    List of projects with completed ProjectStatus
    ....

    ProjectStatus of each project being different in any of the entities (for example: Entity01->-> ProjectStatus Project01 = New and Entity02-> Project01-> ProjectStatus = finished), it cannot be done by Decree the members of the project manually.

    Is it possible to do it automatically? In the view of the customer, it's a very simple thing with database relationship so we cannot convince those that cannot be done.

    Thank you very much
    Van Huy

    Published by: Van Huy on March 13, 2013 01:17

    You can make a step forward to deleting or sorting based on the value of your smartlist.

    You can sort based on the values, or you can perform a conditional repress.

    Create 3 identical to ProjectStatus as the first member ranks. Perform an advanced delete using the data in cell 1 A = 2 value or the value data in the cell, 1 = 3 (this will give you all the projects with the new State)

    http://docs.Oracle.com/CD/E17236_01/EPM.1112/fr_user_epm/ch02s04s02.html

    Published by: Madeleine Kattookaran, March 18, 2013 06:58

  • Highlighting the lines of State based on the results of the report

    Hello! I think it's an easy question, but I have not found an answer for her through the forums looking. Is there a way to highlight or change the colors of some dependent lines on the result set data? I'm trying to display transaction data of the customer for call center agents and highlight some rows based on the values in the results...

    Thank you very much!

    You can view a customized report (column model) model - they give you 4 places for the conditions. Here is an example:

    Column Template 1: #COLUMN_VALUE#
    Column Template 1 Expression: '#1#' like '%Total%'
    

    #1 # being the first column in your results. This isn't bad if you only need 4 conditions and know the placement of your fields - you just configured different look and feels in your CSS and change the class according to the criteria.

    Here's another way:
    http://Apex.Oracle.com/pls/OTN/f?p=11933:7

    Hope that helps...

  • Highlight duplicates in a Standard report

    Apex 3.2

    Theme 15

    Standard report template

    I have a classic report

    Select

    C001 store, shortdescr, longdescr, seq_id, delete 'delete '.

    of apex_collections, vpe_bas_cloc cloc

    where cloc.extkey = c001

    and collection_name = "VPE_STORE_COL."

    to_number order (c001)

    If c001 is reproduced in the report, I want to emphasize the lines concerned.

    I know how custumisé the report model, but what sql can I use in the report

    Thank you

    Gus

    Gus C wrote:

    Apex 3.2

    Theme 15

    Standard report template

    I have a classic report

    Select

    C001 store, shortdescr, longdescr, seq_id, delete 'delete '.

    of apex_collections, vpe_bas_cloc cloc

    where cloc.extkey = c001

    and collection_name = "VPE_STORE_COL."

    to_number order (c001)

    If c001 is reproduced in the report, I want to emphasize the lines concerned.

    I know how custumisé the report model, but what sql can I use in the report

    Add a column Analytics County to the query and hide it in the report.

    ...
    count(*) over (partition by c001) store_count
    ...
    

    Use #STORE_COUNT# > 1 as the condition of line model in the column called report model.

  • Generate reports based on two conditions

    Dear all,
    I generate reports based on satisfactory conditions in two columns in a table.

    For example.
    I have a table test1 with columns A, B, C, D, E
    Now, I want to create reports based on the research of two columns A and b. What is the preferred method to do?

    Thanks in advance.

    What is the preferred method to do?

    Write the appropriate query:

    select a,b,c,d,e
    from test1
    where a = 
    and b = 
    

    In reports, the State may be a user input parameter:

    select a,b,c,d,e
    from test1
    where a = :parameter1
    and b = :parameter2
    
  • edit interactive report based on APP_USER link conditional

    I have a users table with standard information, including a user_id column which is what is used by my access control page to connect. I have a screen of user management with an interactive report I want everyone to see all users, but I want only the link modify to display the line that represents the user who is logged on. I know there is a conditional parameter on the link change, and I tried to develop in exp1 = exp2, with & APP_USER. exp1 and exp2 user_id, but who do not seem to work. Any other ideas, or I'm doing something wrong with the way I tried to make it work?

    HI -.

    It really bothers me, this forum has a problem with the code examples, so for a while at least I posted quick example on Google:

    [Conditional column | http://docs.google.com/Doc?id=dd2tkvv6_212dbzw2ftq]

    Not to complicate too much, but if you want without empty column except a line, you could of course apply this trick to the column that contains actually the user name in your table... in other words, the user can right click on their name to go to the Edit screen, but any other name user, but they would not be a hyperlink. But it is as they say an exercise for the reader :)

    Good luck.

  • Under certain conditions changing IMG link Standard report column

    Apex 4.0.2

    I have an application that includes photos of employees. I want to display a link to the column in a report of the employee who opens a page to manage the photos of a given employee. Worked well when using an image of compatible icon for all employees.

    But I want to do is have two images of icons. If a photo already exists. Another case a photo has not yet been added.

    I have included a select with the following CASE statement in the Source of my region.

    (CASE WHEN p.person_id IS NULLTHENIMG alt = "nophoto" src ="#WORKSPACE_IMAGES #nophoto.png" > "
    ON THE OTHERIMG alt = "photo" src ="#WORKSPACE_IMAGES #photo.png" > "
    END) "PHOTO".

    I believe it works. I ran in SQL Developer, and it produces the following-

    < img alt = "photo" src = "#WORKSPACE_IMAGES #photo.png" >

    < img alt = "nophoto" src = "#WORKSPACE_IMAGES #nophoto.png" >

    I created a link to the column as a COLUMN of REPORT STANDARD. I put the TEXT of the LINK to #PHOTO #. I put the binding TARGET, PAGE and EMPTY the CACHE settings. The column displays as empty. Firebug shows an empty TD.

    I remove the binding TARGET settings, PAGE and CLEAR the cache. The img is displayed correctly. Firebug shows the < img > properly. But of course, it is therefore more a link.

    I'm doing something wrong here. But do not know what it is.

    Walt K wrote:

    Apex 4.0.2

    I have an application that includes photos of employees. I want to display a link to the column in a report of the employee who opens a page to manage the photos of a given employee. Worked well when using an image of compatible icon for all employees.

    But I want to do is have two images of icons. If a photo already exists. Another case a photo has not yet been added.

    I have included a select with the following CASE statement in the Source of my region.

    (CASE WHEN p.person_id IS NULL THEN 'nophoto'
         ON THE OTHER 'photo'
    END) "PHOTO".

    I believe it works. I ran in SQL Developer, and it produces the following-

    photo

    nophoto

    I created a link to the column as a COLUMN of REPORT STANDARD. I put the TEXT of the LINK to #PHOTO #. I put the binding TARGET, PAGE and EMPTY the CACHE settings. The column displays as empty. Firebug shows an empty TD.

    I remove the binding TARGET settings, PAGE and CLEAR the cache. The img is displayed correctly. Firebug shows the correctly. But of course, it is therefore more a link.

    I'm doing something wrong here. But do not know what it is.

    That's because the behavior of standard report is to strip the HTML code of column values used in the expressions of HTML, links in the column and the report when the data is exported as CSV files. This is controlled by the attribute of HTML report of band, which by default is set to Yes. Change this setting to No. , and link images to be displayed.

    A solution with a better separation of concerns that are compatible with the Strip HTML and display text default settings is:

    1. Select only the image name in the query [ nvl2(p.person_id, 'photo', 'nophoto') photo is simpler than the previous CASE expression] and make this hidden column
    2. Add a link in the column to the State ('add column link' in the bar of tasks )
    3. Set the property of the new column binding Expression in HTML to#PHOTO#
    4. Specify the column link attributes as required

    Last suggestion would be to display thumbnails of the photos used here where they exist rather than an arbitrary generic image...

  • Conditional display of interactive report based on the different SQL query

    Hello

    I have two drop-down list at the top of my page and below I have an interactive report.
    Based on the selection of the user from the drop-down list values, interactive report should change based on different SQL queries.

    Is it possible to have different SQL queries based on the drop-down list values and generate interactive report based on that?

    Thank you

    Hello

    You can't have IR based on function returning the query as you can have classic report

    But here is a workaround
    http://www.oracleapplicationexpress.com/tutorials/71

    Kind regards
    Jari

  • Problem of standard report "Refresh"?

    Hello!

    I work with Application Express 5.0.1.00.06, universal theme.

    Created a project with a page that contains 16 standard reports (in different tabs), 3 Graphics (complex) etc...

    In a specific report, I have a large number of files so I need to paginate it.

    I have used almost every parameter unique different pagination but the result is the same. When I click on next page or at least different control pagination of the report DISAPPEARS COMPLETELY! only if I update (button refresh the browser) the entire page, it shows the good page on this report. It happens all the time, so I have to update whenever I change the page!

    PPR is enabled on the standard report, but here's all of the parameters:

    Page layout

    Number of lines Type: static value

    Number of lines: 25

    Appearance

    Model type: theme

    Model: Standard

    Model options: default

    CSS classes

    Display Null values as

    Paging

    Type: Search 1,2,3,4 (defined according to the pagination) engine

    Partial Page refresh: Yes

    Messages

    When no data: no data found

    When more data is found:

    Break the formatting

    Report sum Label

    Columns break: no pause

    Advanced

    Custom attributes

    Maximum number of rows

    Strip HTML: Yes

    Sort NULL values: last

    Section

    Field type: Custom

    Download

    Enabled CSV export: no

    Print

    Activated: no

    External treatment

    Activated: no

    I don't know if it's the complexity of the page that has that effect or a problem of Standard report, but it is very difficult for me to take the page to the cloud and have it checked...

    I must also say that the report itself used to "play well" in earlier versions of the page... If anyone has seen similar behavior I would be grateful if it could enlighten me

    Thank you!

    Menno Jipping wrote:

    It should work fine with the automatic line extraction. However it seems that the extraction of the line sets all the values of the elements.

    Make sure that the items on the page use "Column of the database" as source type and ' Always, replace the existing values.

    Nikolas Saridakis says:

    OK, if I understand correctly there is a problem with the values in session state, because I do not see the values that I use in my queries in session state (hidden or display items)...

    These elements are based on extraction of line that happens before the header once per visit to the page. Is it possible to extract these values after update or something like that or the only option is to write my own SQL (Select...... these elements) to run after update?

    ... Now I understand why this page used to play well, because I was using a Select... into...

    but because I have many elements of the page I turned on automatic extraction of line, but I can't trigger it after a refresh... or can I?

    The item retrieved by ARF process values are not saved in session state permanent during the page processing, only in the HTML elements in the rendered page.

    If the report depends on the values of session state, then they must be put in a PL/SQL process, until the area is displayed.

  • The font size in the Standard report

    I've looked everywhere in the forum over the last three days at least to learn how to simply change the font size of the data in a standard report.  Nothing works. I have a lot of parts on a form page. I've done some parts read-only, and where necessary took some of the elements of a region read-only. We have no BI Publisher (nor the company, I work to buy it) and this is my way to allow the user to print it. Must I increase the font size for the reports on the page. I don't know that all of your answers are correct; I'm simply not being implemented properly.

    My apologies: I tried to format the raw underside like html and syntax highlighting > plain - which does not seem to be clean. The additional lines of < span > < span >... are added and when I add ECMA as above is my opinion superimposed on itself - so I removed the formatting.


    Here is what I tried:

    This added to my page template and page header
    < style >
    .t12standard tr td {make-size: 16px ;}}
    < / style >

    In a column in the report, change the HTML Expression to
    & lt; span style = "do-family: Times New Roman;" font-size: 110% "& gt;" #MY_COLUMN_NAME # & lt; / span & gt;

    This added to the attributes of the element field in the column attributes section
    < a style = "make-weight: bold;" font-size: 16px; "color: black".

    It seems that it should be so simple, but jeeezumcrow I'm frustrated!


    As always, thanks in advance for your answer!

    Alexandra

    Request Express 4.2.2.00.11

    Jeeeezum crow:

    #ISO_NUMBER #.

    That's all that I needed.
    Detective Conan.

    Nice to see you, Tony.

    Thanks for all your time.

    A

  • Select a cell of interactive report based on another hidden cell

    Greetings,

    Someone know how to select a cell in an interactive report, based on the value of another cell in the same row and without this cell being shown?

    The integrated highlight feature IR does not seem to allow me to highlight a cell based on the value of another cell (correct me if I'm wrong).

    So I tried to go with a JavaScript solution, that I found in a thread somewhere on the forums of the APEX. I created a dynamic Action with this JavsScript code:
    $('[headers = "INTENSITE"]').each(function() {
      if ($(this).text() == 1) {
        $(this).siblings('[headers = "NOM_COMPLET_USAGER"]').css('background-color','red'); 
      }
    });
    and it works perfectly when the column is displayed, but not when it is hidden (which makes perfect sense).

    So this is where I am stuck. The report has a lot of info, and I don't want to have a useless column projected and using precious space.

    Any help would be appreciated.

    Thank you
    Mathieu

    You can try the following:

    1. Add a column to your sql that contains the background for example color

    SELECT
    EmpNo,
    Ename,
    initialst,
    Decode(INTENSITE,1,'red','white') background_color
    Of
    EMP;

    2. in the new updated interactive report background_color column is hidden.

    3. Select the NOM_COMPLET_USAGER column and set the following parameters

    Link text = > #NOM_COMPLET_USAGER #.
    Link attributes = > style = "background-color: #BACKGROUND_COLOR; #
    Target = > URL
    URL = > #.

    I hope it helps

    Shunt

  • Conditionally show image report

    Hello

    I have this SQL base report
    SELECT
      POJ_CODE, -- #POJ_CODE#
      CASE poj_typ_rizika
        WHEN 2 THEN CASE
                               WHEN poj_typ_pripojisteni IS NULL THEN '<span class="ui-icon ui-icon-circle-plus"></span>'
                               ELSE NULL
                             END
        ELSE NULL
      END pripojisteni -- #PRIPOJISTENI#
    FROM
      N_POJISTENI, 
      FISPRO_USER
    WHERE
      POJ_PREDMET = :P42_PRE_CODE and
      POJ_VYTVORIL = USR_CODE
    Now, I try to use #PRIPOJISTENI # in the link column, but with problems (maybe the exhaust apex tanks in #PRIPOJISTENI #). My settins in the links in the column are:

    Display as: Standard report column
    Text link: #PRIPOJISTENI #.
    Target: URL
    URL: javascript:pridejPripojisteni(#POJ_CODE#)

    When I run this report in the column "Pripojisteni" there's nothink (#PRIPOJISTENI # value is not NULL) in the column :-/
    <table class="report-standard" cellspacing="0" cellpadding="0" border="0" summary="">
      <tbody>
        <tr>
        <tr class="highlight-row">
          <td class="data" headers="POJ_CODE"><td>
          <td class="data" headers="PRIPOJISTENI">
          <a href="javascript:pridejPripojisteni(113)"></a>
          </td>
    correct version should be
    <table class="report-standard" cellspacing="0" cellpadding="0" border="0" summary="">
      <tbody>
        <tr>
        <tr class="highlight-row">
          <td class="data" headers="POJ_CODE">
          <td class="data" headers="PRIPOJISTENI">
          <a href="javascript:pridejPripojisteni(113)"><span class="ui-icon ui-icon-circle-plus"></span></a>
    </td>
    </td>
    Anyone know what to do to the good running report? Problem look like which is somewhere in excaping when you use #PRIPOJISTENI # in link. I'm not sure.

    David

    David,

    It works for me, then try this

     .... THEN 'test' 
    
  • Standard reports with links

    I am creating a dashboard on the homepage of my application for the logged in user. The page would have ideally 2 interactive reports, they could click on browse to change the record. It seems that I can use only 1 interactive report by page. Is it possible to add links to standard reports to map to the edit page?

    Thank you

    Blake

    You're right that you can not use more than one IR on a page. And Jeff is absolutely right that you can use the report form.

    However, if you already have a form of change based on the data that you want to change, you can indeed create a standard report and then bind it to your existing.

    Simply create the report on your dashboard Page as you normally would. When it's done and working the way you want to, change the dashboard page and then change the ratio of the attributes of this report. Chose the column that you want to link to the form and click the change (to the left) for this column. Scroll down to the region of the COLUMN LINK on the page. This is where you can configure the column to be a link to another page (or url).

    Depending on the column in which you have chosen, you probably want to use one of the built-in images, nor the value of the column for the link text. Quick links below this field will help you with this.

    To TARGET, select "Page in this Application" and then enter the page number of the PAGE editing screen.

    You'll also want to pass through the ID of the item that you want to edit the page. You do this by placing the name of this element (i.e. P29_ORDER_ID) the NAME and the replacement for the value variable (i.e. #ORDER_ID #). Fortunately, the strobe lights little help with this as well.

    Once you have done so, apply your changes and your link to appear in your report!

    I hope this helps.

    Doug
    www.sumneva.com

Maybe you are looking for