Set the column width in the report

Hello

I have a standard classic report in one of my applications.

I want to set the width of the column of the report and but not in pixels, it should be in percentages (%)

In the attributes report in each column, there is a column width text field, but it accepts only the pixels and percentages.

Last Version 4.1, database 11g

Thank you

RameshP, OracleAPEXDeveloper wrote:

I have a standard classic report in one of my applications.

I want to set the width of the column of the report and but not in pixels, it should be in percentages (%)

In the attributes report in each column, there is a column width text field, but it accepts only the pixels and percentages.

Use CSS. Add a style sheet in the header HTML property page:

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

where the ALIAS value in the attribute selector matches the required column alias.

Please note that the specified percentages 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.

Tags: Database

Similar Questions

  • set the column width in a report

    Hello

    Is there a way to set the column width...

    In a region of the page, I have 3 reports (showing the same data fields, divided into different categories), but due to the length of variable data, the column widths are variable...

    Please correct them advice...

    Thank you

    http://forums.Oracle.com/forums/help/search-tips.html

  • adding table to the report: different column width

    Hello

    Is there a way to set different column width when the table is added to the report VI? As I understand it, the width is distributed in evently for the Table to add to the report VI.

    I have a table with 5 colunms and to set the width of each column differently for printing of the report.

    Thanks for your help

    H. Pham

    Dig into the Table to add to the report VI as a result of the entry of the column width, you will find the Table add to the report > add text table of report VI > tables.vi > Set Table column width VI. You will find a node invoke named SetColumnWidth. Simply enter the column number and the respective width for each column.

  • limit the size on the column heading in the report SQL auery

    Hello

    I returned a SQL query in the report where my column labels are also dynamically. Apparently, the size of this label is limited? Why?
    We tried to get the maximum and it seems that it is limited to 32 characters?

    Y at - it a solution because the meaning of the column in my app is really more important and must be displayed entirely

    Thank you

    Erwin

    Erwin,

    APEX does not limit the size of the headers of column (at least not at only 32 characters). AFAIK a limitation exists only if you use a Type of "Column names" or "column names (InitCap)." Then you click on the limitation of the Oracle DB as an identifier of Oracle, for example name or alias of the column referenced in your SQL query, may not exceed 30 characters long. To work around use a Type of "Custom" or "PL/SQL". "PL/SQL", you can dynamically set the report headings with a function that returns the headers as a string of delimited colon. You call the function like this:

    return get_my_report_headers(<input parameters>)
    

    HTH
    Frank

  • Calculation of the report

    Hello

    I got a requirment in which I have a report in pivot mode. The diepend of dates between the command prompt.

    Now it's pretty simple, but as the user wants to summarize the past two months of data and before two months of data which is
    sale of the 4/30 + 3/31 and sale of 2 / 28 + 1/31 and don't like (4 / 30 + 3/31) sale > (2/28 + 1/31) then 'UP' else down. If the user chooses the quick date within 4 months of data then the trend column should also say "S/o".



    Sales ranking
    31/12/2010 1/31/2011 2/28/2011 3/31/2011 4/30/2011

    Any ideas how I can get the comparison?

    Thank you
    deep

    I didn't try this one, because there are too many questions in my mind (in my answer, I'll tell you what are my assumptions) and it was the weekend and I've been busy, but the problem was intrigued so I spend some time really because I wanted a solution that would be easy to implement. Now, ideally, you should have the home depot variables you want, but here's how to build what you want. It's pretty tricky so go slowly when you read this.

    First of all, we will build the report. Later, I'll show you how to display correctly in the dashboard.

    (1) apart from your other attributes, he takes a column as 'Month of the year' for this report.

    (2) you will need two custom columns. I'm going to build one, you build the other. The first custom column will contain the measure "for two months now." (* Scenario 1: * this field is a monthly, date of service values are all MOE dates.) We'll call this column, the column of Date_Month.) You will need to enter a SQL expression in the fx window. It is complex, so I'll break it down:

    FILTER (USING system_date IN measure_column ("date of last month", "two-month date from there"))

    where this SQL 'date of last month' is: TIMESTAMPADD (SQL_TSI_DAY, DAYOFMONTH (CURRENT_DATE) *-1, CURRENT_DATE)
    and "two months of ago date is this SQL: TIMESTAMPADD (SQL_TSI_MONTH-1, TIMESTAMPADD (SQL_TSI_DAY, DAYOFMONTH (CURRENT_DATE) *-1, CURRENT_DATE)).

    So all put together, you have this:

    FILTER (measure to AID column (system_date IN (TIMESTAMPADD (TIMESTAMPADD SQL_TSI_DAY, DAYOFMONTH (CURRENT_DATE) *-1, CURRENT_DATE), (SQL_TSI_MONTH,-1, TIMESTAMPADD (SQL_TSI_DAY, DAYOFMONTH (CURRENT_DATE) *-1, CURRENT_DATE)))))

    In the report, this section will give you the sum of the measure for two months. Using the above as a guide, build one for the sum of "prior to three or four months" of the measure. SQL will go in the fx of the second custom column.

    Note: The reason why the two columns above are hardcoded is because they will always be the same regardless of the number of months in the command prompt. And don't worry, I thought ' what happens if the user chooses 2 months or 3 months? That comes later. Then only the prompt, so brace yourself.

    Now that we have the columns we want, we can generate the report. You will need to create two PivotTables. (You will not be able to build a report to meet all your requirements unless you build variables to the repository).

    (3) the first table pivot (Pivot Table 1) will house the report that shows the measurement for each month according to the number selected in the command prompt. For this PivotTable, you want to include the column "Month year" so that the user can see the measure for each month.

    (4) in the second (Pivot Table 2) pivot table, you will pass the column 'Month of the year' for the area excluded as well as the measurement column. Instead, enjoy two custom in the area of measures columns. Now this PivotTable will display the sum of the measures of "two months" and "since two months ago."

    (5) now must filter this report, so it will only pull the month corresponding to the value selected by the command prompt. That's why we need a prompt of dashboard. Create a prompt with integer values (1,2,3, 4,...) and save it on a TICKET called pv_months.

    (6) put a filter on the Date_Month column, I mentioned above set to the following SQL code:

    Date_Month > = TIMESTAMPADD (SQL_TSI_MONTH,-@{pv_months}, TIMESTAMPADD (SQL_TSI_DAY,-1 * (DAYOFMONTH (CURRENT_DATE))))

    So if the user chooses 4 for example, the SQL above will pull all dates from MOE of Date_Month column more than 4 months (note the negative sign) from 31/03/2011 (the current month being April). Set the TIMESTAMPADD function if you want to change the number of months forward or backward to get what you want.

    (7) put the two reports in the Compound Layout.

    We're almost there. In this case, the dashboard will help with reporting requirements.

    (8) put the dash line that you created in Section 1.

    (9) set the report Section 2. In the properties of the report, select the view > Pivot Table 1. We want to Pivot Table 1 one to show regardless of how many months, the user selects. So even if the chosen number is less than 4, a pivot table showing monthly measures appear.

    (10) now because we do not use mode consisting, we do not have a title finds out, then click on the button to change the Section name and rename it to the name of the report. You have now a view 'title '.

    (11) put the same report in another section, Section 3. In the properties of the report, select the view > Pivot Table 2. This is the report that the two measures are. Rename the section here, too.

    Now, your condition was if the number selected in the guest is less than 4, you want to show 'N/a.' this is how we will accomplish that.

    (12) to build a small report that has the same column used for the guest of the dashboard. Put a filter on the column "greater than or equal to 4." This report returns a record if the selected in the prompt value is 4 or higher.

    (13) now to return to Section 3 of the dashboard. Click the properties button and this time select "Guided Navigation". Go to the small report and check the radio button "If the query returns rows. When the user selects a number less than 4, this section will not be displayed. So you don't have to worry about an error or a 'No results' upward. "One more thing to fix this look. We want the message "N/A", right?

    (14) add another article, article 4. Put a static text field in this section. Add the following HTML code:

    (in the centre) (font color = "red") (h3) (b) number of chosen month is less than 4. To display sums, please select a value of 4 or greater. (/ b). (/ h3)

    Remember to change the brackets above to rafters and check the box 'contains the HTML markup.

    That's all. Here's how to generate your report.

    Oh, rats. You actually formatting conditional on reports of amounts. OK, create a column more and make the difference between the two custom columns. Apply the conditional formatting to this column.

    There you go.

    OK, I need a break now. My wrists hurt... ;)

  • problem with showing the report forms

    Hello
    Today, I have another problem :)

    I fix this text and it's simpler

    I have run reports of froms and I use RUN_REPORTS_OBJECT_PROC

    If I use standard report_id in this procedure, then I get

    WEB. SHOW_DOCUMENT ('http://oracle:8889 /'| reports_servlet |) ' /getjobid' | vjob_id |'? Server =' | report_server_name, "_blank");

    If the report is not any parameter is ok and this work but if I put some then I get page with witch element, I set value (parameter witch I want) then when I put send query I get error REP-50134

    But
    If I use
    WEB. SHOW_DOCUMENT ('http://oracle:8889 /'| reports_servlet |'? server = raportserv & report=c%3A\raporty\mod.jsp & destype = CACHE & desformat = HTMLCSS & userid = SCOTT % 2FTIGER % 40SZD & paramform = "Yes);

    I can open reports with the setting or not :)
    Where is the error in how hidden values see report_object?

    concerning

    Published by: user515960 on 2010-07-06 08:00

    Hello

    If you want to use parameters, then you need to create the report with parameters and your query owes me something like that.
    example: -.

    select ename,empno,sal.....from emp
    where empno=:p_no.............so here :p_no is parameter.now how you will use this in form with that code which is provide you in u r previos thread.
    

    something like that.

    DECLARE
    repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    rep_status VARCHAR2(20);
    plid ParamList;
    vParamValue number;
    BEGIN
    
    plid := Get_parameter_List('tmp'); 
    
    IF NOT Id_Null(plid) THEN
    Destroy_parameter_List( plid );
    END IF;
    plid := Create_parameter_List('tmp');
    add_parameter(plid,'p_no',text_parameter,to_char(:emp.empno));---------------here you have to add your block name and item name and also we add parameter(P_no) which is created in report builder with the above query.
    
    Add_parameter(plid, 'PARAMFORM', TEXT_parameter, 'NO');
    
    repid := FIND_REPORT_OBJECT('REPORT6');-----------------when you create report by using report nodes in form builder so you hav to Presss F4 to go to Property and there you have to set the report server name,desformat which is PDF and report name which is Report6 and also there in property u have to give the report path.
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,cache);
    
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'PDF');
    
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER, 'paramform=no');
    
    v_rep := RUN_REPORT_OBJECT(repid,plid);
    rep_status := REPORT_OBJECT_STATUS(v_rep); 
    
    WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
    LOOP
    rep_status := report_object_status(v_rep);
    END LOOP; 
    
    /*Display report in the browser*/
    WEB.SHOW_DOCUMENT('http://computer name/IP:8889/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?
    '||'server=report_server_name' || '¶mform=no','_blank'); 
    
    END;
    

    Note:-you need to start the report server before displaying the report.

  • No preference for the report answers option to display all of the results?

    Hello

    It is the specific question OBIEE. I write for the first time. So kindly direct me to the correct forum if this isn't the one.

    If an answers report is likely to produce > 25 lines or so, it throws an arrow with a star inside icon for all results.
    y at - it a preference to set the report of responses to fetch all reports?

    This is particularly useful when we add reports to dashboard and information books. We want all data in some cases.

    Thanks in advance,
    -vinod.

    Sure no problem. In the Table view, click the properties button next to the icon of sigma. The second option says: lines per Page. The value as the desired amount of lines. Click on 'OK '. That should do it.

  • How to set the column width in the classic report.

    Dear friends

    I use Apex 3.2.

    I created Clasic report and I have the analytical column in my report this column I description of the problem, so I want to set the width of this column nn classic report.

    I try a code in the expression of html
    <span>style="width: 480px; display: block; white-space: normal; font-size: 11px;">#ACTIVITY_SUMMARY#</span>
    {code
    
    after apply abovemention code that display me in my summary like this and not manage width of column.
    style = "width: 480px;" display: block; space: normal; do-size: 11px; ' >Dear Newcomb, greetings! Thank you very much for the new request, and we are pleased to confirm the availability of a single cabin in all three categories of cabin on the M.V. Mahabaahu. We wish to inform you that two departures on October 15, 2013 & 29 October 2013 (golden triangle with Cruise) are operational and attached are the prices for your kind attention. As a special promotion for October 15, 2013 start only, we offer 100 USD by reduction of the person on the triangle of gold, combined to the cruise portion. Please review and advise us to block accommodation as a result. Cordially... pepette
    How to fix Width of column in classic report.
    
    
    Thanks                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        

    Hi najet

    Try this

    #ACTIVITY_SUMMARY#
    

    the * > * is removed.

    Kind regards
    Kees Vlek
    -----
    Company: http://www.orcado.nl
    Blog: http://www.orcado.nl/blog/blogger/listings/69-kvlek
    Twitter: http://www.twitter.com/skier66
    If the answer to question please change replied and mark the appropriate post as correct / helpful.

  • Set the width of a column in report?

    I was at half griping on the definition of the column width so it's just that I'm actually looking for a simple example.

    I have a simple report on a query (Select * from demo_st) based on a model of report area. The columns that are displayed are the primary key (RCD_ID), ST (state abbreviation) and the ST_NM (state name). The names of States are size 4 to n characters and I added an 'example' AAA AAA AAA AAA AAA AAA AA entry just so I would have a long. I don't want to control the width of the column ST_NM.

    Please visit: http://apex.oracle.com/pls/apex/f?p=66049:2 Dever / Ima9Dever

    First of all, I have the updated example up properly? For example, I do something that prevents the control from the ST_NM column width?

    Second, if the example is configured properly, is there a limit (say, < 6) below which I can't control the width.

    In the definition of column ST_NM, I placed 5 width of column and in the attributes column, I put 5 in the width of the element.

    I was expecting the column ST_NM width 5 characters long, but it makes it just like before.

    I do something that prevents this column truncation (or envelope)?

    Thanks in advance,
    Howard

    Howard (DBA in training) wrote:
    I was at half griping on the definition of the column width so it's just that I'm actually looking for a simple example.

    I have a simple report on a query (Select * from demo_st) based on a model of report area. The columns that are displayed are the primary key (RCD_ID), ST (state abbreviation) and the ST_NM (state name). The names of States are size 4 to n characters and I added an 'example' AAA AAA AAA AAA AAA AAA AA entry just so I would have a long. I don't want to control the width of the column ST_NM.

    Please visit: http://apex.oracle.com/pls/apex/f?p=66049:2 Dever / Ima9Dever

    First of all, I have the updated example up properly? For example, I do something that prevents the control from the ST_NM column width?

    Second, if the example is configured properly, is there some limit (for example,< 6)="" below="" which="" i="" can't="" control="" the="">

    In the definition of column ST_NM, I placed 5 width of column and in the attributes column, I put 5 in the width of the element.

    I was expecting the column ST_NM width 5 characters long, but it makes it just like before.

    I do something that prevents this column truncation (or envelope)?

    See post on the original thread: + {message identifier: = 10807690} +.

  • Setting the width of a usual report to 80%

    4.2.1

    THM:Builder blue (2)

    Hi all

    I have a classic report with a region without borders. However, the columns are very rare. I need to stretch all the way to about 80% of the width of the page. There is also an html area at his side. The second condition is that the height of the region should be of approximately 300px. So if there is a line, then we see a line with the region of report showing the gray background for 5 lines and if there is more than 5, then the scroll bar appears.

    We tried to put a DIV tag also around the region

    But on different resolutions, the background stretches and gray appears. Height works very well. I was wondering if anyone had any suggestions.

    Workspace

    application: Reportwidth. Basically, with some columns I want to extend the width to about 80% of the page and have fixed height also.

    Thank you

    Ryan

    Ryansun-Oracle wrote:

    Hi Fac586 - there is a report of 100% in the two regions. The new region for the moment only sample data, but the actual number of columns are range large numbers (100 000 000) and maybe 1-2 columns. However, we need to stretch the report according to the requirements. Nothing complex or large-scale. Just a requirement that we must complete, even if the spacing is a little too much. Paging is not enabled, I think I forgot to turn it off in the setup on this site. It is a region with height about 200px with active scroll bar. However, without the DIV and background color, what happens is that if only 1 row is returned, there is a lot of white area, where more than 5 rows are returned, it shows the scroll bar, so to keep the consistent look, we thought using the DIV. But with this approach, the width if you see raises questions, when the DIV on the right side much longer than the report itself. That's what we're trying to control.

    The problem is this region to theme 2 page layout is based on a table. By default the tables HTML and the table cells expand or shrink depending on their content. Using a wrapper DIV with 100% width or setting a width of 100% in the attributes of the region that you originally tried does not all elements of region layout table or tables in the report to stretch as required. The width of 100% should be applied to the layout region table, the cell that contains the report of the region, the report [paging] table containing and finally table of the report itself. Give the region report a static ID for use in some of the selectors and find how to select some containers layout in the generated HTML code. The CSS rule that results is located in the Inline CSS property page:

    /* Regions layout container */
    .tbl-main>.regionlayout,
    /* Report region layout container (first cell) */
    .tbl-main>.regionlayout>tbody>tr>td:first-child,
    /* Report container */
    #report_new-report,
    /* Report table */
    #report_new-report .report-standard {
      width: 100%;
    }
    

    The model of the region already contains a wrapper DIV with the class bl-body around the content of the region. Using this and the region that static ID in the selector, the region may be limited to a height of 200 pixels with a scroll bar if necessary without needing an extra wrapper element to manually add:

    #new-report .bl-body {
      height: 200px;
      margin: 0 0 10px 0;
      padding: 0;
      background-color: #f0f0f0;
      overflow: auto;
    }
    

    See this demo page in app 14448 in your workspace.

    The next step might be to use a custom report template to get a report header fixed with only the data lines of scrolling...

  • How to set the column width fixed in IR APEX 5

    Hello

    Is it possible to resolve to a specific column of an interactive report on a fixed width?

    Thank you

    Jos

    Jos Dols says:

    Theme: 42

    The column value contains HTML tags, so I updated the property escape special characters No..

    However, because of the value column extends out of the window so that the user must scroll to the right to view the columns of the other/next:

    So I want to report column width be less than 100%.

    Add a static ID to the IR column and set the column width required using a style sheet in CSS Inline property page:

    th#static-id,
    td[headers="static-id"] {
      width: 16em;
    }
    
  • 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 set the width of the column read/write rules?

    Hello specialists of the structure.

    I read a set of DITA files in a specific format to the FM model, and there is a detail that I can't work properly. It should be possible to set the width of the columns in a table, even if the DITA file does not include this information. But the developer Application Structure reference does not give information about what string to pass to the property of fm of column widths. Anyone out there experience in doing this?

    Thank you

    Jang

    I have it!

    Turned out to be simple, but the info was more or less hidden in the Dev Guide of Ref: I already had the line "property column widths fm is the value" but did not know the syntax for values. Turns out you need to delimit the values with spaces, not commas. The parser does not give ANY useful information, simply mentions "somewhere near syntax error" or completely ignores the values that you specify.

    This is how the rule for my properties DITA element works now:

    {'Properties' element

    is fm of table element;

    columns FM property value is "3".

    column and the width of the FM property value is "5cm 5cm 6 cm;

    }

    This works. I earn 10 points to answer my own question. :-)

    Ciao

    Jang

  • Cannot set the DataGrid column width

    I am very frustrated with the DataGrid control and I don't understand why it won't work. I followed the tutorial "Build year Application In An Hour" by Adobe and finally managed to extract data from a database in a DataGrid control, the data very well, but all the columns are the same width and will not change when creating. Of course I can drag the column widths when the DataGrid control has made, but you shouldn't do that. The columns are not enough even wide to fit in the title of each column. The tutorial mentioned resizing of columns, but does not specify how. I've manually entered in the < S:GridColumn > tags and entered like width = "800" see no change. I changed the width of the data grid itself, I even tried setting the width to 100%. I also went in the "Configure columns" dialog, and then in advanced and set a minWidth, but it still doesn't work, I even disabled 'resize' and still nothing. I also tried different combinations of the aforementioned attempts.

    How can it be difficult to set the width of a column?

    I should also mention that I use Adobe Flex Builder 4.5 for PHP.

    Well, I solved the problem and I'm very embarrassed to say that it is my browser cache. It was not show my saved new, which is a bit worrying plans sometimes that I need to change the small values and run my application every 10 seconds to see the update.

  • How to change the width of columns in an interactive report?

    I have an interactive report. I want to customize the width of the column in the report. How to get there?

    Thank you
    Jen

    Two things... (1)

     items are for the forum display use only, do NOT copy them to your page in APEX..  2) I have modified your page 23 in your app, I have added the code in the proper location and removed the other code you had in place and copied it to the comments section of page.
    
    Please take a look and adjust the size accordingly..
    
    If this answers your question, please mark the question as answered and assign points where due..
    
    Thank you,
    
    Tony Miller
    Webster, TX
    
    Time flies like the wind, but fruit flies like bananas.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
    

Maybe you are looking for