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

Tags: Database

Similar Questions

  • How to compare the original value of table size and the changed value

    juice I took a table and then took the function of the size of the array so that it shows me the number of the elements present in it. so it'll be the original table size value. If the items in the table even changes another value, then I want to compare the original table size value and the value of table size has changed. How to compare... Please help me. you are looking for a possible solution. Thank you

    Hi stara,

    the attached picture shows the ony solution.

    It will be useful.

    Mike

  • Generation of reports using HTML template

    Hi all

    I want to generate the report using the HTML template.

    Can someone help me know how I can do it.

    Note: I use LabVIEW version 2014.

    Thanks in advance...

    If you do not want to use Microsoft Office Word / Excel you can generate the HTML report.

    -To generate HTML reports you don't have to plug whatever it is at the entrance of model and let in a vacuum.

    - And select the type of report in HTML format. Please find the attached example you will find in examples: http://www.ni.com/white-paper/13926/en/

  • 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

  • change column width window 8 mail app

    Hello

    In my Windows 8 Mail application, I have three columns. "First on the left is a list of my boxes for example Inbox. It is the middle column next I want to change. It gives the title of the email and the time and date. Currently the time shows (on the right side) but only the first part of the date, or not at all. I need to see the date. I need to widen the column, so the date shows or push this text above. All solutions?
    Concerning
    AM

    I don't think that the width of the columns can be changed in the Mail application.  The apps are very basic and not as advanced as an appropriate program.

    Have you considered using another e-mail program and it works in desktop Mode?

    Perhaps, Windows Live Mail?

    http://Windows.Microsoft.com/en-AU/Windows-Live/Essentials-other#essentials=overviewother

  • Creation of XML report using the PL/SQL stored procedure

    Hi friends,

    I'm working on a report xml with the xml source as a PL/SQL stored procedure.

    I mean the fiscal year indicated in the following link to understand the process:

    http://orclapp.blogspot.com/2012/02/developing-xml-publisher-report-using.html

    In the example shown in the link above, I did not understand the following:

    (1) in the following procedure, setting out "retcode" is not used at all.

    What is the importance of this parameter.

    REPORT PROCEDURE (errbuf OUT VARCHAR2, retcode OUT VARCHAR2, p_product_id in NUMBERS)

    (2) after the xml data are prepared and updates 'l_result' variable Clob, what follows

    Loop is executed. I am not able to understand why the following loop is required.

    LOOP

    EXIT WHEN l_length = l_retrieved;

    IF (l_length - l_retrieved) < 32000

    THEN

    SELECT SUBSTR (l_result, l_retrieved + 1) IN l_xmlstr FROM DUAL;

    l_retrieved: = l_length;

    fnd_file.put_line (fnd_file.output, l_xmlstr);

    ON THE OTHER

    SELECT SUBSTR (l_result, l_retrieved + 1, l_offset)

    IN l_xmlstr

    FROM DUAL;

    l_retrieved: = l_retrieved + l_offset.

    fnd_file.put_line (fnd_file.output, l_xmlstr);

    END IF;

    END LOOP;

    (3) in the example it is not explained how the concurrent program gets the xml data?

    I guess that it is written to a file by using the following line of code:

    fnd_file.put_line (fnd_file.output, l_xmlstr);

    I would be grateful if someone can shed some light in my questions above so that I can well understand the process.

    Thanks and greetings

    Hawker

    Hi 32000 in the code is a 'safe' than 32767 available max mesh, loops is intended to get around the entire thing into pieces that can be managed within the limits of the data type.

    BTW; If you are in the following Oracle e-business, you can also use the Oracle reports very simply to create the XML output.

    If you have reports developer all you need to do is put raw sql (create XML without any "Fireworks") in the SQL report and then set reporting in XML format in the definition of program in Oracle e-business.

    Best regards

    Robert.

  • Report column width and control region

    Hi all

    I have a page with several area of report. I need to fix their width to a certain value.
    Width of the region is apparently according to the column width.

    I tried what is suggested here

    Re: Change column width

    put ' width: 300: in the CSS Style of a column. It works in IE but not in firefox. Most of my users use firefox.

    My questions are the following:
    1. is there a better way to define the width of the region to a fixed value? (not the column width setting)
    2 - does anyone know how to change the column with which works in firefox and IE?

    Thank you very much!

    -Joel

    Use display: block; width: 300px; in the Style column CSS attribute, as in This example.

  • How controll in the report column width?

    Dear all,

    I created the classic report, but here the column width is too large.
    I want to the column width of the control in the report.

    How can I do this...


    Thank you

    I use Apex 3.2.

    It's a shame. Just try to change:

    Report--> Column--> column formatting attribute--> Style CSS

    for width: 100px

    Also make sure that your text to column heading to enough short to fit into the column.

    Rod West

  • 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;
    }
    
  • Data Modeler: change the layout of the Table report

    Hello

    I use SQL Data Modeling (DM) EA 4.0.

    I used the file-> reports option to generate reports on the Table and in the report

    (1) I could not see the data of the type column? (See table below), are there options to set the Type of data in the report?

    NO.

    Column name

    PK

    FK

    M

    Data type

    DT

    kind

    Domain name

    Formula

    (Default value)

    Security

    Abbreviation

    1

    ID1

    P

    THERE

    (10)

    LT

    2

    ID2

    F

    THERE

    (10)

    LT

    3

    ID3

    THERE

    (1)

    LT

    4

    ID4

    THERE

    (10)

    LT

    5

    ID5

    F

    (20.4)

    LT

    (2) in the options to manage the Table report (reports-> manage). Currently I can remove a position (like Notes of Descriptions, columns, column comments). Is there any way to customize the report so that I can remove some columns (mostly empty) according to the report and add comments as well as the column table column to a new column comments table.

    Please let me know, is there an option to customize the report.

    Note: I even tried to generate the report using the search then the report, but it does not give a full report (I was only able to generate a report on the column or table name or name constraints, not all together).

    Thank you

    Kheira

    Hi Dimitar,

    There are correct.

    for the report without data type, the data type in my relationship is 'UNKNOWN '.

    I have not changed, but now the type of data in the table are 'unknown '.

    I checked a little more on it and found that in the ADMINISTRATION of my 'TYPES' only unknown is here and the defaulttypes xml file is empty. Then I copied a new one.

    So the new design has the data type, but for that I need to generate sound still 'unknown '. I think I saved the unknown. :-(

    Thank you

    Srinivasan.

  • using column value in a CSS Style for the column in the report

    I am trying to apply a style CSS (background color) to a column in a report based on another column.

    So the attributes column for a specific column, I would like to be able to add this to the "CSS Style" field under the group, "formatting of column:

    background-color: #BKG_COLOR #;

    It seems not to take my column value, which is #daf2ea

    In the field of Style CSS, if I change it to: background-color: #daf2ea - so it works.

    So he doesn't seem to take my #BKG_COLOR column value' in the field of Style CSS.

    Any ideas? What do I have to use the "HTML Expression" field instead, and how could I do?

    Thank you
    John

    jfosteroracle wrote:
    I am trying to apply a style CSS (background color) to a column in a report based on another column.

    So the attributes column for a specific column, I would like to be able to add this to the "CSS Style" field under the group, "formatting of column:

    background-color: #BKG_COLOR #;

    It seems not to take my column value, which is #daf2ea

    In the field of Style CSS, if I change it to: background-color: #daf2ea - so it works.

    So he doesn't seem to take my #BKG_COLOR column value' in the field of Style CSS.

    Any ideas? What do I have to use the "HTML Expression" field instead, and how could I do?

    Don't believe that * CSS Style * supports the substitution of the column.

    You can use * HTML Expression: *
    {code}
    #OTHER_COLUMN #.
    {code}
    However the two this and * CSS Style * apply a style to a span element in the cell of the report, rather than the whole cell, which is what everyone expects in general / wants. To apply background color to the cell, you must use a custom report named column model: + {message identifier: = 9908585} +.

  • Generate the report using two tables

    Hello
    I have two tables: -.

    1 THE NAME OF THE TABLE:-EMP_LEAVE
    EMP_ID NUMBER;
    DATE DATE;
    LEAVE_TYPE VARCHAR2 (15)


    2 TABLE NAME:-EMP_ATT
    EMP_ID NUMBER;
    DATE OF ATT_DATE;
    ATT_STATUS VARCHAR2 (10);

    HERE'S
    Type of leave are SL, PL, CL
    ATT_STATUS contains only (P)

    ATT_STATUS column contains the value as this student (p) only and LEAVE_TYPE column contains the value as sickleave (SL), medicalleave (ML), Paidleave (PL).

    I see the value in the report as given form below the monthly or weekly or annual basis

    EmpID P SL ML PL
    1 24 1 2 3

    I try to create it but not give the accurate result.


    Thank you
    Nisha

    Hello

    You must use something like;

    WHERE SESION = :P168_SESSION AND TRIM(TO_CHAR(ATT_DATE,'MON'))=:P168_MONTH
    

    Note that fact P168 refers to the elements on my page - if you use another page, make sure that you change: P168_SESSION and: P168_MONTH for names that you use.

    I just updated my test page to add to the filter of the month: [http://apex.oracle.com/pls/otn/f?p=267:168]

    The SQL is now:

    select EMP_ID "Employee ID",
    SUM(DECODE(LEAVE_TYPE,'AL',1,0))"Annual Leave",
    SUM(DECODE(LEAVE_TYPE,'CL',1,0))"casual Leave ",
    SUM(DECODE(LEAVE_TYPE,'PL',1,0))"Paid Leave",
    SUM(DECODE(LEAVE_TYPE,'ML',1,0))"Medical Leave",
    SUM(DECODE(LEAVE_TYPE,'SL',1,0))"Sick Leave ",
    SUM(DECODE(LEAVE_TYPE,'MTL',1,0))"Maternity Leave",
    SUM(DECODE(LEAVE_TYPE,'WL',1,0))"Wedding Leave",
    SUM(DECODE(ATT_STATUS,'P',1,0))" Present",
    SUM(CASE WHEN ATT_STATUS in ('P') then 1 else 0 end) "TotalP",
    SUM(CASE WHEN LEAVE_TYPE in ('AL','CL','PL','ML','SL','MTL','WL') then 1 else 0 end) "Total"
    from (SELECT EMP_ID,
    ATT_DATE,
    ATT_STATUS,
    NULL LEAVE_TYPE,
    NULL LEAVE_CATEGORY,
    WORK_DURATION,
    LEAVE_SESSION,
    IN_TIME,
    OUT_TIME,
    SESION
    FROM EMPLOYEE_ATTENDANCE
    UNION ALL
    SELECT EMP_ID,
    DTE ATT_DATE,
    NULL ATT_STATUS,
    LEAVE_TYPE,
    LEAVE_CATEGORY,
    NULL WORK_DURATION,
    NULL LEAVE_SESSION,
    NULL IN_TIME,
    NULL OUT_TIME,
    SESION
    FROM EMPLOYEE_LEAVE)
    WHERE SESION = :P168_SESSION
    AND TO_CHAR(ATT_DATE,'MON') = :P168_MONTH
    GROUP BY EMP_ID
    ORDER BY EMP_ID
    

    Andy

  • Interactive report using month Picker Plugin-date maximum one month given values of display column?

    create table test

    (

    The user ID number,

    created_on date

    )

    Insert into test values(1,'03/11/2014');

    Insert into test values(1,'03/27/2014');

    Insert into test values(1,'04/14/2014');

    Insert into test values(1,'02/20/2015');

    Insert into test values(1,'02/27/2015');

    Insert into test values(2,'03/10/2014');

    Insert into test values(2,'03/19/2014');

    Using http://www.Oracle-and-apex.com/plugin-month-picker/ in report interactive apex:-

    I want the answer which is the maximum date of the month and year

    for a specific user for the month selected

    For example if I chose March 2014

    as input is 03-2014

    so it should display

    username created_on

    1 27/03/2014

    2 03/19/2014

    Help, please

    oracle 11 g r2 database version

    Apex Oracle version 4.2.4

    ReemaPuri wrote:

    create table test

    (

    The user ID number,

    created_on date

    )

    Insert into test values(1,'03/11/2014');

    Insert into test values(1,'03/27/2014');

    Insert into test values(1,'04/14/2014');

    Insert into test values(1,'02/20/2015');

    Insert into test values(1,'02/27/2015');

    Insert into test values(2,'03/10/2014');

    Insert into test values(2,'03/19/2014');

    Http://www.oracle-and-apex.com/plugin-month-picker/ in report using interactive apex: -.

    I want the answer which is the maximum date of the month and year

    for a specific user for the month selected

    For example if I chose March 2014

    as input is 03-2014

    so it should display

    username created_on

    1 27/03/2014

    2 03/19/2014

    Help, please

    oracle 11 g r2 database version

    Apex Oracle version 4.2.4

    Based on the information provided:

    select
        userid
      , max(created_on)
    from
        test
    where
        created_on >= to_date(:p1_month_picker, 'mm.yyyy')
    and created_on < add_months(to_date(:p1_month_picker, 'mm.yyyy'), 1)
    group by
        userid
    

    However, I suspect that the information provided is not the full story...

  • Redirect to different pages based on the value of linked report table

    Hello

    I wanted to navigate to different pages of a report link based on a value from the table on which the report is based. I was able to link to a particular page without any problem.

    But I wanted to link to different pages depending on the value in the table. Please let me how can know I do this?

    Thank you

    Kaminey wrote:
    I use Apex 4.2 and my report is a classic.

    If I click on empID in a classic report, now it redirects to page 1. Now what I want to do, if I click empID, if his role as MANAGER he should redirect to page 2 and fill out the form on the page with the details of the employee. The role of the employee is ANALYST should redirect to page 3 and fill in the form on the page with its details

    This approach makes maximum use of the APEX has standard and minimizes the extra programming.

    1. If it is not already included as a displayed value, include the role column giving the value of MANAGER/ANALYST as a hidden column in the report.

    2. create the link in the column on the EmpID column, with the target of the link on the same page as the report and ask the role column value (for example #ROLE #).

    3. on the page of the report, create a On Load: front branch to page 2, with an request = Expression 1 condition with 1 Expression defined for the MANAGER.

    4. on the report page, create a On Load: front branch to page 3, with a Request = Expression 1 Expression 1 ANALYSTvalue condition.

  • To loop through the table and use the values returned in another query

    Hello

    I tried to do something very simple, but still can not.

    I am trying to iterate on a table and use each line of a column in a where clause to display a query clause.

    For example:

    I want to retrieve all users of dba_users pass it to a clause where clause in a query to show for example account_status and profile of each user. But I want to do it in a way if I can turn the result in an html table.

    I tried too much really, so I'll post something that does not work, but which I think will show the problem I have,

    BEGIN
     FOR i IN (SELECT username from dba_users order by 1)
     LOOP
     EXECUTE IMMEDIATE 'select account_status from dba_users where username like ''||i.username||''';
     END LOOP;
     END;
     /
    

    Example of what I want to achieve:

    Suppose that there are two users, SYS, and SCOTT:

    USERNAME                       PROFILE                        ACCOUNT_STATUS
    ------------------------------ ------------------------------ --------------------------------
    SYS                            DEFAULT                        OPEN
    
    
    USERNAME                       PROFILE                        ACCOUNT_STATUS
    ------------------------------ ------------------------------ --------------------------------
    SCOTT                            DEFAULT                        OPEN
    

    Thanks in advance for your time,

    OD

    Hi Bill,

    Bill Citad kirjoitti:

    What a join or a sub query going to help me? honestly

    -- join
    select
      s.sql_id,
      h.loads_total
    from dba_hist_sqlstat h join v$sql s on (
      h.sql_id = s.sql_id
    )
    where rownum < 3
    ;
    
    -- subquery
    select
      sql_id,
      loads_total
    from dba_hist_sqlstat
    where sql_id in (
      select sql_id from v$sql where rownum < 3
    )
    ;
    
    -- correlated subquery
    select
      sql_id,
      loads_total
    from dba_hist_sqlstat
    where exists (
      select null from v$sql where sql_id = dba_hist_sqlstat.sql_id
    )
    and rownum < 3
    ;
    
    -- lateral inline view (12c)
    select
      s.sql_id,
      h.loads_total
    from dba_hist_sqlstat, lateral(
      select sql_id from v$sql where sql_id = h.sql_id
    ) s
    where rownum < 3
    ;
    

Maybe you are looking for