Generic column - aligne right

Hi
I created dynamic report on function returning query. Now I have problem with number columns, because columns aligne left. Is it some simple solution to aligne right ?
Regards

OK.. simple solution. Find the class name of your report.
Add an inline style sheet to the page header or region header.
For instance, I have an interactive report, and the class name is: apexir_WORKSHEET_DATA
so, I add this to the page header:
<style type="text/css">
.apexir_WORKSHEET_DATA tr td {
text-align:right;
</style>The column contents is then aligned to the right.
Trent

Similar Messages

  • Column alignment with apex_item.text

    I am trying to create a tabular form with the following statement
    select apex_item.text(10,empno) empno,
    apex_item.text(20,ename) ename,
    apex_item.text(30,sal,15,15) sal,
    apex_item.text(40,comm) comm
    from emp
    The statement above works fine, however, if I try to align the sal column by adding style for the p_attribute parameter such as
    apex_item.text(30,sal,15,15,style="text-align:right;") sal
    I get the following
    Query cannot be parsed within the Builder. If you believe your query is syntactically correct, check the ''generic columns'' checkbox below the region source to proceed without parsing. ORA-00907: missing right parenthesis
    In addition to the column alignment I would like to format the column like $999,999.99 and provide a column total at the bottom, is this possible with apex_item.text?
    Any thoughts would be most appreciated
    Regards,
    Mark

    Hi,
    You could try using TO_CHAR(sal,'$999,999.99') but I'm not sure what that may do to the submit process - I tend to leave the number unformatted and only use formats for reports.
    If you are able to add in formatting, it may actually make it a lot harder to provide totals. A total could be done by looping through the input items that have a name attribute of "f30" (as you've used 30 for the index number of that item) - using parseInt() or parseFloat() javascript functions would convert the strings into numbers, but the commas and currency symbols would stop this working.
    Andy

  • Column alignment in tabular form

    Hi,
    how to change column alignment in f.e Text Fields in tabular form.
    Manual option doesn.t work (alingment not heading). I tried to add
    style=text-align:right ( i cut quote)in element column formatting options but I didn't find solution.
    Anyone know how to change this?
    Maybe sth simillar to the same problem in IR:
    .apexir_WORKSHEET_DATA td, .apexir_WORKSHEET_DATA td div{text-align:right}I understand ".apexir_WORKSHEET_DATA" it's only IR definition and it doesn't work with tabular form
    Edited by: nirud on 2010-03-12 07:53

    Hi,
    Go edit your tabular form Column Attributes where you like apply that style.
    Then add to Element Attributes
    style=text-align:rightBr,Jari
    Edited by: jarola on Mar 14, 2010 11:22 AM
    Forum do not like my code
    wrap text-align:right to double quotes

  • Column Alignment in Column Attributes under Report Attributes Not Working

    After changing the default setting and applying the new setting for changing column alignment from left to right, the numbers in the column stay to the left when I run the page. I've cleared the cache and the setting stays on "right" even after logging out of the browser completely and going back in. The numbers in the column of the report are aligned left despite the alignment setting for the column begin "right." I have this problem with more than one column and on completely different page of the application. What am I missing?

    Hi,
    Is the Display As setting set to "Standard Report Column"? Is this just a standard report or a tabular form and the numbers in INPUT items?
    Andy

  • BUG:text-align:right; inline style not working on read-only af:InputText

    Hello,
    A bug in how af:InputText works if readonly=true. I have an af:InputText that has "text-align:right;" for the InlineStyle. The inputText is inside of an af:Column in af:Table. If the inputtext is readonly=false, it works properly and renders right-aligned. If readonly=true, then it renders left-aligned. I have also tried setting inlineStyle for the column to text-align:right;, and I get the same behavior.
    Regards,
    John

    John,
    Try adding formatType="number" to your af:column (if you want all data in that column aligned to the right). If you don't want the entire column right aligned, try using disabled instead of readonly.
    Jim

  • PL/SQL component align right

    Hi guys,
    I was wondering if there was a way to align "Reports Region" PL/SQL components next to each other. I have 2 belonging to the same parent but they are displayed below each other.
    I tried float:right in my HTP.p code and align=right in the "Region HTML table cell attributes" but it doesn't work~
    I would have though this overrides any template because I'm declaring it lower down the hierarchy (e.g. afaik CSS dictates that if I declare color=blue inline then it overrides some generic declaration in class B of color="red" even though I have <div class="B" style="color:red")
    I'm reluctant to change the template since it could have adverse effects elsewhere and I just need it for this page

    Dird wrote:
    Hi guys,
    I was wondering if there was a way to align "Reports Region" PL/SQL components next to each other. I have 2 belonging to the same parent but they are displayed below each other.
    I tried float:right in my HTP.p code and align=right in the "Region HTML table cell attributes" but it doesn't work~<tt>align</tt> is deprecated and should not be used.
    I would have though this overrides any template because I'm declaring it lower down the hierarchy (e.g. afaik CSS dictates that if I declare color=blue inline then it overrides some generic declaration in class B of color="red" even though I have &lt;div class="B" style="color:red")
    I'm reluctant to change the template since it could have adverse effects elsewhere and I just need it for this pageAs I know you know, you get a faster, more effective response by including required relevant information as possible upfront. For visual layout problems this is:
    <li>Full APEX version
    <li>Full DB/version/edition/host OS
    <li>Web server architecture (EPG, OHS or APEX listener/host OS)
    <li>Browser(s) and version(s) used
    <li>Theme
    <li>Region and component template(s) used
    <li>Region/item type(s) (making particular distinction as to whether a "report" is a standard report, an interactive report, or in fact an "updateable report" (i.e. a tabular form)
    The best way to get assistance with layout and visual formatting problems is to create an example apex.oracle.com where we can actually get hands on with it.
    See:
    <li>{message:id=9212293}
    <li>{thread:id=2155320}
    The most frequent cause of problems with subregion positioning is that covered in the second link: a No Template setting for the subregions means there's no container element for region attributes to be applied to.

  • Re-sizing, align right while keeping the menu fixed using flash AS2

    contact
    khuon
    mau
    My problem is recreating the align right effect while keeping
    the menu fixed using flash AS2 mostly for re sizing as well as
    different screen sizes.
    While i can do one or the other but both is just not
    happening.
    I have tried all sorts of weird and wonderful things but as
    yet, alas no easy/simple solution :(
    I must admit it has been a long time since i have been here
    but.. I thought if someone could have a quick look and maybe please
    give me a few pointers ??
    Anything at all would be better than what i have now ...
    Thanks for your time

    The link again is I forgot to add http to the link before, but it should have worked.
    http://www.lipowiec.org/test/index.php
    a) used Dreamweaver to create new site selected 1 column, elastic, centered, header, and footer
    b) used spry to add horizontal menu to header
    c) followed instructions from Spry Help
    http://livedocs.adobe.com/en_US/Spry/SDG/index.html?lang=en_US ->
    working with spry widgets -> working with the menu bar widget -> Customize the dimension of menu items as indicated
    To change the dimension of menu items by changing the width properties of the menu item’s li and ul tags.
    Locate the ul.MenuBarVertical li or ul.MenuBarHorizontal li rule.
    Change the width property to a desired width, or change the property to auto to remove a fixed width, and add the property and value white-space: nowrap; to the rule.
    Locate the ul.MenuBarVertical ul or ul.MenuBarHorizontal ul rule.
    Change the width property to a desired width (or change the property to auto to remove a fixed width).
    Locate the ul.MenuBarVertical ul li or ul.MenuBarHorizontal ul li rule.
    Add the following properties to the rule: float: none; and background-color: transparent;.
    Delete the width: 8.2em; property and value.
    Under IE it's broken, under the other browsers it works.
    There need to be more IE HACKS added.

  • Report Column alignment

    Hello,
    i have a report with over 100 columns and wish to set the alignment of the data to right.
    at present the only way to do this would be to use the combo box to select the alignment value.
    could anyone advise if there is a way to do i through the template using CSS or vai the sql used to generate the repiort ?
    Thanks
    David

    Use the text-alignCSS <tt>text-align</tt> property.
    The selector required will depend on the theme/templates used, but using a static ID on the region to restrict the rule to the required report, it would look something like:
    #region-id .report-class td {
      text-align: right;
    }We'd need details of the theme/templates involved to be specific.
    If it's not desirable for all columns to be right-aligned, then a more complex approach using custom report templates may be required.

  • Generic Column Template - Column Template Conditions

    Hi,
    I have the following sql report snippet (as an example):
    select a,b,c,apex_item.checkbox(1,active_flag,DECODE (active_flag, 'Y', 'CHECKED','')) as "Active"
    from tableA
    Attached to this report, is a report template which I am trying to attach Column Template Conditions as I basically want to display all rows that have an active flag of 'N' as red or leave as default colour but unfortunately I can't seem to get this to work.
    I believe my Column Template Expressions are not correct as I have also tried "ACTIVE" = 'N' and still no luck.
    I have the following setup within the Generic Column Template, i,e:
    Column Template 1 = <td class="t12datavalue"#ALIGNMENT# style="background:red">#COLUMN_VALUE#</td>
    Column Template 1 Condition = Use based on PL/SQL Expression
    Column Template 1 Expression = '#1' = 'N'
    Column Template 1 = <td class="t12datavalue"#ALIGNMENT#>#COLUMN_VALUE#</td>
    Column Template 1 Condition = Use based on PL/SQL Expression
    Column Template 1 Expression = '#1' <> 'N'
    Any ideas what I could be missing?
    Thanks,
    Tony.

    Hi Tony,
    I think the issue here might be because the field you are trying to evaluate in the column template is a Check box. I tried this and it worked :-
    select a,b,c,apex_item.checkbox(1,active_flag,DECODE (active_flag, 'Y', 'CHECKED','')) as "Active",active_flag
    from tableA
    In the report attributes set the second active_flag column to not show (i.e. the one that is not the check box).
    In the Column Template
    Column Template 1 = <td class="t12datavalue"#ALIGNMENT# style="background:red">#COLUMN_VALUE#</td>
    Column Template 1 Condition = Use based on PL/SQL Expression
    Column Template 1 Expression = '#ACTIVE_FLAG#'='N'
    Column Template 1 = <td class="t12datavalue"#ALIGNMENT#>#COLUMN_VALUE#</td>
    Column Template 1 Condition = Use based on PL/SQL Expression
    Column Template 1 Expression = '#ACTIVE_FLAG#'='Y'
    Regards
    Paul

  • Multi Row Selector using Generic Column Names (parse query at runtime only)

    Hi,
    I created a tabular report which had a multi row select in it - got the deleting working fine.
    Am now creating a second tabular report, but because of the SQL:
    select
    "ID",
    "ID" ID_DISPLAY,
    "RESNUMBER",
    "RESDESCRIPTION",
    decode(RESTYPE,'R','Right Party','W','Wrong Party'),
    decode(DMCFLAG,'Y','Yes','N','No'),
    decode(SALEFLAG,'Y','Yes','N','No')
    from "CALL_RESULTS"
    I have to select the option Use Generic Column Names (parse query at runtime only) otherwise I cannot save the form.
    My problem is I am now unable to add a multi row selector to the tabular form. If I do and run the form I get the following error - failed to parse SQL query: ORA-00904: "COL11": invalid identifier. Also when I go back and edit the form the multi row selector has been removed.
    Can anyone tell me why I can't add a row selector like I previously could?
    Regards
    Simon

    Arie,
    I added aliases and to the decode columns, and I can now add a row selector to the form without any problems.
    Thank you very much for your help.
    Regards
    Simon

  • How to rename C00n generic column names in a Dynamic SQL report

    I have a an interface whereby the user can select 1 to 60 (upper limit) columns out of 90 possible columns (using a shuttle) from one table before running a report.
    To construct the SQL that will eventually execute, I'm using a "PLSQL function body returning SQL query" with dynamic SQL. The only problem is that I have to use "Generic Column Names" option to be able to compile the code and end up with c001 to c060 as the column names.
    How can I use the names of the selected columns as the report headings rather than c001, C002... etc?
    I do not know beforehand which columns, or how many columns or the order of the selected columns.
    I know Denes K has a demo called Pick Columns but I can't access his code. I have a hunch though that he may be just using conditions to hide/show the apropriate columns.
    thanks in advance
    PaulP

    Hi Paul
    I would change the Heading Type in the Report Details screen to PLSQL and use the shuttle item to return the column values. e.g.
    RETURN :p1_shuttle;
    I'm assuming the shuttle already has a colon separated list of the column headings in the correct order?
    I hope that helps
    Shunt

  • How do I use align="right" for text in a dl environment?

    I use a <dl> environment to control vertical line spacing extensively (thousands of pages).  Here is the objective:
    But I also need to have generation numbers, e.g. "2.2.1" right aligned on a defined width page.  I have tried various ways of achieving this using <div>, <span>, etc.  Each has unintended consequences.  The above is created using <table> in the <dt> line.  But W3C validator objects every time. 
    Here is my script:
    Or, if this is easier to read:
    <dt class="type_U_XXX"><table width="720" border="0" cellpadding="0">
      <tr>
        <td width="680">Johann Peter Bayer (*23.10.1716 Undenheim)</td>
        <td width="40" align="right">2.2.4</td>
      </tr>
    </table></dt>
    <dd class="col_0">Taufpate war Johann Peter Cohn, Gau-Odernheim.</dd>
    <dd class="col_0">Johann Peter Bayer war von 1751-1788 St.Albans-Hofmann in Undenheim.  Er ist als "hervorragender und emsiger Mann" und als "der Hof-Peter" überliefert.  Am 04.02.1744 heiratete er in Undenheim <i>Anna Catharina Dapper aus Sörgenloch</i>.  Trauzeugen waren Joh. Mathäus Bayer und Joh. Peter Dapper.<br /><br /></dd>
    <dt class="col_1">Kinder: (13)</dt>
    <dt class="type_U_XXXsX"><table width="680" border="0" cellpadding="0">
      <tr>
        <td width="640">Johann Mathäus Bayer (*03.04.1745, +02.10.1746 )</td>
        <td width="40" align="right">2.2.4/1</td>
      </tr>
    </table></dt>
    <dd class="col_1">Taufpate war Joh. Mathäus Lahr.<br /><br /></dd>
    How can I right-align the numbers in a <dl> environment?  It has to be in the <dt> line, not the <dd>.  Using the <dd> line indents the left margin, which is not acceptable. 
    Thanks for your help.  Please be very explicit.  Please show me the line or two of script that is needed, don't just say for example, use a <div>.

    I love your use of the definition list   However, nesting <table> in <dt> is obviously not good.
    HTML
    <dl>
            <dt>
                <div class="name">Johann Peter Bayer (*23.10.1716 Undenheim)</div>
                <div class="id">2.2.4</div>
            </dt>
            <dd>
                <p>Taufpate war Johann Peter Cohn, Gau-Odernheim.</p>
                <p>Johann Peter Bayer war von 1751-1788 St.Albans-Hofmann in Undenheim.  Er ist als "hervorragender und emsiger Mann" und als "der Hof-Peter" überliefert.  Am 04.02.1744 heiratete er in Undenheim <em>Anna Catharina Dapper aus Sörgenloch</em>.  Trauzeugen waren Joh. Mathäus Bayer und Joh. Peter Dapper.</p>
            </dd>
            <dt>
                <div class="name">Johann Peter Bayer (*23.10.1716 Undenheim)</div>
                <div class="id">2.2.4</div>
            </dt>
            <dd>
                <p>Taufpate war Johann Peter Cohn, Gau-Odernheim.</p>
                <p>Johann Peter Bayer war von 1751-1788 St.Albans-Hofmann in Undenheim.  Er ist als "hervorragender und emsiger Mann" und als "der Hof-Peter" überliefert.  Am 04.02.1744 heiratete er in Undenheim <em>Anna Catharina Dapper aus Sörgenloch</em>.  Trauzeugen waren Joh. Mathäus Bayer und Joh. Peter Dapper.</p>
            </dd>
    </dl>
    CSS
    dl {
    width: 720px;
    dl > dt > div.name {
        float: left;
        width: 680px;
    dl > dt > div.id {
        float: left;
        padding: 0 0 0 10px;
        width: 30px;
    dl > dd {
        clear: left;
    You may need to tweak the CSS a bit but you get the general idea.
    Kenneth Kawamoto
    http://www.materiaprima.co.uk/

  • How to show or Hide Generic Column in a regular report

    Hi All,
    I have created report based on "SQL query (pl/sql function body returning sql query). It returns columns based on some conditions. I have total 60 generic columns like (COL1,COL2....COL60) but it returns 18 or 20 columns based on my conditions, how can I hide the columns that I don't needed. My column heading is based on function return by ':' separated. My function returns number of columns also. Is there any we I can show only those columns which contains data. My report is exactly similar to the default "SQL query (pl/sql function body returning sql query). I didn't find any logic how they are doing this show and hide. I appreciate any ones help.
    Thanks,

    Hi there,
    Somehow you need to find out how many columns your dynamic select will return (by what you said it seems that your procedure returns this information). Then store that number in a hidden page item, say Pnn_COUNT.
    Then, for the 19th and 20th columns in the report add these conditions:
    Column 19: :Pnn_COUNT >= 19
    Column 20: :Pnn_COUNT >= 20
    I hope this helps.
    Luis

  • Add additional DESC column at right side of pivot table in bi publisher

    ARABIC DESC
    India
    UAE
    Total
    English DESC
    QUANT_DECIMAL
    VALUE_DHS
    QUANT_DECIMAL
    VALUE_DHS
    QUANT_DECIMAL
    VALUE_DHS
    0
    0
    0
    0
    0
    0
    اجر
    4
    4
    23
    5619
    27
    5623
    ABC
    اجر
    0
    0
    10
    3510
    10
    3510
    CDF
    ملابس
    0
    0
    14
    772
    14
    772
    XYX
    جالية
    0
    0
    25
    2020
    25
    2020
    EJB
    Total
    4
    4
    72
    11921
    76
    11925
    please help me to add another column at right side of pivot table as marked in blue.
    1st column indicates in arabic desc and my client want english desc at right side of pivot table
    country is group by as INdia and UAE.
    Please help me to display the above report in pivot table in BI Publisher;
    Thanks
    Naveen

    Naveen,
    Do you have that column in the database?
    Thanks,
    Sasi Nagireddy..

  • Align right in PDF file

    I am very confused by the right alignment of the PDF file.
    When we display a number, generally we will align it right. It looks fine on the report preview. But when I generate a PDF file from the report server, the data will not be aligned right very well. The data with one~two numbers indents a little comparing with the data with six or more numbers. Even these data comes from the same repeating frame.
    Please let me know if you have any suggestion or ever resolved it. Thanks in advance!
    Best regards,
    Stev.

    Have you made sure that the Reports Server is running not as 'LocalSystem', but instead as a user that has access to a printer driver in the services panel. This type of issue is frequently caused by using screen rather than printer information to render the output.
    Hope this helps,
    Danny

Maybe you are looking for

  • Is it possible to get flash or shockwave installed in browser w/out DLM

    WHY oh WHY must I install a bleeping download manager to download a file who's size is measure in Kb, a file that needs to be downloaded only ONCE IN A BLUE MOON? I don't want your crap sofware(download manager) running on my system all the time, or

  • Oracle cource in chennai

    i am selvakumar from Chennai,Tamilnadu. Currently doing BE final year. I want the details regarding oracle DBA 10g training centres in Chennai.I want to know the Cource duration and fee detail to get the Certification ...

  • Which oracle database should I install OBIEE RCU schemas

    Hi, Which Oracle database should I install OBIEE RCU schemas into? Should I install them into the database that contains the star schemas? Also, if we have different star schemas (HR, Sales, etc.), should I install multiple pairs of OBIEE RCU schemas

  • Aperture hangs upon Relocating Masters

    I'm trying to relocate my masters to an external drive. First time I tried it it started working then hung on one photo (untitled-1, or something generic like that). I Force quit Aperature then thought it was because Iphoto was open, so I closed it.

  • Oracle Enterprise Linux in VirtualBox Guest -- Shared Folders

    Anyone have any idea how to mount a VirtualBox shared folder inside a Oracle Enterprise Linux guest? When I try the following: mount -t vboxsf <share name> <mount point>I get an error that says the filesystem type is unknown. Thanks!