Highlighting a value in an interactive report

Hi,
I have an interactive report on which i have a column which displays either "Y" or "N". My requirement is to display "N" in bold and red color for every record having N. How can i make it work in my interactive report.
Thanks

Hi Andy,
I am sorry but didnt understand what you are asking thats why i posted my query. I didnt understand what you meant by standard report column. It was highlighting N in my previous post because i didnt write my code in CODE tag. Npw please have a look.
select "DBNAME" ,
"DBID" "Database ID",
"INSTANCE_NAME" "Instance Name",
"VERSION",
"CREATED" "Creation Date",
"HOST_NAME" "Host Name",
DECODE (DB_TYPE_CODE,'P','Production','D','Development','T','Test','Unspecified') "Database Type",
"NLS_CHARACTERSET",
"NLS_NCHAR_CHARACTERSET",
"GLOBAL_DB_NAME",
"SITE_CODE" "Site Code",
"RECORD_CREATION_DATE" "Registration Date",
"DB_STATUS" "Status",
"COLLECT_STATS" "Collect Stats",
CASE CONMON WHEN 'N' THEN
'<span style="font-weight:bold; color:red">No</span>' ELSE 'Yes' END
"Monitor"
FROM "#OWNER#"."MONITORED_DATABASES"
ORDER BY dbnameThis is a table column which i am displaying as it is. Is it what you meant by "Standard Report Column"?
Salman

Similar Messages

  • Count a distinct column value in an interactive report

    Hi,
    I'm struggling with this and would appreciate any pointers.
    I have built a view here:
    http://apex.oracle.com/pls/otn/f?p=11189:1
    The report can have duplicate column values. I'm tying to find a way using the interactive report functionality (i.e. without modifying the underlying SQL) to count a distinct column value. For example, in the example following the link I'd like to be able to count the unique customer_ids and return 7.
    This may be fundametally impossible depending on the way the SQL is generated for the interactive reports. If this is the case can anyone confirm this?
    Many thanks
    Yog.

    <B>"Not modifying views is fair enough. But not wrapping a SELECT around them? Really? Why? And as I said, that's imposible, the IR already does it."</B>
    This is not a problem. However for the IR's it's a development decision to keep all reported columns ( and analysis on these columns ) as a seperate development process to be controlled centrally by a seperate team. The point to remember is that the app looks at hundereds of views and it was decided that modifying each report to fit each instance would become cumbersome to manage and to put it simply there are not the resources to do it.
    again, I'm not here to justify any of that!
    <B>SELECT *" ? Every single time? Even when you want to populate a LOV with some names</B>
    No just the Reports. It is a very very simple app; a big list an a page for each report.
    <B>"I think you should always ask what you want, not less, not more"</B>
    I agree, and that should include select * from view.
    <B>"Why fetch data you don't want to see"</B>
    Some users will want to see some data from the view and other users will want to see other data, Over the whole user base someone somewhere will want to see all of it.
    <B> Actually, there is something good in this, in the future, when you will be asked to check and try to improve the load time of some page, here is the first place where you should look</B>
    Brilliant! Like it!!
    <B>Does it by any chance fetch a bunch of 20 meg LOBS and then discards them</B>
    No, Thankfully a few varchar2 columns and a lot of numeric columns, nothing huge. The reports are acutally pretty fast at the moment...

  • Pass value from previous interactive report to create record form

    Hi All,
    I am an APEX newbie and have an APEX 3.2.1 application that is still being developed that is working reasonably well. The problem I am having is the following:
    I have 3 interactive reports. These are defined on their respective tables, namely, clients, servers, and databases. By clicking on a client name, it shows the servers that are associated with that client. By then clicking on a server, it shows me the databases that are on that specific server. I am able to perform updates, deletes and inserts on all of these.
    In order to say create a server, i click on the name of a client and it brings me to the Server Interactive report to see the associated servers. I then click a "Create a Server" link that brings me to the create a server page. The issue i am having is that I would like to have the previous value of the primary key (Client ID) passed from the Server interactive report to the form where i create a new server so that the client ID is already populated in the Create a Server form. Presently, the only way i am able to do this is by defining the client ID column on the Create a server form as a select list and displaying ALL the different clients. By selecting a client name, this list then returns the client id associated with that client name. This is a potential source of confusion for the users and it would be much better if the client ID was already in a text field that is disabled and all they have to do is fill out the other fields of the form.
    I would greatly appreciate any help in this matter as I am fighting project deadlines. I have seen other examples that are similar, but i am still experiencing difficulty.
    Thanks,
    Tim

    Hi,
    I am still very confused as to how to get this to work.
    I cannot have the value passed by clicking the client ID link from the Server Interactive Report in order to populate the Client ID field in the Add Server Form. It MUST be done by clicking an Add Server button that will pass the value as well as take me to the Add Server Form. So far, I have only been able to have the value show up if i click the client ID column on the Interactive report that has a column link defined as follows:
    Name VALUE
    P9_CLIENTID #CLIENTID#
    However, when i do have the value passed this way i receive the following error message which proves that it is not saving the god damn state!
    ORA-01400: cannot insert NULL into ("USERS"."NEW_SERVERS"."ClientID")
    Error Unable to process row of table NEW_SERVERS.
    Even if the value appears in the text field, it isnt really there!
    How to make it know the value is there is beyond me.
    I dont know what to think of this situation. I have tried all types of settings and I have a feeling it will be 2010 before this is resolved.
    It is really frustrating, it has been days i am trying to get this to work...
    Thanks,
    Tim

  • Referencing a row level field value in an Interactive Report using jquery

    I have an Interactive Report with a row level select_list:
    select ename "Employee Name",
    mgr "Manager",
    empno,
    APEX_ITEM.SELECT_LIST(
    p_idx => 3,
    --p_value         =>   deptno,
    p_list_values => 'Copy;Copy,Delete;Delete,Export to PDF;Export to PDF',
    --p_attributes    =>   'style="color:red;"',
    p_show_null => 'YES',
    p_null_value => NULL,
    p_null_text => '--Select--',
    --p_item_id       =>   'f03_#ROWNUM#',
    p_item_id => 'P6_IR_SELECT_LIST',
    p_item_label => 'Label for f03_#ROWNUM#',
    p_show_extra => 'YES') "Actions"
    from emp e, dept d
    where e.deptno = d.deptno ;
    When a user selects "Delete", i'd like to delete the EMPNO based on the row where the user selected "Delete". I have tried alerting on the following, but cannot figure out how to capture the row-level EMPNO:
    alert($v('apexir_EMPNO'));
    alert($('#apexir_EMPNO').val());
    Can someone tell me how to reference the specific EMPNO per row?
    Thanks in advance!
    John

    What about this:
    Dynamic action
    Event: change
    selector: jQuery selector:
    select[name="f21"]
    True action
    Exec JS code
    var row = $x_UpTill(this.triggeringElement, 'TR');
    var otherElement = $('input[name="f20"]', row)[0];
    console.log(otherElement.value);
    http://apex.oracle.com/pls/apex/f?p=45448:11 (bottom half)

  • Pass Values from Interactive Report

    Hello,
    I am sure this is an easy question, but I haven't been able to find the solution myself.
    I have an interactive report that has 6 columns, which are:
    Last Name
    First Name
    Day
    Start Time
    End Time
    Link Column
    I need to assign an ID which is not shown in the report, the Day, Start Time, and End Time to variables P5_IDX, P5_DAY, P5_START, and P5_END to be used
    as Display only items on another page.  I can only pass 3 values using the column link in the IR.
    Is there another way to pass more than 3 values from an interactive report?  Sorry if this has been asked and answered previously.  I searched the forums and didn't find an answer, but maybe a searched with the wrong keywords.
    Thanks for any and all assistance,
    Bob

    Hi,
    As per my understanding ur requirement is as below.
    When the user clicks the 'Link Column' it should redirect to another page with the value of id, Day, Start Time, and End Time.
    Hope all the cloumns are from the same table.
    As Denes said, it is enought to pass the ID value to the link column as of below.
    ie., u can modify ur query as of below.
    SELECT Last Name,First Name,Day,Start Time,End Time, ID as "Link Column"
    FROM t.
    Now u can pass the value  as #Link Column# which will pass the ID value to the next page.
    Hope my understanding is correct.

  • Dynamically set maximum row count in Interactive Report

    Hi,
    Has anyone worked out a way of dynamically setting (e.g. via select list) the maximum row count value for an Interactive Report, taking into account issues with order by when the report is filtered. I'm aware of solutions like this: http://www.talkapex.com/2010/10/apex-reports-no-limit-downloads.html but as far as I can tell this doesn't work when the report is filtered and the IR is rewritten in the background. Data sets then become unreliable because they are reordered.
    Thanks,
    Mike

    Hi Mike,
    You can do that with javascript
    gReport.search('SEARCH',100)the 100 you can replace for any number you like.I have a report with filter,sorting and groups and it is gives no problem there.
    any number means any number but not higher than the number you set at Maximum Rows Per Page.
    You probably can mix the solution from Martin and the above code.
    Regards,
    Kees Vlek
    <tt>Company: http://www.orcado.nl
    Blog: http://www.orcado.nl/blog/blogger/listings/69-kvlek
    Twitter: http://www.twitter.com/skier66</tt>
    If the question is answered please change it to answered and mark the appropriate post as correct/helpfull.
    Edited by: kvlek on 24-apr-2013 12:29
    Edited by: kvlek on 24-apr-2013 12:35

  • Can I run a BI Publisher report from interactive report

    Hi,
    I have an APEX interactive report and want to run a BI publisher report by clicking on a column value within the interactive report. Is that possible?

    Hi 918900,
    This is possible.
    Set the column in the interactive report as link to page 0 with the report name in the request field
    PRINT_REPORT=<your report>. Don't forget to specify the Display type for the column as 'Standard Report Column'.
    Geert.

  • Saving checkbox-state to table in Interactive Report

    Hi,
    I have been working with the information on http://www.apexninjas.com/blog/wp-content/uploads/2012/03/Checkboxes_in_Interactive_Reports.pdf to create an interactive report with a column containing a checkbox for each row.
    My report contains the following (simplified):
    Task_id, Employee_id, Checkbox_column
    The checkbox_column keeps track of which employees work on which tasks, so it could be:
    Task_id, Employee_id, Checkbox_column
    1               1                         0
    1               2                         1
    1               3                         0
    signifying that only employee 2 works on task 1.
    Now, I need to be able to change the 0 to 1 by clicking the checkbox, which already is possible, but I have problems saving that row to the database. Saving the checkbox state is also included in the PDF I used (page 12-14, 'Saving the checkbox state #2'), but I don't really understand where to put the scripts, I haven't worked with scripts and processes before so I could use some help understanding which script I need to put where. All in all, it's not too much code, I just don't understand where to put it.
    The scripts mentioned in the PDF are:
    The first one is a SQL-statement or a package, I imported the package in my environment, so I won't put the SQL here
    This is the only one I know where to put:
    <script type="text/javascript">
    function getCurIRTab()
    var temp_base_report_id = $v('apexir_report_id');
    return temp_base_report_id;
    </script>
    This I don't know where to put:
    <script type="text/javascript">
    document.getElementById('P_IR_REPORT_ID').value = getCurIRTab();
    </script>
    the PDF says:
    Now, create a hidden (just hidden, not protected!) item called P_IR_REPORT_ ID inside a HTML region.
    Important! This region has to be rendered afterthe Interactive Report, so create it in the “after footer” display point!
    In this regions’s footer paste the following JavaScript code, that will assign the hidden item P_IR_REPORT_ID the value of the Interactive Report ID.
    But can we create a region in the after footer?
    This I don't know where to put because the document doesn't specify it:
    apex_ir_query.ir_query_where
    (:APP_ID,--application id
    99,--page id
    :SESSION,--sesion ID
    : P_IR_REPORT_ID -–interactive report ID);
    This I don't know where to put, but I guess it's a 'processing' process:
    declare
    whereStmt varchar2(2000);
    sqlStmt varchar2(2000);
    begin
    whereStmt := apex_ir_query.ir_query_where(:APP_ID,
    99,
    :SESSION,
    :P_IR_REPORT_ID);
    sqlStmt := 'update CHK_TEST set SELECTED = 0 where SELECTED= 1'||whereStmt;
    execute immediate sqlStmt;
    if APEX_APPLICATION.G_F01.COUNT>0 then
    FOR i in 1..APEX_APPLICATION.G_F01.COUNT LOOP
    update CHK_TEST
    set VALID_LINE = 1
    where SELECTED_ID = APEX_APPLICATION.G_F01(i)
    and VALID_LINE = 0;
    END LOOP;
    end if;
    end;
    Can I please get some help understanding where exactly to put these scripts?
    I've been looking around on the forum and Google but I can't find the detailed answer to what I'm looking for anywhere.
    I am currently working with the test environment Oracle supplied us, because we are testing if we can use APEX at our company.
    The version is Application Express 4.2.2.00.11 and it's running on Oracle 11g.
    Just ask if you need any more info.
    Thanks for the answers!
    NDG

    Please put together an example application on apex.oracle.com and provide developer credentials.  This would help prevent multiple posts back and forth about try this, try that, now try this, now try that......
    But until you do that try this:
    I think you already know that the following goes in the page html header.
    <script type="text/javascript">
    function getCurIRTab()
    var temp_base_report_id = $v('apexir_report_id');
    return temp_base_report_id;
    </script>
    Alternately, since you are on apex 4.2 you could just add it to the Page Attributes->JavaScript->Function and Global Variable Declaration field (without the script tags):
    function getCurIRTab()
    var temp_base_report_id = $v('apexir_report_id');
    return temp_base_report_id;
    Now you need to create an HTML region (in display point "after footer").  Then you create the P_IR_REPORT_ID hidden item inside your new region.
    In the region definition you will put the following code into the region footer:
    <script type="text/javascript">
    document.getElementById('P_IR_REPORT_ID').value = getCurIRTab();
    </script>
    Alternately, you could try to add the line to the Page Attributes->JavaScript->Execute when Page Loads field:
    document.getElementById('P_IR_REPORT_ID').value = getCurIRTab();
    This is just an example of the procedure call you will make in your page process.
    apex_ir_query.ir_query_where
    (:APP_ID,--application id
    99,--page id
    :SESSION,--sesion ID
    : P_IR_REPORT_ID -–interactive report ID);
    It is included in this code which you will put into a page process.
    declare
    whereStmt varchar2(2000);
    sqlStmt varchar2(2000);
    begin
    whereStmt := apex_ir_query.ir_query_where(:APP_ID,
    99,
    :SESSION,
    :P_IR_REPORT_ID);
    sqlStmt := 'update CHK_TEST set SELECTED = 0 where SELECTED= 1'||whereStmt;
    execute immediate sqlStmt;
    if APEX_APPLICATION.G_F01.COUNT>0 then
    FOR i in 1..APEX_APPLICATION.G_F01.COUNT LOOP
    update CHK_TEST
    set VALID_LINE = 1
    where SELECTED_ID = APEX_APPLICATION.G_F01(i)
    and VALID_LINE = 0;
    END LOOP;
    end if;
    end;
    Ok, clear as mud!

  • How To Modify Interactive Report Search Input?

    Hello All,
    I am running version 3.2 and attempting to modify (validate) the search input value on an interactive report. For example, after a user enters a string in the search textbox, I want to strip any space characters from the string and perform other operations as needed.
    I have attempted to use javascript and PL/SQL page processing, but have been unsuccessful with either. I can not figure out how to modify the javascript function called for submitting the page and the on submit page processes don't fire for interactive report pages.
    How do I modify search values on IR pages?
    Mark
    Edited by: Mark Carpenter on Sep 28, 2009 3:53 PM

    Hello Mark,
    The search item is called "apexir_SEARCH".
    Using jQuery you can add a onblur function to that field:
    $(function(){
      // Add an onblur function to the Search field
      $("#apexir_SEARCH").attr("onblur",'clearField(this)');
    function clearField( pThis ){
    //Do your thing here.
    }Greetings,
    Roel
    http://roelhartman.blogspot.com/

  • APEX 4 Interactive Report set font color of negative values to red

    I have an interactive report with several columns containing numerical values. If the value is negative, I want the font color to be red. Can someone help me with this process please.
    Application Express 4.1.1.00.23
    Thanks!
    Chris

    Hi,
    Use build in highlight
    http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21674/ir_using.htm#sthref1343
    Then save report default layout
    http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21674/ir_using.htm#CHDDDBCG
    Regards,
    Jari
    My Blog: http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai

  • Interactive Report. Cell highlight.

    Hello,
    I'm using highlight functionality in Interactive Report actively and appreciate for this feature. Question: is it possible to define ONE highlight rule to ALL cells in every column. for example I need that any cell in the report which contains number 5 must be highlighted as Red ?
    I make a simple calendar connected to our production plan and in this calendar can be up to several hundreds columns - so to define a rule for each of column is a little bit laborious...
    Thanks in advance,
    Alex

    Hello,
    Oh I see what you mean you want to highlight any cell across the report that has the value 5.
    At the moment you can only do a Cell level highlighting on a column by column basis.
    You should add this to the Enhancement thread.
    Regards,
    Carl
    blog : http://carlback.blogspot.com/
    apex examples : http://apex.oracle.com/pls/otn/f?p=11933:5

  • Changing value of input field in interactive report

    Hi all,
    I have created interactive report. On 3rd list, i had calculated total for netwr filed and it is displayed at bottom.
    netwr field on list is editable. If value in netwr changed by user , value for total should be changed on same list.
    Can anybody help me out?
    Thanks and Regards,
    Rakesh.

    Hi Rakesh
    Within the third alv's usercommand, Try this code.
    FORM user_command1 USING r_ucomm LIKE sy-ucomm
           rs_selfield TYPE slis_selfield.
        CASE r_ucomm.
             WHEN 'EDIT'.
                 <code>
                 CALL METHOD <alv_instance>->refresh_table_display
                     EXPORTING
                     is_stable = <third_alv_internal_table>
                     EXCEPTIONS
                     finished = 1
                     OTHERS = 2.
      ENDCASE.
    ENDFORM.
    This will refresh the internal table each item a edit operation is done, after this write the code to find the sum.
    Thanks and Regards,
    Rinzy Deena Mathews

  • Search bar  value from Interactive Report

    Could someone help me to acces the value entered in the search bar and pass it to another page?
    Basically our apex interactive reports has a link which allows to edit single records. However customer is looking to edit multiple records at the same time and I am thinking if I can pass the search bar value to an tabular form, then it will allow to update multiple records
    Thanks
    Rajesh Alex

    Hi Rajesh,
    There are a set of views that seem to contain the data for the IR:
    APEX_APPLICATION_PAGE_IR
    APEX_APPLICATION_PAGE_IR_CAT
    APEX_APPLICATION_PAGE_IR_CGRPS
    APEX_APPLICATION_PAGE_IR_COL
    APEX_APPLICATION_PAGE_IR_COND
    APEX_APPLICATION_PAGE_IR_RPT
    You could have a look through these to see if any help.
    Andy

  • Set Form Values From Interactive Report Row

    Using Apex 4.2.
    I have two tables: T1 and T2
    Table T1 contains five columns: CT11, CT12, CT13, CT14, CT15
    Table T2 contains 4 columns: CT21, CT22, CT23, CT24
    I have a page with two regions. Region 1 is a Form on a Table using table T1. Region 2 is an Interactive Report ( IR ) on table T2.
    The SQL for region 2 is:   select apex_item.RADIOGROUP(p_idx => 1, p_value => CT21) "Choose", CT22, CT23, CT24 from T2;
    When the user clicks a radio button for a row in the Interactive Report, I would like the values in the IR cells CT22, CT23, CT24 to populate the CT13, CT14, CT15 fields in the table form in region 1. If a user clicks another row radio button, the values should update.
    Any help is greatly appreciated.  Thanks!

    Hi,
    As per my understanding ur requirement is as below.
    When the user clicks the 'Link Column' it should redirect to another page with the value of id, Day, Start Time, and End Time.
    Hope all the cloumns are from the same table.
    As Denes said, it is enought to pass the ID value to the link column as of below.
    ie., u can modify ur query as of below.
    SELECT Last Name,First Name,Day,Start Time,End Time, ID as "Link Column"
    FROM t.
    Now u can pass the value  as #Link Column# which will pass the ID value to the next page.
    Hope my understanding is correct.

  • Dynamic Action based on Interactive Report Select List Value

    I'd like to perform a Dynamic Action when a user selects one of 3 options from a Select List within an Interactive Report:
    select APEX_ITEM.SELECT_LIST(
    p_idx => 3,
    --p_value         =>   deptno,
    p_list_values => 'Copy;Copy,Delete;Delete,Export to PDF;Export to PDF',
    --p_attributes    =>   'style="color:red;"',
    p_show_null => 'YES',
    p_null_value => NULL,
    p_null_text => '--Select--',
    --p_item_id       =>   'f03_#ROWNUM#',
    p_item_id => 'P6_IR_SELECT_LIST',
    p_item_label => 'Label for f03_#ROWNUM#',
    p_show_extra => 'YES') "Actions"
    from dual;
    When building the Dynamic Action, I chose the following values from the Advanced wizard
    Event: Select
    Selection Type: DOM Object
    DOM Object: P6_IR_SELECT_LIST
    Condition: Equal to
    Value: "Delete"
    True Action: Execute Javascript Code: Alert('Here');
    Doesn't seem to be firing...can anyone help?
    Thanks in advance,
    John

    Hi,
    I am not sure if the "equal to" condition applies to a DOM object... after all, a DOM object can be anything (any HTML element) not only a field.
    Try using a javascript expression instead, like this:
    $v('P6_IR_SELECT_LIST')=='Delete'UPDATE: Sorry, I just tested and "equal to" condition works for DOM objects... should have tested before posting!
    Luis
    Edited by: Luis Cabral on Feb 29, 2012 4:45 PM

Maybe you are looking for