Conditional Column Formatting in an Interactive Report?

Is it possible to add conditional column formatting in an Interactive Report in Apex 4.1? I've found numerous examples for older versions using the standard (classic) report, but I haven't found any with the new Interactive Report. Is this possible? and if so, can someone point me in the direction of some documentation or examples?
I simply want to change the color of the text depending on whether a column has a value (eg. Error or Problem).
Thanks

JB wrote:
Is it possible to add conditional column formatting in an Interactive Report in Apex 4.1? I've found numerous examples for older versions using the standard (classic) report, but I haven't found any with the new Interactive Report. Is this possible? and if so, can someone point me in the direction of some documentation or examples?
Oracle Application Express (APEX)
As interactive reports lack the HTML Expression feature of standard reports, the simple way to do this unfortunately requires violating the separation of concerns and generating structural (a <tt>span</tt> element) and presentational (an in-line style sheet) aspects in the query:
select
⋮        
       , case
           when trunc(calling_date,'DD') =  trunc(sysdate,'DD')
           then
             '<!-- ' || to_char(calling_date, 'YYYYMMDD') || ' --><span style="color: #3399FF;">' || to_char(calling_date) || '</span>'
           else
             '<!-- ' || to_char(calling_date, 'YYYYMMDD') || ' --><span>' || to_char(calling_date) || '</span>'
         end calling_date
⋮For number/date columns to be properly sortable, the leading edge of the column must be an HTML comment that provides the required sort order using character semantics, as shown here.
The Display As column attribute for such columns must be set to Standard Report Column.
This method has side effects: some IR filters won't work; aggregate calculations can't be applied to the column; and report exports contain the HTML rather than the expected value.
Other approaches involve using Dynamic Actions/jQuery/JavaScript, or using the built-in highlight as suggested above, then saving the highlighted report as the default.

Similar Messages

  • Default Style Column Breaking in an Interactive report

    In a normal SQL report there are two types of column break formatting:
    1) Default Breaking Format e.g.
    aaa 123
            456
    bbb 789
            123
    2) Repeat Headings e.g.
    aaa
    123
    456
    bbb
    789
    123
    Interactive reports seem to only implement Repeat Headings . Is it possible to break columns in an IR report using "Default Breaking Format"? If so how?
    thanks
    PaulP

    JB wrote:
    Is it possible to add conditional column formatting in an Interactive Report in Apex 4.1? I've found numerous examples for older versions using the standard (classic) report, but I haven't found any with the new Interactive Report. Is this possible? and if so, can someone point me in the direction of some documentation or examples?
    Oracle Application Express (APEX)
    As interactive reports lack the HTML Expression feature of standard reports, the simple way to do this unfortunately requires violating the separation of concerns and generating structural (a <tt>span</tt> element) and presentational (an in-line style sheet) aspects in the query:
    select
    ⋮        
           , case
               when trunc(calling_date,'DD') =  trunc(sysdate,'DD')
               then
                 '<!-- ' || to_char(calling_date, 'YYYYMMDD') || ' --><span style="color: #3399FF;">' || to_char(calling_date) || '</span>'
               else
                 '<!-- ' || to_char(calling_date, 'YYYYMMDD') || ' --><span>' || to_char(calling_date) || '</span>'
             end calling_date
    ⋮For number/date columns to be properly sortable, the leading edge of the column must be an HTML comment that provides the required sort order using character semantics, as shown here.
    The Display As column attribute for such columns must be set to Standard Report Column.
    This method has side effects: some IR filters won't work; aggregate calculations can't be applied to the column; and report exports contain the HTML rather than the expected value.
    Other approaches involve using Dynamic Actions/jQuery/JavaScript, or using the built-in highlight as suggested above, then saving the highlighted report as the default.

  • Lowercase first letter in column name of non-interactive report..Again

    A couple of days ago a posted a question on how to make the column name in a non-interactive report
    come out as lowercase. (original post: Lowercase first letter in column name of non-interactive report
    I am using Theme13, which is probably the only theme that forces the first letter
    of a column name in a report to uppercase.
    Anyway, I received several responses including the answer which I applied to my page.
    Then I went back to make the column sortable and that negates the CSS override and
    the first letter in the column name is back to uppercase...arrrggghhh!
    Are there any further suggestions on how to force this to lowercase with theme 13 and a sortable column?
    Thanks
    Donna

    Hi,
    Try style to page HTML header
    th.t13ReportHeader,th.t13ReportHeader a:link,th.t13ReportHeader a:visited{
    text-transform:none!important;
    }Br,Jari
    Edited by: jarola on Feb 4, 2010 8:00 PM

  • Can i have more than 6 columns to sort in interactive reports  in apex 4.1?

    As of  now on clicking on Actions->format->sort only a select list with six columns is displayed in an interactive report . Is there any possibility to add more number of columns in this ? Can anyone help?

    Hey there. WELCOME to the world of Macintosh. You are in for a great ride with this machine and platform.
    Some good news for you regarding cameras. The neat thing about iPhoto, and indeed, the Mac, is that there is no setup required for hooking your camera to iPhoto. In fact, ANY camera you plug into the Macintosh that it recognizes will automatically work with iPhoto!
    I regularly use three different cameras with my iPhoto application. As soon as I plug into the USB port and power on my camera, the Mac figures out that it needs to start up iPhoto. iPhoto figures out how to talk to the camera, and gives me the option to import pictures from the memory card... no configuration, no extra software to install. I do this with a Canon camera, and two different Sony models.
    It's painless!
    If you find this message helpful or if it solves your problem, please indicate this by clicking the appropriate icon in the header of this reply.

  • Date format interfering with interactive report

    My APEX version is 3.1.1.00.09.
    I'm using a method described elsewhere to change the global date format of my application. I have application items for a start and end date. I have two application processes, one for On Load: Before Header, the other for On Submit: After Page Submission - Before Computations and Validations. They both do:
    DBMS_SESSION.SET_NLS(param => 'NLS_DATE_FORMAT', value => '''fmMM/DD/fmYY''')
    Okay, all is well with that, my dates seem to stay the way I want them to. Since our upgrade I'm going through each section of my application and updating as necessary, and I particularly want to use the interactive reports. They work fine when the page is loaded, but if I change any options on the interactive report and submit it, I get an "ORA-01843: not a valid month" error. If I refresh the page, everything works as it should.
    What can I do to get around this, or do I have something wrong with my method that is causing this to happen?
    Chris

    Hi Chris,
    I tried to replicate this, but could not. Now granted, I tried this using the new "modern" method of controlling the default application date format via the new application Globalization attribute "Application Date Format". I set the Application Date Format to fmMM/DD/fmYY and my IR on EMP worked just fine.
    If you can replicate this on apex.oracle.com (using Application Date Format), I'd be happy to take a look at it.
    Joel

  • Using HTML,how to change the color of column data in an interactive report?

    Hi,
    I want to change the color of data of a column in an interactive report.
    I want to do it by HTML.
    I have tried the code
    <style type="text/css">
    #apexir_EMP_MANID{color:blue;}
    </style>
    But it changes the color of the heading of column only. Not the data.
    Plz can anyone suggest me something ?
    Thanks in advance

    Hi Vaibss!
    Is it that what you're looking for?
    Color Coding (Post number 5)
    regards

  • Newly added column not displayed in Interactive report

    Hello,
    I have a tableA with 3 columns.In the application i am displaying as Form with Report region as Interactive report(Oracle 10g Application Express 3.2).
    I added one column to tableA.Now when i am refreshing the report by adding that column in the select query,the new added column is not displayed in the application.
    How can i do this so that the added column can be displayed.I dont want to delete the whole thing and redo it again.
    Thanks
    Siya

    Hi Siya,
    The Interactive Report will not show you the newly added columns by default. You have to select those columns from the actions menu and when all the required fields are displayed then save it as the default report.
    Then you will be able to see all the columns.
    Hope this solves your problem.
    Thanks,
    Satish.

  • Column name change in Interactive Reports

    Hi,
    I am new to Interactive reporting. We have a report that is resulted from Essbase query. Now in the report, we want to change the column names which are basically the essbase dimension member name. Is it possible to chang ethe names per our requiremnet?
    Please help.

    Hi again,
    I think that you may have posted your question in the wrong forum. This one is for Oracle Application Express and maybe that is the reason why you didn't understand my response. If your issue involves Hyperion Interactive Reporting Studio or Hyperion reporting in general then you should ask in this forum instead:
    Hyperion Query and Reporting
    Covers Hyperion Interactive Reporting, Hyperion Financial Reporting, Hyperion SQR Production Reporting, Hyperion Web Analysis, and respective administration/development topics
    Sergio

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

  • How to hide some column filter operators in Interactive Report

    Hi,
    I have an APEX 4.2 application what includes Interactive Report page.
    Is there possibilty to hide or disable some filter operators in column filter?
    But I don't want to disable all filter functionality for end users.
    For example how to hide/disable operator "matches regular expression".
    Some filter operators are too complicated for end users.
    I have searhced but not found solution.
    regards,
    Erkki

    erkkik wrote:
    I have an APEX 4.2 application what includes Interactive Report page.
    Is there possibilty to hide or disable some filter operators in column filter?
    But I don't want to disable all filter functionality for end users.
    For example how to hide/disable operator "matches regular expression".
    Some filter operators are too complicated for end users.
    I wouldn't really recommend this. Users will quickly recognise what works for them and avoid options that they do not currently understand. However, over time—through training or advice from more experienced users—they may come to understand and use all of the available features. Blocking access (especially in a non-standard way) to options that users may eventually need is likely to result in unnecessary development work now and at some (possibly inconvenient) time in the future.
    That said, this really isn't difficult to implement using CSS. Use your browser web inspector to identify which filter types are to be blocked, using the value attribute of the filter Operator select list in the generated IR HTML. For example, in APEX 5.0 a filter operator select list looks like:
    <select id="R70597672218719366505_STRING_OPT" class="a-IRR-operator" data-column-type="STRING" title="Operator" name="p_ignore_10" size="1">
      <option value="=">=</option>
      <option value="!=">!=</option>
      <option value="is null">is null</option>
      <option value="is not null">is not null</option>
      <option value="like">like</option>
      <option value="not like">not like</option>
      <option value="in">in</option>
      <option value="not in">not in</option>
      <option value="contains">contains</option>
      <option value="does not contain">does not contain</option>
      <option value="regexp_like">matches regular expression</option>
    </select>
    The "matches regular expression" option has the value regexp_like, so the required CSS rule using the IR operator select list class and an attribute selector on the option value is:
    .a-IRR-operator option[value="regexp_like"] {
      display: none;
    Additional selectors for other filter types can be added to this rule as required, for example:
    .a-IRR-operator option[value="regexp_like"],
    .a-IRR-operator option[value="is not null"] {
      display: none;
    to eliminate the "is not null" filter.
    To implement this for all IRs in your application, create a custom CSS style sheet containing the rule, upload it to your workspace, and reference it in all of the page templates used for IR pages.
    This is not a 100% foolproof solution. CSS is not an appropriate way to implement security restrictions. A web-savvy user could use their web inspector to disable the CSS rule and access the blocked filter(s). However there is little risk here as (1) it appears that your users will lack the required expertise; and (2) doing so will only allow them to further filter data they already have access to.

  • How to highlight break column data in an interactive report?

    Relates to an interactive reports V4.x :
    In the break column area in an IR report, the labels and data seem to be very vanilla and hard to distinguish particularly if you break on more than one column. When I move a non-break column with a highlight defined (set on cell) into the break position, the highlighting disappears.
    Is it possible to somehow retain the highlight colour on break column data?
    Any hints?
    thanks in advance
    Paul P

    bump!

  • HELP: Column not shown in Interactive Report

    I have an Interactive Report setup, I have added a new column to the report.
    But the new column doesn't show by default, for anyone to view this new column they need to use the GUI click the gear... and then click columns and add the column to the view.
    I noticed that "default report settings" under "interactive report attributes" the new column isnt listed in "Selected Columns section"
    is that the problem? how do I update this list without rebuilding the report from scratch.
    Thanks Jade
    Edited by: user13002266 on 29-Jun-2010 16:22

    sure, so there actuall instructions in the item half way down the page of the item configuration.
    anyways so what you do it log into the application as the devloper login, so if you have a custon autorisation scheme you will need to set it back to apex, then when your logged in to you app... goto the page with the report, click the cog icon and there is a selext/adjust columns option... when you have finished click cog and save report... you will have an option to save as default... when you save the report your done, and all users will see you changed, remeber to change autorisation back to you custom one if you changed it.
    sorry im on my phone so spelling is prob bad and I dont have apex handy so I have to do it from memory. :)
    thanks jade, hope this helps... should work mint... ask again if you have problem's and I will update this when I have a pc and apex around.

  • How to make all columns visible in an interactive report by default

    Hello All,
    I have an interactive report with the first column is visible and the rest are hidden by default. Is there any way that i can make them all visible by default so the users do not have to go into actions to display them in report?
    Thank you
    Sezer

    Login as developer > run the interactive report > actions > select all columns you want
    Now got to actions > save > default > primary > apply
    http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21674/ir_using.htm#CHDFDFJA

  • Add new image in Conditional Column Format

    Hi,
    In the column conditional format we have few images to include also there is a option for adding new/custom images. I have tried to add with some jpg images, no idea how to include in the list. I want my images to be include in most of the reports. Can anyone help me to give an idea about how to add the images?

    So, here we go… a step by step instruction.
    First, I took some default pictures, renamed one as “index” and changed format to *.gif
    !http://lh6.ggpht.com/_7E85bAvCFxg/SlMdWAvGnMI/AAAAAAAAAHg/97cbFS7bN6g/2009-07-07_135234.png!
    Then, a new folder “new” was created in <ORACLEBI_HOME>\ web\app\res\s_oracle10\meters
    !http://lh4.ggpht.com/_7E85bAvCFxg/SlMdWOM85uI/AAAAAAAAAHk/4Hcs4KtNJbc/s800/2009-07-07_135501.png!
    The same folder was created in <AS_HOME>\ \j2ee\home\applications\analytics\analytics\res\s_oracle10\meters
    !http://lh5.ggpht.com/_7E85bAvCFxg/SlMdWexYhkI/AAAAAAAAAHo/gUrXR0LAibs/2009-07-07_135809.png!
    *if you use a OC4J container – then find the same path “analytics\res\s_oracle10\meters” in it and create your folder.
    All changes should be done in both that folder (remember – if you omit any insert of a file than you’ll have difficulties).
    The structure of both folders should be
    !http://lh4.ggpht.com/_7E85bAvCFxg/SlMdWQCLEjI/AAAAAAAAAHs/-xDARLT_ILA/2009-07-07_140153.png!
    As you see – I already placed index.gif in it… So, I simply copied other three files in folders “lg” and “sm” (important (1) they all have a *.gif format (2) changes were made in AS and BI folders).
    !http://lh6.ggpht.com/_7E85bAvCFxg/SlMeSENyoII/AAAAAAAAAHw/2ylppoGa60M/s800/2009-07-07_140650.png!
    Well, now we go to the dashboard and check the results. Here we have our pictures:
    !http://lh6.ggpht.com/_7E85bAvCFxg/SlMhYcI9-WI/AAAAAAAAAH0/C3tRvhZgtnU/s576/2009-07-07_141226.png!
    The same we have in the conditional format window.
    !http://lh5.ggpht.com/_7E85bAvCFxg/SlMhYjajN7I/AAAAAAAAAH4/nNx6Zxqq2M8/2009-07-07_141407.png!
    The check of a simple request with conditional format:
    !http://lh4.ggpht.com/_7E85bAvCFxg/SlMoBVLfx_I/AAAAAAAAAIU/UfBAUqPgiPU/2009-07-07_144724.png!
    That gives us the following result:
    !http://lh5.ggpht.com/_7E85bAvCFxg/SlMoBRS8qaI/AAAAAAAAAIY/xmfly6D1SxY/s400/2009-07-07_144749.png!
    Notes:
    1)     I used OBI 10.1.3.3 version, but hope the same will work and for 10.1.4.1
    2)     I’m not sure if there a restriction on a picture file size
    3)     It was used the same size for small and large images. Certainly you can vary them.
    4)     It’s not necessary to restart OBI services (the same is true for most changes in design the css style and images).
    Edited by: green4x on 07.07.2009 14:49

  • Lowercase first letter in column name of non-interactive report

    I have a report from this query:
    SELECT DISTINCT
    v.isotope, v.location,
    v.activity_in_ucuries as "uCi"
    FROM inventory v
    where v.location = 'IN PROCESS'
    and v.activity_in_ucuries > 0
    Note 'as "uCi"' - when the report displays the lowercase u is displayed as an uppercase U
    In the column attributes , I have set the column heading as lowercase. In the report attributes I have Heading Type set as custom
    and the column heading shows lowercase. I have also tried using the a heading type of Column Names. With all of these changes the
    report still comes out with an uppercase U.
    Is there a way to prevent the automatic set of the first letter to Uppercase or alternatively, force the first letter to lowercase?
    Thanks
    Donna

    I am using theme 13. I don't have any experience changing the templates, so the report template has the following in Column Headings:
    <th#ALIGNMENT# id="#COLUMN_HEADER_NAME#" class="t13ReportHeader">#COLUMN_HEADER#</th>
    Can I make a change in here to prevent the transformation of the 1st character to uppercase? (I would also love to change the u to mu!)
    I do have a test application in theme 3 that seems to preserve whatever case I enter it in...I suppose I can change themes, but I would like to stick with theme 13 if possible.
    Thanks for any additional help.
    Donna

Maybe you are looking for

  • Quiet beep of iphone 5

    My iphone 5 just started quietly, almost inaudibly, beeping ever 15 seconds. It is fully charged.  Can't find  a reason or source,  Anyone have any ideas?

  • Itunes got erased/how to I get my songs back

    I don't know what happened, but all my songs in Itunes got erased for some reason. I had over 2800 songs in it. I still have all my songs on my Ipod, how do I get them back on my Itunes? I seen a topic on this on this site, but that was about transfe

  • Support for  Proxied Authorization Control ?

    Does OID support the Proxied Authorization Control which in and extension of LDAP v3 spec? If not will it ever, and if so - when? Thanks, Artur...

  • Connectivity 5.1 to ddts-100

    Can ne one help me? I got the decoder since last 20 days. Not getting the sound effects the way i wanted it. I m haivng philips 5.1 sonic edge sound card (psc605), and 5.1 inspire 5200 creative speakers and got new ddts-100. When i connect ddts-100 t

  • How do I transfer purchased music to my computer from my Ipad?

    I have purchased music on my Ipad that I want to transfer manually to my main laptop computer. I have the Ipad set up to managed music, etc manually, but it won't allow the transfer.  I'm sure this is an easy fix, but I'm blanking for some reason on