Formatting a number element with commas and decimals.

I have a dataset with numbers.  I already set the column type to "number".
I want to format the number data with commas and decimals.  I found a way to add decimals, but I'm still very confused how to do commas and to combine that with the decimal formatting.
Also, how do I apply that to a repeat region in my spry region?
Any help would be appreciated.  Thank you very much.

I found this on one of the forum questions.
Excel dont preserve the trailing zeros.
try opening the xcel and type 5.0000 and tab out, it wont preserve the trailing zeros after decimal.
try finding out how to disable the option in excel. if you do that, you will see what you send out from the report.
But you can try to convert the number into a text by trying to append a space at the beginning. See if that would work.
Thanks
Swarna

Similar Messages

  • Need output with commas and decimals.

    Hi All,
               I want to print this below no using write statement with commas and decimals .
                                            123,45,67,890.12
    Note :
              It must be declared in parameters and it is currency value
    and my output must also be like this
      123,45,67,890.12
    Can any one suggest me what to or send me some sample program for this,
    (points will be rewarded)
    Thanking you
    vinoth.r

    quote:
    Originally posted by:
    The ScareCrow
    You should redesign your db to have another table
    This table should have the asset id and the category id (I
    call this a bridging table)
    The category column would then be removed from the asset
    table.
    You then do a join on the tables to gain the category
    description.
    But to fix your problem with the existing structure
    Your query
    <cfquery name="qIndex" datasource="#appDSN#">
    SELECT Asset.Reference, Asset.AssetName, Asset.Category
    FROM Asset
    WHERE Category LIKE '%#URL.Category#%'
    </cfquery>
    <cfoutput query="qIndex">
    <cfset catids = ValueList(qIndex.category])>
    <cfquery name="qCat" datasource="#appDSN#">
    Select Category_Name
    From categories
    Where Category_ID IN (#catids#)
    </cfquery>
    #qIndex.Reference#<br />
    #qIndex.AssetName#<br />
    <cfloop query="qCat">
    #qCat.Category#<br>
    </cfloop>
    </cfoutput>
    Ken
    Ken, Thanks. It's really close, but all of the repeating
    records are taking the Category output from the first record in the
    set and repeating it...e.g. if the first record is "Mouse,
    Keyboards, Trackballs", all of the subsequent records show the
    same.
    Also should "ValueList(qIndex.category])", have been
    "ValueList(qIndex.category)"?
    If there's not a way to do this using the current db, i'll
    try using a bridging table.
    thanks.
    paul

  • Problem with comma and point

    Hello,
    I have a problem with comma and point in a double-digit.
    I use a english driver for HM8142. When I get the values then I only get
    int-digits. How can I change "Use comma as separator" . I tried to change
    the option in LabVIEW.
    I changed it, then I got the window. "To change, restart the programm". I
    have done this. But when I have a look at the option, it is not changed.
    What can I do?
    I am not the admin on the computer.
    Martin

    Hi Martin,
    you do not have to change any system settings neither in LabVIEW nor in your windows.
    All instrument drivers should use a point as decimal separator. You can overwrite the decimal point handling in the string functions "Scan from string" and "Format into string".
    Make a right click on the function and use "Edit Scan String". In the dialog open the ring under "Selected operation", the last entry allows you to set the character for the decimal separator. This separator will be used for all the following floating point numbers.
    From your name and problem I think you are located in central europe. I do not have a german version of LV so I cannot tell you how the elements are named in german.
    Waldemar
    Waldemar
    Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
    Don't forget to give Kudos to good answers and/or questions

  • Error? on Example 16-7 XMLFOREST: Generating Elements with Attribute and Ch

    Error in example on page http://download-east.oracle.com/docs/cd/B19306_01/appdev.102/b14259/xdb13gen.htm#i1028612
    Example 16-7 XMLFOREST: Generating Elements with Attribute and Child Elements
    Example appears as
    SELECT XMLElement("Emp",
                      XMLAttributes(e.first_name ||' '|| e.last_name AS "name"),
                      XMLForest(e.hire_date, e.department AS "department"))
    AS "RESULT"
    FROM employees e WHERE e.department_id = 20;
    1. employees table not qualified as hr.employees
    2. e.department as "department" should be e.department_id as "department"
    corrected would be
    SELECT XMLElement("Emp",
                      XMLAttributes(e.first_name ||' '|| e.last_name AS "name"),
                      XMLForest(e.hire_date, e.department_id AS "department"))
    AS "RESULT"
    FROM hr.employees e WHERE e.department_id = 20;albert

    It was subreport-related, though I still do not know the exact root cause.
    I was having trouble with both the built-in export as well as a custom process.
    Removing the subreports as suggested, I isolated the failure to one of the three subs and rebuilt this subreport from scratch (it was only three fields) and now the report has no trouble with the pdf export. I am not sure if it had a resolvable technical issue or if it was just corrupted, as it is now working, I am not going to expend much energy on finding out.
    Thanks for the suggestion.

  • Currency field to be displayed with commas and asterisks(formatting)

    I have a field REGUH-RWBTR in my sap script code. I need to have the currency displayed with commas. And also if the digits are less, then left pad it with asterisks for remaining spaces.
    For eg, If the Digit is 12345678912.23 (max value), it should print as 12345,678,912.23.
    And If the digit is 12345.89, it should print as ******12,345.89
    Please help me to solve this problem.Its urgent.
    Thanks,
    Sandeep.

    Hello,
    You can use the WRITE using EDIT MASK.
    USING { {NO EDIT MASK}|{EDIT MASK mask} }
    Effect
    This addition overrides a conversion routine defined through reference to the ABAP Dictionary. The addition NO EDIT MASK only switches off the execution of an assigned conversion routine. The addition EDIT MASK calls either another conversion routine or defines an edit mask. For mask, a data object of the same name is expected.
    In order to call an arbitrary conversion routine CONV, mask must contain two equals signs, followed directly by the name of the conversion routine: "==CONV". During output, the content of dobj is passed to the function module CONVERSION_EXIT_CONV_OUTPUT, converted there, and then the result is displayed. If the function module is not found, an exception that can be handled is triggered (as of Release 6.10). The statement DESCRIBE FIELD contains an addition in order to fill mask accordingly.
    If the output length is specified explicitly with len, the conversion routine is executed for the specified length; otherwise for the implicit output length. If * or ** is specified for the output length, the appropriate rules are used for the converted result.
    If the first two characters in mask are not equals signs, the content is interpreted as an edit mask in which some characters have a particular meaning. The WRITE statement does not then output the content of dobj directly, but the character string in mask as follows:
    If the first two characters in mask are "LL" or "RR ", these are not output, They control whether the edit mask is left-justified or right-justified. If the first two characters are other characters, the edit mask is left-justified.
    All "_" characters are replaced from the left (in the case of "LL") or from the right (in the case of "RR") with characters for character-type types or numbers for the types p or i from dobj. In the case of fields of type c, closing blanks are ignored. Data objects of type f or x are converted into type c before editing. Superfluous characters "_" in mask are replaced by blanks. Characters from dobj for which there are no characters "_" in mask are not displayed.
    If dobj is of type i or p, the first character from the left "V" in mask is replaced with "-" in the case of a negative number and by blank in the case of a positive number.
    All the other characters of the edit mask are displayed unchanged.
    If no output length is specified, the implicit output length of dobj is used. If len is specified for the output length, the value of len is used. If * is specified for the output length, exactly that length that is required for the list display is set. If, in Unicode systems, characters of the edit mask are replaced by characters that take up more than one column on the list, the output length is increased accordingly and the output is filled with blanks in the list buffer. If ** is specified for the output length, double the length of the edit mask mask is used.
    If other formatting options are specified concurrently for an edit mask, these are used first and then the special characters in the edit mask are replaced by the interim result. The date masks date_mask are an exception to this. If these are specified, the edit mask is ignored.
    Notes
    In Unicode systems, you must remember that a character "_"in the edit mask does not necessarily correspond to a column in the list display since the space required in the display depends on the character to be replaced.
    The minus sign for a negative number is not displayed if no edit character "V" is specified. The decimal separator of a packed number with decimal places must be specified at the required position in the edit mask.
    Example
    Edited output of time duration. In the first output, the function module CONVERSION_EXIT_DURA_OUTPUT is executed. This converts the duration specified in seconds into minutes. In the second output, the edit mask is output according to the above rules. However, the underscore characters "_" are replaced by the characters from time.
    DATA: dura TYPE i,
          time TYPE t VALUE '080000'.
    dura = sy-uzeit - time.
    time = dura.
    WRITE /(30) dura USING EDIT MASK '==SDURA'.
    WRITE /(30) time USING EDIT MASK
                           'RRThe duration is __:__:__'.
    Regards,

  • Format a number, pad with spaces

    I want a simple way to format a number into a String, but have it padded with spaces. My code started like this:
    DecimalFormat myFormatter = new DecimalFormat("###.00");
    String output = myFormatter.format(12.5);
    The output is '12.50' when I want ' 12.50' (leading space). There's got to be an easy way to do this!
    Thanks for your help

    What you probably wanted to do was print some numbers in a column (of JTextArea's, for example) so that the decimal points line up.
    I wasted some more time and came up with the following:  String formattedNumber = numberPad(number, "###.00E0");
      static String numberPad(double number, String format) {
        int desiredDecimalPosition = format.indexOf('.');
        DecimalFormat numFormat = new DecimalFormat(format);
        String formattedNum = numFormat.format(Math.abs(number));
        formattedNum = formattedNum.replace('E', 'e');
        int exponentPosition = formattedNum.indexOf('e');
        if (exponentPosition < 0)
          exponentPosition = formattedNum.length();
        formattedNum = formattedNum.replaceFirst("e0", "");
        int decimalPosition = formattedNum.indexOf('.');
        formattedNum = (number > 0 ? " " : "-") + formattedNum;;
        if (decimalPosition < 0)
          decimalPosition = exponentPosition;
        int padding = desiredDecimalPosition - decimalPosition;
        if (padding > 0)
          formattedNum = "        ".substring(8 - padding) + formattedNum;
        return formattedNum;
      }Now it turns out that- despite the fact that I've told DecimalFormat to format precisely 2 digits to the right of the decimal, it sometimes randomly gives me 3, and (less often) 1!
    All this trouble just to try save 16kB of Henrik Bengtsson's sprintf in my jar file...

  • Confusion with Commit and Create Operations

    Hi:
    I'm using JDeveloper 10.1.3.4. I created an ADF Table that I want to use for data entry and modification. I also added Commit and Create operations as command buttons. Here's the behavior I'm seeing when I run the page:
    1. When I click on Create a blank record appears but no record is created in the database. This seems appropriate.
    2. When I enter data and click Commit, two records are created in the database: one with the data I entered and a blank record. This is problematic.
    Can anyone suggest a reason why I get 2 records during the Commit-button action? Also, is there a correct way to create this data-entry table?
    Thanks.

    Hello,
    Try using the createInsert operation instead of create.
    Both these operations only create a new row on the midtier, NOT in the database, which is intended.
    because adding the row right away to the database removed any use for the midtier in general
    cereate only creates a row in the midtier, it does not cimmit anything to the database and will not do so unless any value in that row is altered.
    createInsert create a row on the midtier and marks it so that the next commit will save this row to the database no matter if no values are changed.
    It doesnt explain why you got two records though, which is something different, maybe you clicked twice or called create twice?
    -Anton

  • Controling heating/cooling element with labview and usb 6008 DAQ card

    Greetings All
    I'm looking for a heating/cooling type of element that I can control with labview and my usb-6008 card. Heating/Cooling will just be for clean water and the temperture range will be from 0 C to 100 degree C.
    Thanks
    The heating and cooling elements can be seperate products. Any recommendations

    A simple kettle element will of course be sufficient for upto 100°C
    To get the temperature down you need a cooling system, what springs readily to mind of course is a refrigerator.
    Just a note of warning, water and electricity are dangerous bed fellows.
    On that note perhaps one of those vortex air units would be safer - they blow hot in one direction and cold in the other, nominally to 100°C
    see: -
    http://www.airtxinternational.com/how_vortex_tubes_work.php

  • Same part number one with valuation and another without valuation

    Hi
    I would like to know the below on inventory:
    We buy sapare parts for the project1 , but some still left in the store, lets say 30pcs.
    we would like to use these 30 spare parts with zero value,becuase we already paid for this spare parts.
    Now we buy the same part number (spare parts) for the project 2 with price $5 .
    how do we differentiate these old and new spares when choosing in daily transactions.
    Please explain we to handle this.
    and also we are trying to assign global code for all materials, in this case how do we assign same number for the spareparts with value and without value.
    Please let me know if you still need clarifications to give the correct idea and answer. Thanks in advance.
    Thanks
    Udaya

    Hi,
    Is it possible to put quantity with Zero price ?, please advise
    For example : if matain our stock in two batches with the follwoing prices is it possible ?
    Value Batch1:     40 x 4.00 = 160.00
    Value Batch2:     60 x 0.00 = 0.00
    Total value:     = 160.00
    Average price:     160.00 / 100 = 1.60
    If we use Batch 1 material the price will be 4.00/pc
    If we use Batch2 material the price will be 0.0/pc
    is this correct. apprciate if you confirm this scenario. thanks.
    Thanks
    Udaya

  • Format numbers with commas and dollar signs

    I've searched documentation and I do not see how to add a $ (dollar sign) to a number and how to add a comma after 3 digits.
    for example  $32,000.00
    Thanks in advance

    Hello ..
    In PLD is this possible, but also about the issue of setting up your database. If you set the currency as $ Dollar then you will see it as such in print. The same with the insert.
    If the dollar had another name, then you can concatenate a text field indicating $ with a formula field to extract the coin value you wish to view.
    Hope this helps
    Yours sincerely,

  • Regular Expression with comma and encapsulated charaters

    Would appreciate some help. Looking for a regular expression to remove comma's from encapsulated text as follows
    For example
    - Input
    1,"This is a string, need to remove the comma",Another text string,10
    - Required output
    1,"This is a string; need to remove the comma",Another text string,10
    Have tried to use the REGEXP_REPLACE but could not grasp the pattern matching.
    Thanks John

    John Heaton wrote:
    Thanks for the solution,this works great for a single field encapsulated by " and containing ,. I am parsing several different file definitions so it would need to cascade through the string for a undetermined number of times and replace all occurrences. Then try (performance-wise) MODEL solution:
    {code}
    with t as (
    select '1,"This is a string, need to remove the comma",Another text string,10' txt from dual union all
    select '1,"remove this comma,",Another text string,10,"remove this comma,",xxx,"remove this comma,",11' txt from dual
    select txt_original,
    txt
    from t
    model
    partition by(row_number() over(order by 1) p)
    dimension by(1 rn)
    measures(txt txt_original,txt,0 quote)
    rules
    iterate(
    1e9
    until(
    iteration_number + 1 = length(txt[1])
    quote[1] = case substr(txt[1],iteration_number + 1,1)
    when '"' then quote[1] + 1
    else quote[1]
    end,
    txt[1] = case substr(txt[1],iteration_number + 1,1)
    when ',' then case mod(quote[1],2)
    when 1 then substr(txt[1],1,iteration_number) || ';' || substr(txt[1],iteration_number + 2)
    else txt[1]
    end
    else txt[1]
    end
    TXT_ORIGINAL TXT
    1,"This is a string, need to remove the comma",Another text string,10 1,"This is a string; need to remove the comma",Another text string,10
    1,"remove this comma,",Another text string,10,"remove this comma,",xxx,"remove this comma,",11 1,"remove this comma;",Another text string,10,"remove this comma;",xxx,"remove this comma;",11
    SQL>
    SY.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Need help in formatting a number field with same precision for excel output

    I am trying to get the same preciision for a field in RTF template when the output is in EXCEL
    i.e. same number of digits after decimal. So, I would like to show 150 as 150.00 and 123.2 as 123.20 etc !! Is there a way to do it. the Built in formatting will not display 150.00 for 150 . but if i add $ symbol it will display. But i dont need $ syambol. please help.

    I found this on one of the forum questions.
    Excel dont preserve the trailing zeros.
    try opening the xcel and type 5.0000 and tab out, it wont preserve the trailing zeros after decimal.
    try finding out how to disable the option in excel. if you do that, you will see what you send out from the report.
    But you can try to convert the number into a text by trying to append a space at the beginning. See if that would work.
    Thanks
    Swarna

  • Invalid number error - with comma separated values

    FUNCTION fn_check_value(
    p_ids_in IN VARCHAR2
    RETURN NUMBER
    IS
    v_nCheckValue NUMBER;
    CURSOR vCur
    IS
    SELECT COUNT(*)
    FROM t1
    WHERE col_id IN (p_ids_in); -- col_id is number field
    BEGIN
    OPEN vCur;
    FETCH vCur INTO v_nCheckValue;
    CLOSE vCur;
    Return v_nCheckValue;
    END fn_check_value;
    I get following error when the input is 3,4. Works fine with single value
    Execution failed: ORA-01722: invalid number

    If you have more than one number in the list being passed in through p_ids_in then you could try the following
    CURSOR vCur
    IS
    SELECT COUNT(*)
    FROM t1
    where
    INSTR(chr(44) || p_ids_in || chr(44), chr(44) || col_id || chr(44) ) > 0;
    This will do pattern matching and will return a true if the pattern matches.
    For example, if p_ids_in = '3,4'
    then INSTR (',3,4' , ',3,') > 0 will return a true.
    This approach is useful if you have more than one value inside a string.
    Shakti
    (http://www.impact-sol.com)
    (Developers of Guggi Oracle - Tool for DBAs and Developers)

  • I hve unlocked iphone and got walmart family mobile. I was issued a phone number initially with phone and then I had them change it. Now when I send texts caller id people see is the original phone number, and when I call it is the new number.

    I have unlocked iphone and got walmart family mobile. I was issued a phone number initially then asked for a different one. Now when I send text messages, they show up the original number, but when I make phone calls, the id shows up the new number, I can recieve text messages to both numbers. If you try to call the first number it says it is not a working number. On my phone, if I go under "about" it says "my phone number" and it says the second number, under settings, and messaging, it says that I send and recieve messages from the original one. T-mobile, has no idea why this is happening and has tried everything to fix it

    This is for iMessages only, not for text messages as in SMS/MMS.
    Settings > Messages > Send & Receive > Apple ID.
    Select your Apple ID and at the menu window that appears, select Sign Out.
    Turn iMessage off at Settings > Messages > iMessage.
    Then follow these instructions.
    You can remove an iPhone from your support profile by following these steps.
    Step 1: Click on this link to open the login window of your support profile.
    Step 2: Log into the website using your Apple ID – same as your iTunes login.
    Step 3: Click on the button ‘Edit products’ and select the iPhone that you want to remove from the list.
    Step 4: Click on the arrow behind the product, and then click on the button ‘Unregister’ to delete the iPhone from your support profile.
    After you unregister your iPhone, on your iPhone go to Settings > Messages > iMessage and turn iMessage on.
    Go to Settings < Messages > Send & Receive > Apple ID. Sign back in with your Apple ID.
    This should re-register your iPhone with your Apple ID with iMessage with the new phone number only.

  • How to send Oracle report automatically in format pdf by email with subject and body?

    Hello,
    How to send e-mail attachment and mail other details like from ,subject,cc,to,mail body. In Oracle Developer Suite 10g?
    Regards.

    did you try to run report parameter form = yes ,
    put to the parameter form following system parameters  and set et.
    run report  with belove value
        - DESTYPE = MAIL
        - DESFORMAT = PDF
        - DESNAME =  mail adres
    then according to the result ,rearrange your report forms side  while invoke report from forms
         -  SET_REPORT_OBJECT_PROPERTY(  reportobject_id , DESTYPE          , mail ) ;
         -  SET_REPORT_OBJECT_PROPERTY(  reportobject_id , DESFORMAT     , PDF ) ;
         -  SET_REPORT_OBJECT_PROPERTY(  reportobject_id , DESNAME          , mail adres ) ;

Maybe you are looking for

  • Rounding of decimals in totals

    I have noticed a difference in the behavior of BPS layouts vs. BEx queries (or using the LISTCUBE transaction to display InfoProvider contents directly). In the layout, I have chosen to display 0 decimal places for a key figure.  In a BEx query upon

  • Frame in presentation for white business card

    Hi, I'm updating my companies business cards which have a white background. Is there a way to get a thin black line at the artboards edges that I could use when the design is put on a word document for presentation? It's just to see the outer edge in

  • Question about ASMlib/UDEV

    Hi experts, I will be very happy if someone who have experience with ASMlib/UDEV explain me the following. Yesterday when I start to read about Oracle 11gr2 DB/GRID and OEL6I discovered that I can't download and use asmlib rpm as I previously did in

  • New mx922 printing fuzzy

    I have a new mx 922 which is printing wirelessly from my MacBook Pro running 10.6.8.  It has the setup ink cartridges in it and is loading paper from the bottom tray.  The printing is coming out mostly crisp but with a fuzzy section left of center al

  • TextField in JTree

    Hi, I'm using a treeCellEditor to edit a jtree with textfields. It's works but I don't know how to make the cursor disappear in the textfield when I type on ENTER : textField.addKeyListener(new KeyAdapter() { public void keyTyped(KeyEvent evt) { if (