Ability to left justify dollar sign in report

All,
In my report, I have a field with a data format set to Currency. This, of course, places a '$' in front of the value, such as $1,234,567.
However, I have a requirement to left justify the '$' in the report so that value is displayed as
$ 1,234,567
How can this be accomplished?
Thanks in advance.

user8769897 wrote:
All,
In my report, I have a field with a data format set to Currency. This, of course, places a '$' in front of the value, such as $1,234,567.
However, I have a requirement to left justify the '$' in the report so that value is displayed as
$ 1,234,567
How can this be accomplished?
Thanks in advance.You can acheive this by calling CSS class in the column properties. Refer to this link to get some ideas and how to get started ( http://obiee101.blogspot.com/2008/09/obiee-custom-css-style-class.html )

Similar Messages

  • Dollar sign in report column

    Hi
    I am displaying a report using an sql query. I want to display a numeric field (which is an amount) with a dollar sign. How can i do that
    Appreciate your help
    Thanks

    Hi user585397,
    go to the column properties of your report and there you will find a property called "Number / Date Format". Use the lov to choose a predefined format mask or just enter.
    FML999G999G999G999G990D00The L is the placeholder for the current currency symbol. For more format mask example have a look at the Oracle documentation at http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/sql_elements004.htm#i34570
    Patrick
    My APEX Blog: http://inside-apex.blogspot.com
    The ApexLib Framework: http://apexlib.sourceforge.net
    The APEX Builder Plugin: http://sourceforge.net/projects/apexplugin/

  • FR Studio Reports Account in Rows all left Justified with no Indentation

    I am using FR studio 11.1.2.2
    I have built an Report with Account in my Rows, but when I run the report all the account are left Justified  !!!!
    I want like to be able to see the report with the indented structure as the Essbase Outline.
    Please advise

    There is no indent in FR, only way you can get that is by using allow expansion. If you go that route, then your users will have to expand each member inorder to view the report.
    Regards
    Celvin

  • Displaying Dollar sign in ALV

    How to add the dollar sign infront of field with data type currency (CURR) ?
    Need to display the amount field in the ALV report.
    Please suggest any solution.
    Thanks,
    Khush
    Edited by: khush123 on Sep 22, 2011 11:49 AM

    Hi ,
    Take  another  character field  .
    Concatenate  currency field value  and  '$' and move to character field  and display  .
    This is Simple  way  .
    regards
    Deepak.

  • How to change currency sign in report

    How can I change the currency sign in report like from dollar to pound sign. Any help and advice will be highly appreciated.

    Sherry,
    I'm stumbling my way thru the same question. we need to print the currency symbol based on the country defined in the data. here's the not-so-short answer:
    we're looking into storing the currency symbol as a unicode value (NVARCHAR2 field) in the database by country and linking it to the data selected in the report. I have a select statement in the report sql that retrieves the correct unicode value per data row. the question then seems to become: do i want to display the field as a number with a format mask, or convert the whole thing to a string/char value?
    Keeping everything as a number, in the report format field Format Trigger, i create a mask for each field and call a function to do the following:
    v_format := q'{(}' || q'{"}' || p_currency || q'{"}' || v_format || q'{)}';
    this gives you a mask with the parenthesis for negative numbers, the currency as literal string, and the v_format (NN,NNN,NNN,NNN,NN0.00) for currency amounts. we vary the # of decimal places and pass that value into the function (just to make things complicated.)
    the 'uber complex' version of the function converts the number field to a string/char value. this allows you to change the decimal and separator values for an individual data row. we have not decided to implement this, but it works. you have to enter a 'bogus' character field in the report format and use srw.set_field to change the value at runtime. this keeps the value as a number in the sql for math, but a char to display. complicated. the function does this...
              v_format := '999G999G999G990';
              v_decimalplaces := MOD((p_decimalplaces * 10),10);
              IF v_decimalplaces > 0 THEN
                             v_format := v_format || 'D';
                   FOR i in 1..v_decimalplaces LOOP
                   v_format := v_format || '9';
                   END LOOP;
              END IF;
              CASE WHEN SIGN(p_value) >= 0
                   THEN
                        v_format := p_currency || TO_CHAR(p_value, v_format, 'NLS_NUMERIC_CHARACTERS = '',.'' ');
                        ELSE
                        v_format := '(' || p_currency || TO_CHAR(ABS(p_value), v_format, 'NLS_NUMERIC_CHARACTERS = '',.'' ') || ')';
                   END CASE;
    we would pass the values of NLS_NUMERIC_CHARACTERS to the function.
    the last 'hitch' is that not every UNICODE currency symbol displays properly. the euro (hex 20AC) is fine, but the korean won (hex 20A9) is not. the database character set is AL32UTF8, and the sql works fine in sql_developer. however, reports does not reliably display the symbol. i have a TAR into oracle at the moment, hoping for clarification. there seem to be many layers in oracle reports to get this to work (database character set, report server character set, font in developer, font on report server, etc.)
    let us know how it goes...an often asked, but rarely answered question (IMO). hopefully this gives you some ideas.
    thanks,
    john

  • Left alignment issue with XML report having Excel as output..

    Hello
    I am using XML Publisher report and the output format as Excel. When my output opens in Excel all numeric values are right justified and all characters values are left justified. I want numeric values also left justified.. How to achieve this?

    did you create dimension and put levels in the fact and dim sources? did you specify the number of element at each level?
    Edited by: mma1709 on Sep 30, 2009 6:21 AM
    Edited by: mma1709 on Sep 30, 2009 6:22 AM

  • Add a dollar sign in the output of a field.

    How do I add a dollar sign to a dynamic money field? I am not allowed to leave a space between the dollar sign and the money amount. My data contains 200.00 or 1000.00 and I need a dollar sign in front of any amount.

    Hi,
    there are a few ways that you can achieve this...
    if you are using the transformation agent to transform your data you can add it in the tdf...
    eg
    ^field price
    $@price
    not using tranformatio agent ? then in output
    you can also do it in the form by using the format event...
    In the properties of the field click the full format option and add the following...
    $@(Ltrim ("@_$_."))
    the @_$_. contains the current value of the field so this expression will left trim the field to make sure there are no spaces and then add the dollar symbol to it before inserting it onto the form.
    Syntax is very important when using events and preambles..
    the above is:
    dollar at openbracket Ltrim space openbracket openquote at underscore dollar underscore dot closequote closebracket closebracket.
    You can also use text substitution.
    To do this you need to make the variable global before you can use it...
    so... move your price field out of the way and in its properties make it global. (change it to noprint font to hide it)...
    Now when the field is filled, it will be saved in the global variable library and can be used again...
    Now create a text field and type in it $@price.       (assuming that your field was called price, the new variable is called price...)
    now in the text properties box of your new text click the text substitution field box...and that it...
    You can use your new variable as many times as you like on the page.

  • Left-justify number in alv

    Hi all,
    I' using alv and tried to left justify the numbers.
    The problem is when the number is negative - the number is justified to the left but the minus sign is justified to the right.
    thanks,
    Hagit

    HI,
    IF you are not showing any subtotals/totals on the Amount field then take the char field of same length of the amount field in the internal table instead of Amount field. Use this Char field in the ALV for display.
    Now justification  works as per your requirement. IF you take the amount/currency field the sign will displayed at the last position of the field length.
    ex : Amount of length 15(2) then value will be displayed as 12,345.00- if you use the Left justification then it will display as 12,340.00     -
    Instead if you take as char then it will display as 12,340.00 -  with left justification
    Or
    try this way to get the sign in first position
    DATA    L_AMT    TYPE CHAR16.
    WRITE ITAB-AMOUNT TO L_AMT CURRENCY <Currency>.
    IF ITAB-AMOUNT < 0.
        SHIFT L_AMT BY 1 PLACES RIGHT CIRCULAR.
    ENDIF.
    The data will be displayed as -12,340.00
    Edited by: Avinash Kodarapu on Apr 23, 2009 5:50 PM

  • Left Justify View Selector

    Guys,
    I am running into some formatting issues especially with allignment.
    1. Need to left justify View Selector. I was able to left justify the caption but not able to move the "View seletor" Tried several things like adding size in the left padding and made the allignment left but that still remains in the centre. Only the caption moves left but i want everything left jusstified.
    2. I have two reports in my dashboard. The top report goes pretty widee and the user has to scroll across to see the bottom report which is pretty small. I am trying to left justify the bottom report so that it always stays completely left side so that user dont have to scroll. But looks like even though i changed the section properties in the "Edit Dashboard" it still stays in the centre.
    Can you guys advice if there are some style sheets or XML that we can modify to achieve this.
    thanks
    Prash
    Edited by: Prash11 on Dec 4, 2009 10:59 AM

    Hi Prash,
    Throw this into a text object at the bottom of your dashboard and check the enable HTML option.
    It'll left justify ONLY the view selector drop down box.
    Cheers!
    -Joe
    <script type="text/javascript">
    var leftJustifyVSelector = function (debug,align){
         if (debug === 1) { document.write("Begining leftJustifyVSelector function"+"<BR>");}
         // Get all view selector objects
         var vselectors = document.getElementsByTagName('td');
         if (debug === 1) { document.write("Get the TD elements"+"<BR>");}
         if( vselectors == null){
              // Couldn't find a view selector
              if (debug === 1) { document.write("No view selectors available"+"<BR>");}
              return;
         // Otherwise loop through them and align them to the left
         if (debug === 1) { document.write("Looping over the view selects"+"<BR>");}
         for ( var view =0; view < vselectors.length; view++){
              // check if this is not a view select class TD element
              if ( vselectors\[view\].className == null ||
                   vselectors\[view\].className == undefined ||
                   (vselectors\[view\].className != "VSelSelector")){
                   // Not a view select TD
                   if (debug === 1) { document.write("Not a view selector TD.  Continue."+"<BR>");}
                   continue;
              // We must have found a view selector change the alignment property
              vselectors\[view\].align=align;
              if (debug === 1) { document.write("Done setting the align property to left"+"<BR>");}
    leftJustifyVSelector(0,"left");
    </script>

  • Excel output Left justified using OLE

    Hi,
    Can anyone please let me know how to align all the cells in the excel sheet as LEFT JUSTIFIED using OLE? I have few numeric values and by default it will be on the right side, i want to make it left justified.
    Edited by: Pradeep Kumar on Jan 19, 2011 1:36 PM

    Its obvoius that you will always find numeric values of right aligned.
    I had faced a similar kind of issue while downloading PSTLZ  US Postal Codes. You can try this way:
    Place a apostrophe to the field you need to be left aligned
    ' ' ' '           " This  defines your apostrophe
    You can check this in excel. Just place a equal sign and apostrophe infront of the value and press enter. The value will be left aligned.
    Try the same thing in your code.
    It was a very old change for me. Trying to get some sample code snippet for referance.
    Here it goes:
    CONSTANTS: c_prefix VALUE '='.
        CONSTANTS: c1_prefix VALUE ' " '.
        CONCATENATE  c_prefix
                   c1_prefix
                   i_lfa1-pstlz
                   INTO i_lfa1-pstlz
    ~ Last edited for adding the code snippet
    Edited by: K.Manas on Jan 19, 2011 9:35 AM

  • Unable To Produce RTL (Right To Left) Output in Character Mode Reports

    hi
    Work environment
    - Oracle Forms 6i(client/Server) With pacth 18
    - dot matrix printer
    - Window xp
    Create Report with property "Direction" is "Right to Left"
    NLS_LANG is set to AMERICAN_AMERICA.AR8MSWIN1256.
    While running this report with mode=bitmap, the output columns
    are flipped. The leftmost column appears to the right of the output. This is the expected
    behaviour.
    While running the same report with mode=character and desformat=dflt leftmost column
    remains on the left. The column order is not changed from Right to Left.
    Based on note 332829.1 in metalink
    Should I change dflt.prt file as follows:
    printer "dflt"
    height 66
    width 80
    nls locale "arabic"
    nls datastorageorder
    "logical" nls
    contextuallayout "no"
    nls contextualshaping "yes"
    after page control(L)
    return control(M)
    linefeed control(J)
    i changed, but did not change something
    Where is the problem
    thanks for help

    my Regional and Language settings are:
    standards and formats : Arabic (U.A.E)
    Location : United Arab Emirates
    Language for non-Unicode Programes : Arabic (U.A.E)
    My NLS Settings
    NLS_LANG : ARABIC_UNITED ARAB EMIRATES.AR8MSWIN1256
    USER_NLS_LANG : ARABIC_UNITED ARAB EMIRATES.AR8MSWIN1256
    DEVELOPER_NLS_LANG : AMERICAN_AMERICA.AR8MSWIN1256
    My Report Object Settings:
    Report Direction : Right to left
    all Objects (Frame,Repeating Frame,Fileds..) Setting
    Direction : Right To Left
    Justify : Right To Left
    Note :
    - the Labels frame Direction is ok but Repeating Frame Have Direction Problem
    - Print on Network printer Epson dot matrix
    thanks for all

  • How to change dollar sign to English pound as default

    How can I change the dollar sign ti english pound sign as my default

    As well as Eric's suggestion (probably the easiest solution), you could add the English (UK) keyboard, by going to Settings > General and then either Keyboard or International.  When a new keyboard is added, there is a globe icon to the left of the space bar: use that to change the keyboard.  The £ sign on the UK one is where the $ sign is on the US one.

  • GREP search for \$ Dollar sign doesn't find them all?

    Hello,
    OK-I was practicing my GREP yesterday and was working with escaping out characters. Since the $ could not be found, I assumed it needed to be escaped out \$. The odd thing is, when I say find next, it skips many of them in the document?
    Anyone know why?
    thanks!
    babs

    This has been reported before; it's an oddity of ID's implementation of GREP. Nobody knows why! (*)
    It only works reliably when you do not use the escape code \$ (you were, in fact, correct to try that first!), but instead use the Unicode notation for a dollar sign: \x{0024}.
    I've noticed some strange GREP-related behavior myself: at times, it seems "Find Next" can skip a *huge* quantity of text and finds something near the end of the file; but a next "Find Next" mysteriously jumps back to the previous find position, and continues from there as if nothing happened.
    (*) I'm pretty sure it's the Adobe engineers that are responsible for this. According to Peter Kahrel, Adobe didn't write the GREP module by themselves but chose to use a free programming library called "boost". Now boost is an extremely thorough piece of work that has gone through literally years of development and dozens, if not hundreds of programmers (probably unpaid as well, since boost is open source), and I cannot imagine something like this to slip through unnoticed.
    But ... for InDesign, the Adobe programmers had to add code to cater for InDesign's own special characters and codes -- stuff like the special characters and spaces, and text variables. It's not hard to imagine a programmer accidentally changing a line of code that did the, erm, "now search for \$" stuff.

  • Preview app: Add text annotation with left justify?

    I'm using the Preview app to insert text into some PDF files. I can use the Annotate feature to create a text box in the area I need it and adjust the font, color, size, etc. The only thing I can't seem to do is set the justification to Left Justify. It will show text as center justify - anyone know how to change this?

    I can find out what the defaults are with:
    defaults read com.apple.preview
    There are many properties but a TextAligment property is not one of them.
    I tried below but they do not work.
    defaults write com.apple.preview NSTextAlignment 0
    defaults write com.apple.preview PVAnnotationTextAlignment 0
    NB: 0 means left alignment
    Any idea?
    Maybe Apple has to create an text alignment feature for the GUI or provide the property that we can set it from Terminal.

  • How do I left justify the text in the tabs of a JTabbedPane.

    In 1.3.1 this used to work by supplying an HTML string with <div align="left"> but when I run with 1.4.1 this is now broken and I get center justification.
    Does anybody know a way to get the text in the tabs to be left justified.
    Thanks,
    Philip

    First, I found while using JTabbedPane that the "standard" behavior is to allow to a tab the exact space needed to display the tab text. Hence with this behavior, there is actualy no difference of "left" or "center" aligned text. So I assumed that you found a way or another to make your tabs wider than the "string width"...
    Here is a solution:
    You can override the TabbedPaneUI class and ajust the "layoutLabel()" method. Here is the code..
    //Your code using the tabbedPane
    JTabbedPane tp = new JTabbedPane();
    tp.setUI(new LeftTabbedPaneUI());
    //File containing the overrided TabbedPaneUI
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    import javax.swing.text.View;
    class LeftTabbedPaneUI extends javax.swing.plaf.metal.MetalTabbedPaneUI {
            //I also overrided this function just to force tabs wider than
            //the displayed "String Width". I asume that you found another
            //way to do this so you can delete this function in your
            //implementation
         protected int calculateTabWidth(int tabPlacement, int tabIndex, FontMetrics metrics){
              return 150;
        protected void layoutLabel(int tabPlacement,
                                   FontMetrics metrics, int tabIndex,
                                   String title, Icon icon,
                                   Rectangle tabRect, Rectangle iconRect,
                                   Rectangle textRect, boolean isSelected ) {
            textRect.x = textRect.y = iconRect.x = iconRect.y = 0;
         View v = getTextViewForTab(tabIndex);
         if (v != null) {
             tabPane.putClientProperty("html", v);
         //This Line is added to avoid writing on tab border while aligned to left.
         //You can comment this line to test and or adjust the "5" pixel space
         Rectangle rec = new Rectangle(tabRect.x+5,tabRect.y,tabRect.width,tabRect.height);
            SwingUtilities.layoutCompoundLabel((JComponent) tabPane,
                                               metrics, title, icon,
                                               SwingUtilities.CENTER,
                                               SwingUtilities.LEFT,
                                               SwingUtilities.CENTER,
                                               SwingUtilities.TRAILING,
                                               rec,
                                               iconRect,
                                               textRect,
                                               textIconGap);
         tabPane.putClientProperty("html", null);
         int xNudge = getTabLabelShiftX(tabPlacement, tabIndex, isSelected);
         int yNudge = getTabLabelShiftY(tabPlacement, tabIndex, isSelected);
         iconRect.x += xNudge;
         iconRect.y += yNudge;
         textRect.x += xNudge;
         textRect.y += yNudge;
    }Here I overrided the "Metal" implementation of the tab but you must override the implementation of the used Look And Feel,
    ex. "com.sun.java.swing.plaf.window.WindowsTabbedPaneUI" for the windows LAF.

Maybe you are looking for

  • Create a new Business Partner with LSMW

    Hello, We want to create a new BP using LSMW. We chose IDoc basic type CRMXIF_PARTNER_SAVE_M03. We want to create it with internal number assignment (we don't have BP ID or BP GUID). Unfortunatelly, when we leave PARTNER_NO and PARTNER_GUID fields em

  • USB drives not mounting after sleep

    I've started to experience a frustrating problem whereby any connected USB drive fails to mount after the Mac has been to sleep. Rather alarmingly I get an error message saying "disk not ejected properly" The set-up I have is two USB drives connected

  • HT2404 Can I upgrade from OS X 10.6.8 to OS Lion on an IMac purchased in 2006?

    Can I upgrade from OS X 10.6.8 to OS Lion on an IMac purchased in 2006?

  • Unrendering of clips -

    after rendering a clip in premiere pro cs 5.5, the clip will unrender if I click on it in the timeline.  Has anyone else experienced this?

  • Data migration/cutover inputs

    Hi friends, need some help with lsmw/bdc templates to upload master/operative data.. wanted to check if anyone could send some links/samples across.. also, if any info on std. BAPIs available in facilitating the process.. thanks in anticipation..