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

Tags: Database

Similar Questions

  • Interactive report based on the hidden column cell color

    Hello

    APEX 5.0.1 used here.

    How can I set the color of a specific cell (or column) based on a hidden column?

    Seems the link that I can't use the built-in feature because I need the custom color returned by my request.

    I tried to set the color with javascript by iterate over each line, by taking the value. text() of the color column and value

    This color-specific cell. It works, but it requires the column is visible.

    A column containing a hexadecimal value of the color does not look good...

    I tried to hide / display: no column complete but this messes up the layout.

    THX

    the force says:

    APEX 5.0.1 used here.

    How can I set the color of a specific cell (or column) based on a hidden column?

    Seems the link that I can't use the built-in feature because I need the custom color returned by my request.

    I tried to set the color with javascript by iterate over each line, by taking the value. text() of the color column and value

    This color-specific cell. It works, but it requires the column is visible.

    A column containing a hexadecimal value of the color does not look good...

    I tried to hide / display: no column complete but this messes up the layout.

    Specify the color of cell required using the hidden column and a data attribute to the property Expression of HTML in the column:

    #VISIBLE_COLUMN_ALIAS#

    Apply a static ID of the visible column to serve as a selector, jQuery, and you can access the invisible color value in your JS code in dynamic action to run the JavaScript Code using the dataset property.

  • Updated interactive report based on shuttle Page

    I am trying to create an interactive report based on the selected items in a shuttle service.  On the page there is a page entitled P2_ITEMS element which is a shuttle service.  It displays a list of items for the user to choose and returns the item_id, the primary key of the main table.  I then an interactive report on the same page that displays data for the item_ids selected in the shuttle.  I use the sql query below in my interactive report, but nothing shows up in my report.  How can I get the interactive report to be updated when items are selected in the shuttle?

    Select

    a.date_loaded,

    b.item_type,

    c.Item,

    a.info

    point a, item_type_lookup b, item_name_lookup c,.

    where instr (': ' |: P251_ITEMS |': ',' :'|| a.item_id |': ') > 0

    and a.item_type_id = b.item_type_id

    and a.item_name_id = c.item_name_id;

    Hello

    Please, install application example sample Dynamic Actions. There are exactly what you are looking for (side Server-online shuttle refresh).

    Kind regards

    Pavel

  • Interactive report based on a Collection

    Hi guys

    Using Apex 3.2

    I have a classic report based on a collection, which works very well.
    I am now trying to create an interactive report based on the same query (collection), but no data is returned.
    I there something special I need to do an interactive report.

    See you soon


    Gus

    Hello Gus,

    First time when you create a report based on the collection ir, it does not include the columns in the display (don't know why)

    pls select the correct answer to help others

    Thank you

  • 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

  • interactive report based on an existing table

    Many people, it is the next step in the construction of my app.  I watched a tutorial of utube produced from a worksheet a table in a database and a set of pages to enter data and to display and edit data in the table.  I already have the table and I would like to make the pages I've seen.  a spreadsheet as a table which allows the edition of each row and a button create on top.  I guess I was also able to delete a line if necessary. I think I need to creata a page, select report and interactive report.  Continues in this way, I get a request for a sql statement that will likely tell the page generator that he needs to create the report.  I need to make the report based on a table in another table space.  At this page, I entered in the query designer and my table space is not listed, only the current APEX of table space is available.  I went in a different direction to create a form for a table and to the bottom of the sequence, he also requested information in the table.  My table db space is listed as available and I am able to create the registration in a satisfactory manner.

    Then, why I can see and interact with my db table space when you create a form for a table but can not find the db table space when you generate an interactive report?

    Also, I'm heading down the correct path for the interactive report, that I need?

    "HustlingHare" alright, get ready to be the hero.  "" "You're almost there. '"

    (1) Firstly, nuke has report page IR that you just created.  You don't need it.

    (2) then go back and run the wizard to create a Page.  Choose 'Form', then 'form on a Table with the report '.  Because your DBUSER1 has privileges discrete objects on the table in the schema DBUSER2, DBUSER2 must appear in the select list of "Table / view owner" in this wizard.

    Follow the steps in the wizard to create the interactive report and form, and you're done!

    Joel

  • Interactive report based on the view

    Hello!

    I just started to rewrite my apps of forms at the Apex.
    Based on an existing view, I want to create an interactive report, but there is only the choice between 'Table' and 'SQL statement'.
    Is it possible to use the view directly (not in a SQL ' select * view)?

    Concerning
    Pietja

    Hello Pietja,

    In my APEX env (3.2) an IR cannot be based on a SQL query. You can use the Query Builder to select a table or view, but still he ends with an SQL statement.

    Greetings,
    Roel
    http://roelhartman.blogspot.com/
    You can reward this response in marking it as useful or Correct ;-)

  • To update the database by using selection lists in an interactive report

    I use the Application Express 4.2.6.00.03.

    I have an interactive report in two columns with a selection list in the second column. The generated query the report is

    Select pn.project_name,

    (Select APEX_ITEM. SELECT_LIST_FROM_QUERY(2, PN.) Batch, 'SELECT status_name d, r from RES_STATUS order by sequence batch', NULL, 'NO') of double) STATUS

    of res_project_name_detail pnd, pn res_project_name

    where pn.project_name_id = pnd.project_name_id

    Now I need to find a way to change the database to reflect the changes made to a select list that appears in the second column (batch) as they are made. Are there any suggestions as to how this could be done? I have experience of limited Java script if a solution that I can use directly would be great.

    Martin

    Reference SebastianR


    created a small example

    https://Apex.Oracle.com/pls/Apex/f?p=28281:16:16619647501605:no:

    WORKSPACE:-REEMATEST

    username:-test

    password:-test

    application 28281

    page 16

    hope this helps you in some way

  • How to highlight the selected line in an interactive report in apex5?

    Hello

    I want to emphasize the selected line in the report by changing the background color of the line. Basically, I want to do this. I really want to do is, select a row in the report and according to the selected line, I want to retrieve other data to another interactive report on the same page. So, how can I do this?

    Hi geslin,.

    Garza says:

    But here shows a link to another page or something like that. But I don't need that. I just want to show when the user selects a specific row by clicking on this line, and it should show that it has been selected by changing the color of the line and after having extracted a few hidden field and according to those column data display data on another report on the same page.

    Check your Application-> Page 2 30870. I've set up a dynamic action to reach the line highlighted when selected.

    Here are the steps to achieve the highlighted line:

    • Changed the definition of class employee culminating point to CSS-> section of the line on the page:
    .highlight-employee
       {
        background-color: blue !important;
        color: white !important;
       }
    
    • Commented the code written in JavaScript-> Execute JS when the section of the page to load the page.
    • Edited the ROWID of your interactive report column and set the following properties for 'column link:

    Text link: #ROWID #.

    Link attributes: id = "" #ROWID # "class ="monlien""

    Target: URL

    URL: javascript:void (0);

    • Dynamic action created with the following properties:

    Name: highlight_selected_row

    Event: click on

    Selection type: jQuery Selector

    jQuery Selector: a.mylink

    Action: Run the JavaScript Code

    Fire on loading the Page: No.

    Code:

    var row_id = this.triggeringElement.id;
    $('#P2_NEW').val(row_id);
    $('#'+row_id).parent().closest('tr').find('td').addClass('highlight-employee');
    

    Scope of the event: Dynamics

    Kind regards

    Kiran

  • Select columns when downloading interactive reports

    Hello
    We have a requirement defined by Oracle Corporate Security Architecture Review Board to prevent some columns to display when downloading interactive reports in csv format. They should appear on the report, but not on the csv output.

    I vaguely remember it was possible when interactive reports have been made public, but I can't find a way to do so at the ApEx 4.1? When I go to the print attributes > columns in the report, I can see the list of columns, and they all get to see the report = Yes, but there is no way to make it no. it seems that all the selected columns to display in the interactive report are automatically included in the download.

    Our applications are hosted on apex.oraclecorp.com, I can provide more details if necessary.

    Please inform if there is a way to exclude the columns during the download.

    Kind regards
    Isabelle Fallon

    Change the definition of column you want in the CSV file and add a conditional view:

    Condition of Type: Ask! = Expression 1
    Expression 1: CSV

  • Interactive report based on sysdate filter

    Hello

    I have an interactive report in an APEX 4.0 application. One of the columns in the report is a date field to date in the format "MM/DD/YYYY". I want to install a filter on the report so that the report displays only records where the date is the system date. How can I do? I don't want to install the filter on the side of the query.

    Thank you
    Machaan

    Machaan,

    You could do this with a filter of lines.

    (1) for the execution of your interactive report, go to Actions-> filter
    (2) type of filter, select the option 'Row '.
    (3) enter an expression such as: TRUNC (E, 'DD') = TRUNC (SYSDATE, 'DD')

    Obviously, your filter would replace 'E' in the above expression with the right letter for your specific date column.

    Joel

  • 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.

  • How to get the print page numbers in a report based on another report

    Hello


    I have a requirement in which I need to print the page based on another report number
    example my game application has 3 reports

    1 report prints the pages 1-100
    Report page no. 2 should start from 101 to 110
    3 report 111-

    Can someone make me please how to do this?

    THX in advance
    Kumar

    Hello

    You can create all report queries three in a single report, create a separate query in the data model and then create the layout in the proper sequence as required.

    If you want to use separate reports only you can try the following:

    In the first report, use the shutter release after report and record the total number of pages of a table as a record.

    In the second report, extract the value stored in the table and add it to the Page No. to get the Page number for the second report.
    Also in the second report use the shutter release after report and update the record created first in the total number of pages + total number of pages of the first report.

    In the third report to extract the value stored in the table and add it to the Page No. to get the Page number for the third report.
    Don't forget to delete the folder created in the trigger after the third report table report.

    I hope this helps.

    Best regards

    Arif Khadas

  • How to create a report based on the selection of a node of a tree

    Hello

    I am new to Oracle Apex and tried to build a tree and also an interactive report based on column empno from emp table.

    I created a tree based on the emp table. Now, I want to see the records in the employee selected in the tree.

    This is the query of the tree:

    Select case when connect_by_isleaf = 1 then 0
    When level = 1 then 1
    of another-1
    end the status,
    level,
    'ENAME' as the title,
    NULL as an icon,
    'EMPNO' as value,
    NULL as ToolTip,
    NULL as link
    of ' #OWNER # '. " EMP.
    Start by "MGR" is nothing
    connect prior "EMPNO" = "MGR".
    siblings arrested by 'ENAME '.

    Can someone tell me step by step how to go from here?

    I tried to follow the thread Re: question of tree but could not understand a lot of it.

    The approach to reload the page and display the report is fairly simple.

  • You start by creating a new page element that will be used to store the selected node ID, for example. P100_SELECTED_NODE (you can do atext element and change hidden once everything works as expected)
  • Change the query of the tree and the link column in the SQL of tree definition to a link to the same
    for example if your page is 100, you'd do the tree node a link to the same page but the value of the P100SELECTED_NODE with id_ of the node selected
    This is done here
    {message: id = 4410987}
    In this case, it would be

    ' f ? p = & APP_ID.: 100 :'|| : APP_SESSION |': P100_SELECTED_NODE :'|| EMPNO as link

    Now when you click on a link to tree node, it would be back to the same page, but set the P100_SELECTED_NODE with the empno of the clicked node.

  • All that's left to do, change your report so that it refers to the new point inorder to filter records for this employee empno i.e

    SELECT ...
      ..
    WHERE empno= :P100_SELECTED_NODE
    
  • How it is possible to create the chekbox in interactive report column header and select all the features.

    Hello

    My requirement is

    Interactive report the first element of box check columns and the topic also point check box.

    If I click on the element of box section columns and then automatically select all the lines in the box.

    Select all / deselect all interactive report header check box.

    Kind regards

    Arianne.

    Check this box

    https://Apex.Oracle.com/pls/Apex/f?p=76604:2:111027941779152:

    username:-test

    password:-test

    SELECT

    APEX_ITEM. HIDDEN (2, null, null, 'f02_': rownum) |

    APEX_ITEM. CHECKBOX2 (P_IDX-ONLINE 01,

    P_VALUE-online null,

    P_ATTRIBUTES-online null,

    P_CHECKED_VALUES => NULL,

    P_CHECKED_VALUES_DELIMITER => ':',

    P_ITEM_ID-online 'f01_ ' | ROWNUM,

    P_ITEM_LABEL => ' label for f01_ #ROWNUM # ')

    as Delete1,.

    of the double

    Choose the column type: report

    in the heading of column delete1

    Simply put

Maybe you are looking for