Columns SQL Report Formatting

Hello world

I have a basic report with a column that is one concatenation of other columns (used for the formatting break), and I want to give the effect that it has always separated "columns" in the concatenation. I tried to use CHR (9) and RPAD in the SQL query to add the 'spaces', but as soon as Apex gets hold of it, the extra spaces are deleted and I find myself with only a single space.

It does the same thing when the value "view as" is replaced by "standard report column" or any "display as text".

Any ideas? This is apex 4.0.0
Thank you!

I have a basic report with a column that is one concatenation of other columns (used for the formatting break), and I want to give the effect that it has always separated "columns" in the concatenation. I tried to use CHR (9) and RPAD in the SQL query to add "spaces", but as soon as Apex gets hold of it, when the browser displays the output according to the HTML specification additional spaces are removed, and I find myself with only a single space.

The specification HTML user agents support if collapse the white space characters, so the spaces and ASCII tabs in options will be treated as a single space.

Use of standard report

  • white-space: pre in Style CSS property to a CSS approach

    or

  • The property Expression of HTML for a < pre > HTML wrapper (ensuring that the text to display as attribute column is the column Standard report rather than default display text (characters of exhaust) ):

    #COLUMN_NAME#

    Better yet, create a custom report model using appropriate markup so that there are "separate columns" in the report.

  • Tags: Database

    Similar Questions

    • How to adjust column widths individual classic SQL report

      Hello

      I use Oracle APEX v4.2 with IE8 browser and basically tries to adjust widths of individual columns in my classic SQL report. Basically, I have three columns I want to spacing, so that the width of the entire region for the report is used, but am not sure how to proceed.

      I drilled in individual columns and specified the column widths as the element, but in vain.

      Would appreciate help on how to do this for each column and hope that I do not need to change the model of report (if possible).

      Thank you.

      Tony.

      Tony F. says:

      I use Oracle APEX v4.2 with IE8 browser and basically tries to adjust widths of individual columns in my classic SQL report. Basically, I have three columns I want to spacing, so that the width of the entire region for the report is used, but am not sure how to proceed.

      There is an element of uncertainty in what we suggest as well, because you have not specified the theme and the report of model that is used. This information is required for any question of formatting or the visual layout.

      I drilled in individual columns and specified the column widths as the element, but in vain.

      Report in some themes templates may be missing in the #COLUMN_WIDTH substitution string # required for use of the declarative column widths, as shown here: Re: width of column in reports

      I don't know why it would be missing from a theme of so-called "modern" (perhaps the lack of documentation affects even the Oracle theme designers), but you can add it to the models listed in this thread.

      Width of the element applies only to controls on a form in a table.

      Would appreciate help on how to do this for each column and hope that I do not need to change the model of report (if possible).

      This can be done using selectors CSS attribute (for the themes of quirks mode non-traditional, because you are using a legacy version of IE). Add a style sheet in CSS Inline property page:

      #ALIAS,
      td[headers="ALIAS"] {
      width: 40%;
      }
      

      where the ALIAS value in the attribute selector matches the required column alias, and the width property specifies the column dimension required and the units.

      Note that the percentage widths will be compared to the width of the report table. Therefore, it may be necessary to also specify widths (100%) for the table of report and its components. Exactly how is based on the report, the region and the page templates and theme used, information that was not provided.

    • SQL report column link

      Can get us sql report conditional link column, I want to say that I want the link only for rows with null values. If there are data in the column, I want to show the data but not the link.

      Published by: Sivaramaraju on May 31, 2012 04:13

      VC says:
      Yes, this is how you do it

      select case
      when column1 is null then 'test link'
      else column1
      end
      from table
      

      Try this, if work mark it as answered

      It won't work.

      You Please stop being so eager to answer every question and for taking the time to respond to those you'd correctly.

      (I see a lot of < a href = "javascript:..." > in your messages.) What is your opinion on the use of code based on the standards and unobtrusive JavaScript?)

    • Please help - value of the long column of SQL report required in a separate cell

      Hello.

      I need to create a SQL report with the structure as below:

      Country city vertical Business details for the State (detail desc)
      MY Quincy Healthcare US
      It is a detailed desc value that is displayed in a different cell.
      It is a detailed desc value that is displayed in a different cell.
      It is a detailed desc value that is displayed in a different cell.
      It is a detailed desc value that is displayed in a different cell.
      US MY Braintree, HE
      It is a detailed desc value that is displayed in a different cell.
      It is a detailed desc value that is displayed in a different cell.
      It is a detailed desc value that is displayed in a different cell.

      I came across a solution where you can hide/show the column value in another cell. But my requirement is that it should be displayed when the page opens, and the user will not have to click a button to see the value. This is mainly for their presentations, and printing. so its very annoying for them to click on the buttons so much to see the value of desc of detail for each record. I'm new to Java script, please help

      I'm not sure to understand your needs - you are showing us 2 data lines, lines 7 or 9? You want the long description of detail on the same line, or below?

      I'll go on the assumption that you are showing us two rows, and long descriptions in this example are found along 3 to 4 lines, and you want long descriptions under the details. In this case, I suggest using "column name" models They are much easier to use as they appear when you look at everything first, so bear with me.

      Under 'shared components', select 'Models' and click then on create yellow > button. You create a report model, from scratch. On the last page of the wizard, select "Named column (model line)" for the type of model. This will create a model rather generic (and useless), which you'll have to edit; I don't know why they chose to not send you directly in the editor. When you change it, you will see that the single field whose value is 'Model line 1', and it is set to:

      #1##2##3##4##5#
      

      To meet your needs with basic features, change it to something in the sense of:

      #COUNTRY##STATE##CITY##VERT#
      #DETAILS#
      

      Then, you probably want to put something in the position of the column model, such as:

      CountryStateCityVertical Business
      Details
      

      Applies to whatever you want, of course the CSS styles.

      Using the model is simple: If your report, select the model and make sure that your SQL returns values using the column names specified in your model. Otherwise, you will see "#COUNTRY #" literal text in your report.

      You can get fancy with these, of course, as the application of different styles for alternating rows, but I'll leave that as pretty good to help you get started (I hope).

      -David

    • Column headings missing when the SQL report runs Oracle Conc ask

      Why the column headers for a sql report do not disappear when I try to run Oracle Manager of competing application work? If I copy and paste work in SQL * more and run it, the topics show on the report. Is there a setting I can update to allow these column headers to display?
      Example of what I get (No Headings)
      
      TOM SMITH          12345
      JANE DOE           34355
      
      Example of what I expect (with Headings)
      
      EMPLOYEE           EMPLOYEE NO
      TOM SMITH          12345
      JANE DOE           34355
      Thank you

      More likely:

      SET THE POSITION

      into force or / and

      SET PAGESIZE 0

      is in effect.

      SY.

    • How we get enough space for a column in the SQL report?

      How did one reserves enough spaces for a column in the SQL report?

      Ex: 2 columns defined as follows

      projectNo varchar2 (10)
      ProjectName varchar2 (50)

      When creating a sql, the report header report will show below. If my project name is 'Tire force Test site R987654'. I need to show in a single line, since it has been defined as varchar2 (50)
      projectNo     ProjectName
      A0001         Tire Strength
                    Test At Site
                    R987654 
      It have a way to get around here. Thanks in advance.

      Tai

      You can enter "space: nowrap;" in the CSS Style of the column, or, better yet, to set a CSS class to it.

      HTH,
      Chris

    • Change the width of the columns in Sql report

      Hello

      I use Apex 4.1

      Can someone tell me how we can change the width of the Sql report. For report IR we can do this by using the following code,

      < style >
      table.apexir_WORKSHEET_DATA td [headers = "Name of the pass"] {}
      _width: 500px;
      min-width: 400px; < / style >

      Please help me with Sql Report.

      Thank you
      Shoaib

      Published by: Shoaib581 on January 21, 2013 03:05

      Shoaib581 wrote:
      Hello

      I use Apex 4.1

      Can someone tell me how we can change the width of the Sql report. For report IR we can do this by using the following code,

      Always zip code using .

      ...\
      

      Tags:

      
      

      Please help me with Sql Report.

      Either use the same CSS approach by adding a static region ID in the report area and adding the style sheet in the header HTML page: