Ammount formating num{$z,zzz,zz9.99}

Hi All
Need help in formating the amount fields.
Currently I am using num{$z,zzz,zz9.99} Its working fine for positive ammount value.
But for negative amount its giving output as $-18,970.50
Expected out is -$18,970.50
need '-' sign before $
Thanks,
Abhijit

issue resolved by setting pattern as  = num{z$z,zzz,zz9.99}

Similar Messages

  • Need help on ammount formating with num{$z,zzz,zz9.99}

    Hi All
    Need help in formating the amount fields.
    Currently I am using num{$z,zzz,zz9.99} Its working fine for positive ammount value.
    But for negative amount its giving output as $-18,970.50
    Expected out is -$18,970.50
    need '-' sign before $
    Thanks,
    Abhijit

    issue resolved by setting pattern as  = num{z$z,zzz,zz9.99}

  • Problem when using pattern ''num{ZZZ,ZZ9.99 S}"

    Hi all,
    I have a problem with the following pattern:
    num{ZZZ,ZZ9.99 S}
    When I'm using this pattern there should be a blank at the end of the number if it's
    positive. But after the PDF generation there is no blank.
    I have positive and negative numbers below each other. If there is
    a negative after a positive the numbers are no longer in flush. => See attached Screenshot.
    Does anybody know how to fix that problem?
    P.S.:
    I use a decimal field => right-justified and the Live Cycle Designer 8.01

    The oldest version of Designer I have is 8.1
    At that release, you can select the Paragraph Window, and edit the Value Properties.
    The alignment option you want is Radix - you will need to reserve the amount of space you want to the right of the decimal point.
    Default is zero - try .25 in ( Depending on your font/point selection )
    Good Luck
    Mark

  • Negative values not showing up in NUMERIC display pattern Szzz,zzz,zz9.99

    Hi,
    I want to use numeric field type and display pattern Szzz,zzz,zz9.99.
    I don't see neagtive numbers with this format?
    What do I need to change?
    Rgds
    Vara

    siva,
    I tried both of them with numeric type.I am still not getting my neagtive values.
    When I tried ($zzz,zzz,zz9.99)  & $zzz,zzz,zz9.99 ..I am geting output as $ 0.00
    If I change object type to TEXT I am getting my value.. but output is like this
    2123123.-
    I need it as
    2,123,123.00-
    I am ok using TEXT type too but i am missing those zero's..
    Rgds
    Vara
    Edited by: Vara K on Feb 23, 2009 2:20 PM

  • Use javascript to create a display pattern

    I have a text field that is subject to parameters regarding display (color, font, posture) in the initialize, enter, and exit event for the field. With this script, using the display patterns on the object palette apparently will not work because of the code. Seems like the logical solution would be to add a pattern definition in the exit event. However, I do not know the syntax for this. I am looking to apply a US currency pattern such as num{($z,zzz,zz9.99)} to the field. I have tried things like this.font.pattern = num{($z,zzz,zz9.99)}; but that does not seem to work.
    Can anyone suggest the right code?

    I used your suggestion as follows:
    this.format.picture.value = "num{($z,zzz,zz9.99)}";
    in the enter event and it worked like a charm.
    Thanks.

  • Need pattern to display negative value in red

    I am having one xdp form which contains multiples objects having some textfields mapped with some xsd.
    requirement is if values is negative need to display it in red color as  "-$18,970.50"
    currently it is getting displayed as   "$-18,970.50"
    I have used pattern num{$z,zzz,zz9.99}
    Is any ready made format available for this?

    Your requirement ("-$18,970.50") is not so common and may have to do major changes to meet this....I will start using a textField rather than a NumberField and Format using scripting not using out of box functionality. Changing text color to red is easy and can be easily done using scripting again.
    I am sure you can try your self if you have some idea about JS or FC scripting....I can help you if you post additional requirements.....like...
    1. Is the value prefilled / keyed in / calculated from other fields or combination of one or more?
    2. Max and Min value allowed/ expected.
    3. Any involvement of user actions there on?

  • Wahrscheinlich (hoffentlich) ganz banale Frage - Eingabeformat von Dezimalzahlen

    Hallo werte Foren-Mitglieder,
    ich hoffe, meine Frage entspricht dem Thema:
    Welches Format muss ich angeben, damit die Erfassung von Dezimalzahlen wie in Deutschland gewohnt erfolgen kann ?
    Wenn ich die Vorbelegung z.B. 1.234,56 bei den "Überprüfungsmustern" auswähle, muss ich eingeben:
              1234.56          um das Ergebnis          1.234,56     zu erhalten.
    Der vorstehende Punkt ist für Erfassungen ungewohnt und führt zu Fehlern. Wie kann ich dieses Format ändern ?
    Hoffentlich kann ich Tipps hierzu bekommen - danke.
    Grüße
         Friedhelm

    Hallo Bernd,
    mit diesem (und vielen anderen) Muster habe ich versucht, die benötigte Werte zu erhalten - leider bisher nur mit mäßigem Erfolg.
    Ich habe nunmehr mit einem Dezimalfeld und folgenden Einstellungen versucht:
    Muster num{z,zzz,zz9.ZZ} - hierbei tritt ein weiteres interessantes Verhalten auf.
    Wenn ich einen Wert bis 999,99 eingebe erhalte ich bei der Erfassung von z.B.
    150          - den Wert     150,00     dies ist auch so beabsichtigt - prima
    150,2       - -"-               150,20     -"-
    150,21     - -"-               150,21     -"-
    aber bei Werten ab 1000 und mehr passiert Folgendes:
    1000        - den Wert     1.000,00     richtig so
    1000,2     - -"-                     0,00     ???
    1000,21   - -"-                     0,00     ???
    wenn ich die vorstehenden mit einem Punkt anstelle des Kommas erfasse, werden die Werte korrekt dargestellt.
    bisher keinerlei Lösung in Sicht
    danke
    Grüße sendet
    Friedhelm

  • How do I round a formcalc calculation result to round $.725 to show $.73

    I am not an expert with Livecyle ES and I am not a programmer. I found a time calculation and modified and created this form.
    The purpose of the form is for student time to be daily and totaled per week. The hours and minutes are converted to decimal
    and then multiplied by the rate of pay to get Week 1 Total and the same process is used for the Week 2 Total. The Week 1 rounded
    calcualtion added to the Week 2 rounded calculation give the student's total gross pay.
    Example:
    Student works 21.3 hours Week 1 @ 8.25/hr (calculator total) equals $175.725 (I want figure to round to $175.73)
    Student works 10.7 hours Week 2 @ 8.25/hr (calculator total) equals $88.275 (I want figure to round to $88.28)
    Student's total gross pay equals $264.01
    Payroll certificaiton shows 32 hours worked @ $8.25/hour with a gross pay of $264.01.
    I am trying to get the Week 1 Total Pay calculated figure to round properly.
    Everything I try rounds to $175.72.
    http://admissions.siuc.edu/pdfs/time_report.pdf
    Current settings are as follows:
    Under Object Tab:
    Field Tab
    Field: Numeric Field
    Pattern: Currently no patterns are set - I tried multiple patterns, but did not get the result I want
    Value Tab
    Type: Calculated - Read Only
    Binding Tab
    The Object is named: WK1TotalPay
    Data Binding (open, Save, Submit): Use name (WK1TotalPay)
    The Data Format: Float
    Any assistance is greatly appreciated.

    Hi,
    You should be able to get this using a pattern (eg without script).
    If you set a display pattern num{$z,zzz,zz9.99} it will round up to the second decimal place.
    The 'z' is a digit picture symbol which will display a number if it exists. The '9' is a digit picture symbol which will display '0' if there isn't a number.
    So if the calculation is 0, the field will display $0.00. If you are paying the students a cool million, then it will display $1,000,000.99.
    This display pattern will round up the third decimal place.
    Hope that helps,
    Niall
    Assure Dynamics

  • Hide zeros in a form using LiveCycle Designer ES 8.2

    How do i hide the zeros in calculated fields?
    Some of my fields show the zeros and others do not and i can not figure out why or what the difference is between the fields. They seem to look the same.
    I've found a post where it suggests using the validation tab for the field and add certain code but my validation tab is grayed out. Although, that suggestion may have been for the Acrobat product not LiveCycle Designer ES 8.2.
    Here is a link to the example.pdf of some fields showing zeros and other fields not showing zeros. I don't want any zeros showing incase someone wants to printout the form and fill it in by hand.
    http://www.appleriverstatebank.com/erexample.pdf
    Thanks!
     

    I finally got it working. The display pattern was set to num{$z,zzz,zz9.99} I added, null{}|zero{}| to the beginning and ended up with
    null{}|zero{}|num{$z,zzz,zz9.99} and the zeros went away.  On a side note, once i added null{}|zero{}|, the Allow Empty check box and Allow Zero check box became checked.
    Tanks for nuttin Danny!
    Just kidding, Caddyshack was on the other day...

  • After SP upgrade, pdf in web dynpro could not display dollar symbol

    Dear Experts,
          We have updated the following support packages:
         SAP_BASIS 14-18
         SAP_ABA 14-18
         PI_BASIS 14-18
         SAP_BW 15-20
         SAP_AP 12-15
         EA-HR 23-61
         SAP-HR 23-61
         E-RECRUITMENT 18
         After that, Some webdynpro for abap which used PDF report has some errors, which dollar could not be displayed, which indicates some kind of error 'o'.
         We check that the pattern is of this column is from old version :num{$zzz,zzz,zz9.99} to num{($z,zzz,zz9.99)} . How could we deal with this ? And where could I find the related influence of the SP upgrade of adobe and web dynpro?
    Thanks & Best Regards,
    Derek

    Chris,
    You may be right. Also it requires some configuration in SAP KPro ( document class etc).
    Please see SAP [Help |http://help.sap.com/printdocu/core/print46c/en/data/pdf/BCSRVBDS/BDS_STRUCTURE.pdf]on Business Document Services.
    At page 64 of this document under topic 'Display Documents' 'Feature it says. "If it is not possible to display the document in place, an appropriate viewer that is available on the
    PC is started and the document is displayed u201Cout placeu201C

  • Dynamically change the pattern of numeric/decimal field in adobe

    Hi, I have a ADOBE form created through SAP.
    One of the field in the form is a numeric type and its property under Object>Cell>Display pattern is set as z,zzz,zzz,zz9.99.
    I have a requirement that for a particular condition this field should display the values with four decimal places. I am not able to figure out what property to use in the scripting.
    I tried fracDigits and Format. It does not work.
    The decimal places always remains 2 as set in the display pattern.
    Is there any way to change this display pattern dynamically based on a condition?
    any help would be greatly appreciated.

    I found the answer from other discussions in this forum. sorry to have overlooked it earlier.
    The answer to my pbm is to use the Format.picture = "zz,zzz,zz9.9999"

  • Currency Field?

    Hi there,
    Does LiveCycle Designer not have a currency field as a field type?  It has numeric and it has text, but no currency?  Do I really have to manually tell this expensive program how to accept currency values such as the oh so uncommon US dollar sign? 
    I set my field type as "Numeric" and in "Validation Pattern" I listed the following for the "Validation" and "Edit" patterns:
    zero{0}|num{zzzzzzzzzzzz9}|num{z,zzz,zzz,zz9}|num{zzzz9.zzz}|num{z,zzz,zz9.zzz}|num{zzzz9. 999}|num{z,zzz,zz9.999}|num{$z,zz9.99}
    I listed the following for the "Display" pattern:
    zero{0}|num{$z,zz9.99}|num{$zz,zz9.99}|num{$zzz,zz9.99}
    When I test the field, it does not allow me to enter the dollar sign ($) in the field.  For example, if I enter "$123" into the field then exit the field the data then disappears. I can enter "123" and it converts it to $123.00 when I exit the field, which is what I want.  However, our users need to also be able to enter the US dollar sign and not have their data disappear if they do. 
    Please help.
    Thank you.

    You can allow characters other than numbers in numeric fields when you use quotes.
    Here an example for an edit pattern:
    null{}|zero{9.88}|num{'$'zz9.88}|num{zz9.88'$'}|num{'$ 'zz9.88}|num{zz9.88}|num{}
    It allows $123, $ 123, 123.45, 123.45$ and 123.45 $
    The decimal places are optional if you use the 8 pattern after the dot.
    And here is the display pattern.
    null{9.99 $}|zero{9.99 $}|num{zz9.99 $}

  • Pleas help with rounding decimal field

    I have a totals field that is summing several fields. I wish to have this totals field provide a rounded sum. I've tried setting the trailing digits to 0 but it will not round up, only round down. I have a display pattern for the field of num{($z,zzz,zz9.99)} . Example 162.59 is displaying 162.00 in total field instead of 163.00. Is there something I'm missing or am I missunderstanding how a decimal field works?
    code in "calculate" event:
    var test=xfa.form.topmostSubform.personnel_page.person_1.salary_cost1.rawValue+
    xfa.form.topmostSubform.personnel_page.person_2.salary_cost2.rawValue+
    xfa.form.topmostSubform.personnel_page.person_3.salary_cost3.rawValue+
    xfa.form.topmostSubform.personnel_page.person_4.salary_cost4.rawValue+
    xfa.form.topmostSubform.personnel_page.person_5.salary_cost5.rawValue+
    xfa.form.topmostSubform.personnel_page.person_6.salary_cost6.rawValue+
    xfa.form.topmostSubform.personnel_page.person_7.salary_cost7.rawValue+
    xfa.form.topmostSubform.personnel_page.person_8.salary_cost8.rawValue+
    xfa.form.topmostSubform.personnel_page.person_9.salary_cost9.rawValue+
    xfa.form.topmostSubform.personnel_page.person_10.salary_cost10.rawValue;
    //this rounds the value upon exit of field
    var result = MATH.round(test.value);
    this.value = result;

    In FormCalc you have a function which do just what you are looking for..
    Ceil(162.59)
    Put it in a messageBox and see the output..
    form1.#subform[0].Button1::click - (FormCalc, client)
    $host.messageBox(Ceil(162.59));
    OR
    You can use the Ceil function of the MATH object in Java Script.
    form1.#subform[0].Button1::click - (JavaScript, client)
    xfa.host.messageBox("" + Math.ceil(162.59));
    Thanks
    Srini

  • Dollar Symbol change from '$' to 'o' after SP patch

    Dear Experts,
          We have updated the following support packages:
         SAP_BASIS 14-18
         SAP_ABA 14-18
         PI_BASIS 14-18
         SAP_BW 15-20
         SAP_AP 12-15
         EA-HR 23-61
         SAP-HR 23-61
         E-RECRUITMENT 18
         After that, Some webdynpro for abap which used PDF report has some errors, which dollar could not be displayed, which indicates some kind of error 'o'.
         We check that the pattern is of this column is from old version :num{$zzz,zzz,zz9.99} to num{($z,zzz,zz9.99)} . How could we deal with this ?
    Thanks & Best Regards,
    Derek

    Did you check the patch cluster log file for any clues?
    /var/sadm/install_data/Solaris_10_Recommended_Patch_Cluster_log
    Once you find the reason for the failure of a bunch of patches, probably the best thing is to re-install the cluster patch {after fixing the errors you found in the patch cluster log}.

  • JavaScript Rounding Error

    I have the following: DueEmployee.rawValue = (Math.round((((TotalPaidEmployee.rawValue - Advance.rawValue)*100)))/100). When the input to this is 17.205, I am getting 17.20 instead of 17.21. The function seems to be working fine for the rest of the values.
    Some specifics on the fields the Data Pattern is set to num{($z,zzz,zz9.999)}  on the TotalPaidEmployee and on the Advance is set to num{($z,zzz,zz9.99)}

    Please the formcalc round function discussed in this thread:
    http://forums.adobe.com/thread/1130857?tstart=0

Maybe you are looking for

  • From which table we can get the Role of the User in SRM

    Hi  All,     I need to prepare a report which displays the user and his role in srm. So from which table i can get  the role of the user if i have the Userid. Thanks Channappa Sajjanar

  • Working in Photoshop Elements

    This question was posted in response to the following article: http://help.adobe.com/en_US/photoshopelements/using/WS287f927bd30d4b1f89cffc612e28adab65-8 000.html

  • Can I import Powerpoint text objects into CP as seperate layers?

    I have a Powerpoint presentation I would like to convert to a CP7 project. I imported the Powerpoint and checked the 'sync' checkbox. In CP I added voice over to each slide. Now I want to time the fade-in of each of my bullets to the audio track. How

  • TABLESPACE Issue with DEV_SOAINFRA

    Hi, I am getting the following error while using the function ora:readBinaryFromFile ORA-01691: unable to extend lob segment DEV_SOAINFRA.SYS_LOB0000147944C00002$$ by 8192 in tablespace DEV_SOAINFRA. I know that automatic extending of DEV_SOAINFRA ta

  • Precalculation corrupt Excel workbook

    Dear All, I installed the precalculation service and untill I open the Excel workmap on my local PC, where I opend my email account and saved the workbook on my desktop, it works fine. When opening the workbook I get the error in excel that the workb