How to FORMAT a number field in Formula editor

Dear All,
I have a "QUANTITY" field in database which has to get displayed in the report as " QTY : " that  will look like QTY : 54.
Where as now it coming as QTY : 54.00
So, how to format this field in the Formula Editor while concatenation of
"QTY : " + CStr()
If any one has any idea please help me out.
Thanks and regards.

Hi friends,
Thanks to all of you that you all have replied my question and given your answers.
Thanks to all of you specially Alpana Phapale, Wallie Chang, Poonam Thorat and Raghavendra Gadhamsetty, the answers given by you is the perfect one may be in different ways and only one can be used by me. But your answers were exactly correct.
Thanks to Asha Lund, your answers is also correct but the result as per my report should be in figures and not in words.
Whatever it may be but for repling thanks to you too.
Please be always with me, I am very new to Crystal Report and just learnt by my own as my Boss ordered me to do this and I have to make about 50 reports within 15 days. I think the day will start from today.
Well friends thanks a lot again for all your effort.

Similar Messages

  • How to format large number field in XML so that it appears as is in Excel

    Hi
    I need help in formating the number field so that the number displays completely in Excel.
    Ex: 12345678889453 and this appers in Excel as 1.23457E+13
    Please let me know if you have any idea on this.
    Thanks

    Hi friends,
    Thanks to all of you that you all have replied my question and given your answers.
    Thanks to all of you specially Alpana Phapale, Wallie Chang, Poonam Thorat and Raghavendra Gadhamsetty, the answers given by you is the perfect one may be in different ways and only one can be used by me. But your answers were exactly correct.
    Thanks to Asha Lund, your answers is also correct but the result as per my report should be in figures and not in words.
    Whatever it may be but for repling thanks to you too.
    Please be always with me, I am very new to Crystal Report and just learnt by my own as my Boss ordered me to do this and I have to make about 50 reports within 15 days. I think the day will start from today.
    Well friends thanks a lot again for all your effort.

  • Web app Number field: How to format a number as currency in Business catalyst

    Not a coder. I have a Number field I have created in my web app, please how can I format this field to display the figures like this 999,999,999,999 (#120,000,000) random figure. Help will be appreciated.

    You can't. Number type field is there for storing integers. 999,999,999,999
    is not an integer. You need to use text string. Unless you're using the
    field inside the search form, in which case you need to use JavaScript to
    format the content of the field on the frontend.
    Cheers,
    Mario

  • How to Format a number to support multiple languages

    I am trying to format a number so that it shows up with the corret decimal separators and thousands separators for different regions/languages, but can't seem to.
    123456.223 is 123,456.223 (US English) and 123 456,223 in French (France)
    I don't know how many such regional settings are being used and what the decimal and thousands separators are.
    If you set the Format to 'System Default Number Format', all is well (But I have to live with 2 digits after the decimal). However, if I want to customize it by saying choosing one of the preset formats or using 'Customize'(say 3 digits after the decimal, for example), then, if I am designing the report in US English setting, the separators from that setting are used, even when the report is generated in French locale. Even if I try to put in a condition for these separators and use 'DefaultAttribute', it doesn't seem to help.
    One workaround is to format the number as a string and display the string instead (this time use ToText() function and provide the no. of decimal places needed). But I have aggregations based on this field and they don't work in with string fields.
    Could someone advise me if there is a way to solve this problem? (I'm hoping that there is some way, perhaps an easy one to overcome this problem.) It seems anytime I want to change the default setting, the current values are stored and used irrespective of the reigonal setting.
    Any help is greatly appreciated.
    Thank you,
    Raghu

    Use the default settings and then it should format according to the local PC settings.

  • How to format a numeric field in ES2 ?

    Hi...
    I'm trying to format a numeric field in LiveCycle designer using six digit and allowing zero's "000000"…
    I went to patterns for setting the format, unfortunately I couldn't know how figure it out?
    I’ve tried this pattern: null{}|zero{000000}|num.integer{}
    It didn’t work!
    what actually I’m looking for is six digit at all time for instance if enter value of 1 in the field expect to appear 000001 ,and if i enter value 567 the appearance will be 000567 in the field and so on...etc.
    Another issue is how to validate a range of numeric value like 000001-999999 so that the input will be only restricted by those values…
    Hope this is clear! And sorry for my bad English
    Best Regards...

    Hi,
    could you please share your solution?
    I have a similar problem. I need to allow zeros before my integers to be inputed to the form.
    thanks.
    Please see my posting here:
    http://forums.adobe.com/thread/870306?tstart=0

  • Date format(for number fields)

    Hi there.
    I'm creating some sql queries wich will be executed by some users throught the Oracle client PL/SQL, and I need to format some fields in date format.
    Those fields are NUMBER(8) and they are in that format: "YYYYMMDD"
    The format I want to put that information is: "DD.MM.YYYY".
    What's the easiest way to do that?
    The version that I'm using is Oracle 9.2.0.4.0.
    Thanks by the way.

    Hi,
    Use TO_CHAR to convert the number to a string,
    use TO_DATE to convert the string to a date, then
    use TO_CHAR to format the date.
    TO_CHAR ( TO_DATE ( TO_CHAR ( numeric_column
                                , 'fm00000000'
                      , 'YYYYMMDD'
            , 'DD.MM.YYYY'
            )This shows why storing dates in some other kind of column is a bad idea.

  • How to format a number to "+0000000000.123,45"

    Hi! my name is Jorge. My problem is that I need to format a number to a extrange format. I know how to change the decimal point, the number of integer and fraction, etc.
    But the problem is I want the number with N zeros at the begining but only with decimal point if there are digit. And I need the sign always appear, if it is a minus or a plus.
    For example:
    123,456.789 -> +0000000000123,456.789
    -1,234,567.890 -> -00000000001,234,567.890
    It is possible using a pattern. There is someone who show me how, because I can't find it the rigth pattern.
    Thank you very much,
    Jorge.

    Here play with this - you'll need to tidy it up a bit for numbers under a 1000 or a million - maybe a parseInt function // * here would do it - Anyway, its a start. I've written it in a drag 'n' drop style so you can test and play first beofre applying it. Thats what I usually do - though I seem to recall java programmers think that 'drag-n-drop' is a dirty term - NO OFFENCE GUYS _ I'M NEW !!!
    import java.text.*;
    public class Decimal_Fmt {
    public static void main (String []args) {
    double d = Double.parseDouble(args[0]);
    DecimalFormat fmt = new DecimalFormat("#0"+","+"000"+","+"000.0#####");
    // * Possibly add a function call here ? *
    String d_str = fmt.format(d);
    System.out.println("DecimalFormat: "+d_str);
    }

  • How to prevent a number field from getting summed?

    I want to display the # of clients per a certain ID number. (In order to show the duplicate records by setting a filter in the # of clients field). However, this works if the ID number is a text field... but it doesn't work if the ID number is a metric of client... or number. It gets summed up, I get the total, and the % of clients turns to be 1.
    Any ideas?
    Thanks

    Example:
    I have 3 clients:
    Column A
    55
    55
    44
    21
    I want the following output:
    55 | 2
    I get the desired result by adding a second column (# of clients) and creating a filter to get results only if the value is > 2.
    The problem is when "Column A" is a number field. If it is a number field, I get total sum of the records (55+55+44+21) and a value of "1" if I add the # of clients column.
    Is it clearer now? ideas?

  • How to make material number field invisible in MM60?

    Dear expert,
    Is there any way to make material number field invisible in MM60 for one user?
    Best regards

    Hello,
    You may create a transaction variant for MM60 and hide Material code using SHD0. Then create Variant group and assign users to this group.
    Thanks,
    Venu

  • How to format a number to a correct decimal places

    i wanted to format a number to a correct decimal places say for example
    666.105 t0 666.11 please any body help us

    whether to use NumberFormat or DecimalFormat can u give me example thanks

  • Need Help on How to Convert a Number Field to an Hour/Minute

    Post Author: syracuse2
    CA Forum: Crystal Reports
    I have a field that shows a duration, i.e. 125.  I would like to convert the number of 125 to 2hr and 5 min.  Any suggestions on how to do this?

    Post Author: GraemeG
    CA Forum: Crystal Reports
    Create a formula and paste the following into it (sorry I use Basic Syntax):
    'Ive laboured a point here a bit so you can get an idea of what you can do.
    'Heres 3 variables - one with your duration and two others for hours and minutesshared xDuration as numbershared xHours as numbershared xMins as number
    'Put some data into the duration and calculate the hours and minutesxDuration = 125xHours =  truncate(xDuration/60)xMins = remainder(xDuration,60)
    'You can then use the variables to get a string with unformatted hours and mins'formula = xHours + "hours " + xMins + "Mins"
    'or you format the hours and minutes nicely'formula = CStr(xHours,0) + "hours " + CStr(xMins,0) + "Mins"
    'or you can make it all into one formula without the need for xHours and xMins variablesformula = CStr((truncate(xDuration/60)),0) + "hours " + CStr(remainder(xDuration,60),0) + "Mins"

  • 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

  • How to format a number datatype

    I had a report which uses a text field. In that text field included is a placeholder column that represents a datatype of number as &<CP_CAPITAL_BALANCE>. When I run it displays as:
    Capital Balance of 3423548.00 as of ...
    It should be formated into 3,423,548.00
    Thanks,
    Warren

    Hi,
    you can choose your desired number format by setting the "Format Mask" property of you text field (e.g. NNNGNNNGNNNGNN0D00).
    N = not mandatory digit
    0 = mandatory digit (in this way you always have two decimal digits)
    G = group separator
    D = decimal separator
    Hope this helps you
    Bye
    Raffy

  • How to format a text field for credit card numbers?

    OK, I found this conversation, http://forums.adobe.com/message/3598185, that gave some useful insight, and I adapted the code presented in it to make sure the user types in a 16-digit number, and it tells them to do it right if they don't.
    Here's my problem:
    With the code as given, I can either get a single string of 16 digits (i.e.: 1234567890123456), or, I have to make the user manually type in the spaces to get the usual CC format (1234 5678 9012 3456).
    What I'm hoping for is some code that will let me allow the user to simply type in 16 uniterrupted digits, but that will then display that entry in the expected format. (So, user types 1234567890123456, but the field once they tab or click out of it will show 1234 5678 9012 3456)
    Here's the code I have thus far (like I said, copied alomst verbatim from the link above):
    In the Format tab, under Custom Format Script:
    function checkFormat(s) {
        if (!s) return true;
        var aRE = [
            /^\d{16}$/
        return AFExactMatch(aRE, s);
    In the Format tab, under Custom Keystroke Script:
    (function () {
         if (event.willCommit) {
             var isValid = checkFormat(event.value);
             if (!isValid) {
                app.alert("Please enter a valid 16 digit credit card number with no spaces or dashes.", 1);
                event.rc = false;
    I'm sorry it's so simplistic. Though I've rooted around in other programming languages (HTML, C++), so I'm not a complete noob, I don't know anything about Java at all...
    Thanks in advance!

    Acrobat uses JavaScript and not the Java programing language.
    Many script samples are for different variations of JavaScript and Adobe has its own variation.
    Also if you make spaces or other white space characters part of the value, you need to remove them from the validation.
    A custom validation script could be:
        var cardValid = function(cardNo){   
        var sum = 0, iNum;
        for( var i in cardNo += '' ){
                        iNum = parseInt(cardNo[i]);
                        sum += i%2?iNum:iNum>4?iNum*2%10+1:iNum*2;
        return !(sum%10);
    // process non-blank values
    if(event.value != "") {
    // strip blanks, "-", or "."  from value
    var cCardNumber = event.value.replace(/[- .]/g,"");
    if(cardValid(cCardNumber) == false) {
    app.alert("Invalid Number.\Please re-enter.", 1, 0, "Invalid card Number");
    event.rc =  false;
    } // end not empty value

  • How to format a calculated field using JSTL

    Hi,
    I have one field as following:
    <input type="text" class="fixedInput" name="grossRevenue<%=i%>" value="<%=((LineOfBusinessMetrics)lineOfBusinessMetricsList.get(i)).getGrossRevenue().setScale(2,BigDecimal.ROUND_HALF_UP)%>" size="16" onfocus="this.blur()" /></td>
    In the above line of code, I have one list called lineOfBusinessMetricsList. From this list, I am fetching the object of LineOfBusinessMetrics, from this object, I am fetching the value of Gross Revenue and casting it to LineOfBusinessMetrics.
    Now I am trying to format the Gross Revenue using JSTL tag "fmt" as following:
    <td class="grey3"><input type="text" class="fixedInput" name="<c:out value='grossRevenue${i}'/>" value="<fmt:formatNumber type="number" value='${lineOfBusinessMetricsList.grossRevenue}' minFractionDigits="2" maxFractionDigits="2" />" size="16" onfocus="this.blur()" /></td>
    The above modified code wth JSTL tag fmt is not working correctly.
    Can anyone help me to get this code work.
    Thanks in Advance,
    Vijay

    You must submit the page to do it with PL/SQL. If you do not want to submit the page, you must do it with JavaScript.
    Thanks,
    Tyler

Maybe you are looking for

  • How to add a SPACE as suffix to the last field in the downloaded text file?

    Hi Experts, By using GUI_DOWNLOAD am saving the data(only 3 fields) in a text file on my desk top. fine. example current record1 : 010001                      354.999            26.000 here, after 3rd field 26.000, immediately the cursor is jumping t

  • Sound by .MTS doesn't work

    Hi! I don't have experiences with Premiere Pro. I have .MTS file and after import to Premiere, sound doesn't work. When I import .mp4, sound is OK. Is problem in my computer or is common thing that sound in .MTS doesn't work? Thanks for answers.

  • Sql Developer - Broken Technet Links

    As of 08 JUL 2010 2015 PDT the following links are broken in FireFox, IE and Chrome. I have tried several pages trying to get to the SQL Developer Data Modeler, but all display the same error message, "An error occurred while processing the request.

  • Variable Height for an Iframe on External server

    Our company is developing an internal website. we are using extensis portoflio to manage a showcase area and moveable type for a blog area. On the pages where the portfolio content will be pulled in we are using an iframe (this content lives on the s

  • To remove encryption from the files in the memory card

    Hello, Yesterda I checked the opcion of encryption on my BB. Today I had problems when synchronizing the data between the PC and the BB, all my data was deleted from the phone (not from the memory card) and I now I have deactivated the encryption che