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

Similar Messages

  • OBIEE Presentation Services : Default formatting for numeric fields

    Hello all.
    I need help in setting default formatting for numeric fields in criteria. If a user adds an numeric field, it does not have any formatting associated with it. I want to know how do you set default formatting (for example if user adds sales measure it should appear in default format like $1,000 or even with decimal places).
    Please help.
    Thank you.

    Hi,
    1) We have so many subject areas. If we select "system wide default for this data type", is this change going to reflect in all subject areas.No should do this subject area wise.
    2) Will this effect if we migrate from dev to prod environment.Yes it will effect.
    I hope u will follow this to-
    http://forums.oracle.com/forums/ann.jspa?annID=939 :)
    Regards,
    Srikanth

  • Format of numeric field cannot retain via Live Office

    In Webi, I changed the format of an numeric field to 2 decimal places.  When I retrieved this field to Excel via Live Office, I found the format of 2 decimal places cannot be retained.  It ended up displayed in 1 decimal places.
    I found when a webi report exported to Excel, the format can be retained.  
    Does anyone know if this is a product design or product issue? Thanks.
    Regards,
    Gloria

    Hi Gloria,
    I had a look at this in XI release 3.0 and received the same issue. The only way I could get this to work was to use the FormatNumber() method. This returns the value as a string, which live office represents with the trailing 0.
    So if the cell value was 12345.6, then FormatNumber([my cell]; "#,##0.00") will display 12345.60. This will display correctly in Excel (except that it is justified as text) when brought in by live office.
    This more of a work around than a fix, so you may want to raise a case.
    Regards
    Alan

  • 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.

  • How to set a numeric field to the difference of two dates?

    hi,
    I need to create a table with a field containing a date (by def. current date) and another numeric field whose value is to be set to the difference (in days) between the current date and the date field. Something like this.
    CREATE TABLE Tabdate
    (fdate date default sysdate,
    difference number default (sysdate-fdate))
    I get this error:
    column not allowed here
    How can I do? please help me
    thanks
    Antonio

    You cannot set field values as defaults. Create a pre-insert/update-trigger instead.

  • How to add different numeric fields

    hai,
    How to sum the different numeric fields like eno,esal and dno for a table EMP between eno= 51 to 57 of 100 records.
    Please provide the code for this.
    regards,
    bhargav.

    hi,
    first, i fully agree with Max. Wrong forum!
    second, hard to understand what you want to do, but if you want to sum up the colummns for all rows where eno between 51 & 57 try this:
    data: sum_eno type i, sum_esal type i, sum_dno type i.
    select sum( eno ) sum( esal ) sum( dno )
         from EMP into (sum_eno, sum_esal, sum_dno)
         where eno between 51 and 57.
    regards,
    anton

  • 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.

  • How to multiply a numeric field (with Quantity) with a Cell (text field with price) to get a total?

     

    In Javascript I suggest multiplying the text field by 1 to change it to a numeric type then multiply this with the other numeric field.  The code would look something like:
    Total.rawValue = numericField.rawValue * (textField.rawValue*1)

  • How to validate a Numeric Field in an Interactive form

    Hi,
    In my Interactive form i had placed certain Numeric Fields (Price Information). The user may change the pricing info. My requirement is, the user enters any numeric data the form should show an alert message and revert back the pricing information to the existing one.
    Please help.
    Thanks
    Ranjan

    Hello Kavita,
    patterns are not processed during editing. If you can't use the default behavior of the numeric field when a character is entered (handled when the user finished editing), you could use scripting to process input. Depending on what you want to do you could use the exit event or the change event.
    A change event has a property called "change" that caused the event. You could try "xfa.host.messageBox( upper(event.change) )" in FormCalc to show the characters in upper case.
    But, you should go this way only if the patterns for editing and for display and validation scripts can't be used in your case.
    Best regards
    Juergen

  • How to define the format for numeric field ?

    Hello
    I have Amount field and I would to define the format to be ( XX.XXX,000 )
    How can I do this ??
    I'm new in ADF and need your help ..
    rgrds
    Edited by: moh3li_pal on Mar 1, 2010 8:05 AM

    i have the same problem i try with pattern "###,###.##" but the application adf is the inverse "###.###,##" , this a bug or the pattern errornious.??Hi Joaquin. This is not a bug, although this is a little difficult to explain without face-to-face communication :D The confusing thing here is the difference between the 'special pattern characters' and actual output characters (which are chosen based on your locale).
    If you check the Java DecimalFormat class (which provides the rules for formatting) you'll see the following:
    Using , in the pattern = Grouping separator
    Using . in the pattern = Decimal separator or monetary decimal separator
    According to your locale, the grouping separator is '.' and the decimal separator is ','. So the pattern you have specified does dictate that you should get the result you have found.
    You either need to change your locale settings (best option) or cheat by switching the , and . in your pattern.

  • How to convert a numeric field representing UNIX time to a standard report

    Looking for some help on the creation of a formula that will allow me to convert a numeric string which represent Unix time to a standard date format.
    Sample string value "1199149200", Jan 1 2008, 1 AM

    Hi,
    Use the DateAdd formula convert Unix epoch to normal datetime (Unix epoch = number of seconds that have elapsed since January 1, 1970).
    DateAdd("s", 1199149200, datetime("01/01/1970 00:00:00"))
    Cheers,
    Fritz

  • 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

  • Problem in formatting a Numeric Field(Urgent)

    Dear All,
    I hava a variable of type p decimals 2 in my driver program.
    a value of 12.50 is assigned after calculation in Me23n.
    when displying the same in sap script it's displying like 12,50 instead of 12.50
    I saw in my default settings(SU01)              
    it's like 1,234,567.89.
    In debug mode i found it's like 12,50
    how to solve this.
    help is highly appriciated
    thanks in advance
    Arun

    Hi Arun,
    1 /: SET COUNTRY 'IN'
      Try with country setting command
      in sapscript.
    2. Such formattings also depend upon the country.
    3. T005X
       Check out this table for such settings.
       XDEZP field is important.
    Regards,
    Amit M.
    Message was edited by: Amit Mittal

  • 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

  • Entering Zero in Numeric Fields

    Can someone please help me as to how to format a numeric field to
    enter '0'.
    e.g. a client enters 0122
    How do I format the diplayed text to be 0122.

    To get rid of the separators have to select "integer" for the fields format (see binding palette).
    How long are the numbers a user can enter to the field?
    A pattern can only match one case.
    So num{9999999} will display 121587 as 0121587 and 123 as 0000123.
    If you want a leading zero to every entry then you will need scripting.

Maybe you are looking for

  • Error while importing the configuration of track into NWDS

    Hi, We created a track with a specific SC's in NWDI. We are trying to import the config but we are facing below error message in NWDS "com.sap.tc.devconf.SyncException: Import configuration failed. I/O Error occured :There is not enough space on the

  • ZEN AO .MSP file issues with Adobe Acrobat

    I'm currently having the following problem... I've got two ZEN AO's. One for Adobe Acrobat 7.0 Professional and one for Adobe Acrobat 7.0 Standard. I've added the latest Adobe Acrobat 7.0.5 .msp (Windows Installer Patch) file to it's respective ZEN A

  • Quicktime X in Snow Leopard 10.6.2 - No 32-Bit option in Get Info

    My daughters school has made a solo performance she gave at Christmas available via their website but it is only available as a .wma stream. I am able to play it fine thru Quicktime X using the Flip4Mac plugin. I own Audio Hijack Pro and thought that

  • Why does the library module looks so different from develop

    Ok, so the library module on my lightroom 4.4 does not match my develop module. Especially in the noise reduction department. It's like I haven't even made any changes and yes I zoomed to 1: 1 to check the differences between the two and they are sti

  • Help please on importing pics and Iphoto version

    Hello, I currently have Iphoto 6 (version 6.0.6) and I realized that when I want to import pictures it wont let me select the pictures I want only. it has been inport all them at once. Can I get a new version of Iphot without paying? and do these new