Convert numeric in words in adobe forms (start with the currency)

Hi to all,
Below script i found here for converting numeric into words and its work perfectly. Just I edit in UAE currency.
It is possible to move the dirhams (currency) in front like. 1,900,000.55 = Dirhams One Million Nine Hundred Thousand and Fifty Five fils Only. (with period)
or 1,900,085.55 = Dirhams One Million Nine Hundred Thousand Eight Five and Fifty Five fils.
Previous code was One Million Nine Hundred Thousand Eighty-Five Dirhams and Fifty-Five Fils
Thanks in advance
Much Appreciate your advance help
aTens = [ "Twenty", "Thirty", "Forty", "Fifty", "Sixty", "Seventy", "Eighty", "Ninety"];
aOnes = [ "Zero", "One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight", "Nine",
  "Ten", "Eleven", "Twelve", "Thirteen", "Fourteen", "Fifteen", "Sixteen", "Seventeen", "Eighteen",
  "Nineteen" ];
function ConvertToHundreds(num)
   var cNum, nNum;
   var cWords = "";
   num %= 1000;
   if (num > 99) {
      /* Hundreds. */
      cNum = String(num);
      nNum = Number(cNum.charAt(0));
      cWords += aOnes[nNum] + " Hundred";
      num %= 100;
      if (num > 0)
         cWords += " and "
   if (num > 19) {
      /* Tens. */
      cNum = String(num);
      nNum = Number(cNum.charAt(0));
      cWords += aTens[nNum - 2];
      num %= 10;
      if (num > 0)
         cWords += "-";
   if (num > 0) {
      /* Ones and teens. */
      nNum = Math.floor(num);
      cWords += aOnes[nNum];
   return cWords;
function ConvertToWords(num)
   var aUnits = [ "Thousand", "Million", "Billion", "Trillion", "Quadrillion" ];
   var cWords = (num >= 1 && num < 2) ;
   var nRight = Math.floor(num);
   for (var i = 0; nLeft > 0; i++) {
       if (nLeft % 1000 > 0) {
          if (i != 0)
             cWords = ConvertToHundreds(nLeft) + " " + aUnits[i - 1] + " " + cWords;
          else
             cWords = ConvertToHundreds(nLeft) + " " + cWords;
       nLeft = Math.floor(nLeft / 1000);
   num = Math.round(num * 100) % 100;
   if (num > 0)
      cWords += ConvertToHundreds(num) + " Fils";
   else
      cWords += "Zero Fils";
   return cWords;

Hi RK,
We had a similar requirement and we used Web Dynpro for Java which contained the Interactive Form that would display the personnel area, personnel sub area, etc.
We developed a custom application in WD Java which would accept entries from the user on each screen after clicking on the Change Personnel area link in the portal. The user would put in the values and when the user would click on the Submit button, an adobe form would be displyed which would show the existing values as well as the values the user newly entered.
Hope this helps. Do let me know if you need any further inputs.

Similar Messages

  • Adobe forms - problem with the character "9"

    I have the problem with printing Adobe forms that were introduced with Russian country version.
    Funny enough I have no problems with russian characters. They all print all right.
    We have however the problem with character "9". On the preview of the pdf it looks ok. When I print it from PDF preview it prints ok. But when I process it for sap to the HP output device (device type HPLJ4) "9" gets replaced with "<".
    Has anyone experienced this problem?

    ok, you're right. But, my problem is a little bit different :
    I would like to replace the "\n" character (new line) by the 2 characters "\n".
    I test this source code :
    String tmp = "First line\nSecond line";
    tmp.replaceAll("\n", "\u005C\u005Cn");
    System.out.println(tmp);
    tmp.replaceAll("\n", "\\n");
    System.out.println(tmp);
    tmp.replaceAll("\n", "\\\\n");
    System.out.println(tmp);
    The 3 results are the same :
    First line
    Second line
    I never have "First line\nSecond line".
    Best regards.
    K96
    PS : The objective is to write the string in a SQL request.

  • I have Adobe Reader XI with the package that allows me to send pdfs and convert pdfs to Word. When I open a pdf and try to search the search shows no matches even though the word I am searching for is in the document. Any suggestions how to search?

    I have Adobe Reader XI with the package that allows me to send pdfs and convert pdfs to Word. When I open a pdf and try to search the search shows no matches even though the word I am searching for is in the document. Any suggestions how to search?

    Once again, my thanks for your assistance. If I may impose on your generosity one more time, if I understand you correctly if I create a document on Word or WordPerfect, print it and scan it to create a pdf, the search function will not work. But, if I create the pdf document in Word the search function will work. Unfortunately, I am not sure how I create a pdf document in Word other than by printing it and scanning it. Could you please explain.
    William B. Kohn, Esq.
    General Counsel
    Paul V. Profeta & Associates, Inc.
    769 Northfield Avenue
    Suite 250
    West Orange, New Jersey 07052
    (973) 325 - 1300
    (973) 325 - 0376 (Facsimile)
    [email protected]<mailto:[email protected]>

  • Why does all alphabets change to capital when converting pdf to word using Adobe Acrobat XI

    Why does all alphabets change to capital when converting pdf to word using Adobe Acrobat XI

    Word 2013 uses its own pdf creator engine as far as I know. The step I performed were:
    1 - In the save settings I told word to embed fonts (sorry for the language, I have the Italian client)
    2 - Export from Word -> Save As -> .pdf adding also the table of contents/index
    N.B. I cannot use PDF/A, and in any case it doesn't embed the font
    A working solution is to use Acrobat XI to convert it or print with Adobe PDF printer, results:
    The problems are 2:
    1 - It doesn't create any bookmark and doesn't create links from the table of images to the linked images
    2 - Images, also with the preset "High Quality Printing" customized using "No compression", are really ugly and if you zoom a bit more than 100% they totally be s**t. It wasn't that way with PDF created by word.
    In the end, or I find they way to open the pdf created by word and embedd the missing font, or I find a way to make Acrobat XI creating bookmarks from the word file.
    Suggestion?

  • Lightroom 4 crashes when trying to open the slideshow module. I spent over three hours with both Adobe and Apple tech support and we know it is a permission issue but have not been able to get it solved.  It started with the last upgrade to 10.8

    Lightroom 4 crashes when trying to open the slideshow module. I spent over three hours with both Adobe and Apple tech support and we know it is a permission issue but have not been able to get it solved.  It started with the last upgrade to 10.8

    Back up all data.
    This procedure will unlock all your user files (not system files) and reset their ownership and access-control lists to the default. If you've set special values for those attributes on any of your files, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. Do so only after verifying that those settings didn't cause the problem. If none of this is meaningful to you, you don't need to worry about it.
    Step 1
    If you have more than one user account, and the one in question is not an administrator account, then temporarily promote it to administrator status in the Users & Groups preference pane. To do that, unlock the preference pane using the credentials of an administrator, check the box marked Allow user to administer this computer, then reboot. You can demote the problem account back to standard status when this step has been completed.
    Triple-click the following line to select it. Copy the selected text to the Clipboard (command-C):
    { sudo chflags -R nouchg,nouappnd ~ $TMPDIR.. ; sudo chown -Rh $UID:staff ~ $_ ; sudo chmod -R u+rwX ~ $_ ; chmod -R -N ~ $_ ; } 2> /dev/null
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window (command-V). You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning not to screw up. If you don’t have a login password, you’ll need to set one before you can run the command. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    The command will take a noticeable amount of time to run. Wait for a new line ending in a dollar sign (“$”) to appear, then quit Terminal.
    Step 2 (optional)
    The first step should give you usable permissions in your home folder. This step will restore special attributes set by OS X on some user folders to protect them from unintended deletion or renaming. You can skip this step if you don't consider that protection to be necessary.
    Boot into Recovery by holding down the key combination command-R at startup. Release the keys when you see a gray screen with a spinning dial.
    When the OS X Utilities screen appears, select
    Utilities ▹ Terminal
    from the menu bar. A Terminal window will open.
    In the Terminal window, type this:
    resetpassword
    That's one word, all lower case, with no spaces. Then press return. A Reset Password window will open. You’re not  going to reset a password.
    Select your boot volume ("Macintosh HD," unless you gave it a different name) if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Under Reset Home Directory Permissions and ACLs, click the Reset button.
    Select
     ▹ Restart
    from the menu bar.

  • Problem in submit button on adobe form integrated with web dynpro

    Hello,
    I'm facing prob in triggering web dynpro event onSubmit for Interactive form.
    I've created a submit button from web dynpro activex pallete on adobe form (integrated with web dynpro) to send the form as email.
    Then in the web dynpro view where this form is embedded i have created an action against onSubmit event and called a method within this.
    However, on clicking Submit button this event is not getting triggered.
    Please let me know what is lacking in this process?
    Thanks.

    Hi,
    I am also facing the same problem. i have developed a simple scenario under which user have to input his/her details and on submit button it will be updated to database.
    I have tried the above solution but after adopting this solution all the editable fields become non-editable.
    so the above solution is not working for me could you help me out.
    I think ... try this....
    When you create the Adobe Form from WebDynpro, you need to follow one step in SFP Transaction or inSE80 transaction. Open the Adobe Form in any one the transaction and now in SAP menu bar "Utilities" in that you will find the "INSERT THE WEBDYNPRO SCRIPT" just click on that one. Then you will see a new Script Object is being created with the name "ContainerFoundation_JS" under the "Variables" in the Heirarchy of the Object Pallete of the Adobe Form.
    This step is mandatory to use the SUBMIT Button of the "WebDynpro Native", to trigger the OnSubmit event of the WebDynpro.
    Thanks
    Edited by: shailendra2sap on Mar 6, 2009 12:24 PM

  • Hello. I have adobe forms and received the alert that it will be ending in July. Then I received an email about Adobe Acrobat XI Pro which can create forms. I signed up for the free trial and when I began to make a new form it brings me back to Adobe Form

    Hello. I have adobe forms and received the alert that it will be ending in July. Then I received an email about Adobe Acrobat XI Pro which can create forms. I signed up for the free trial and when I began to make a new form it brings me back to Adobe Forms. My question is, when Adobe Forms ends on July 28th will Adobe Acrobat XI Pro be able to create forms or will it now? and if not, then why is adobe advertising for it still?

    What you're calling "Adobe Forms" is really Adobe FormsCentral. The FormsCentral service is indeed going away soon, but you can always create PDF forms (AcroForms) with Acrobat. Acrobat also comes with a desktop version of the FormsCentral desiger, which can be used to create simple PDF forms that can be used apart from the FormsCentral service. So you'll no longer be able to create and host web forms with the FormsCentral service or use PDF forms with the FormsCentral service. You will be able to create standalone PDF forms with Acrobat and simple PDF forms with the FormsCentral desktop app.

  • Just found out that I can't run microsoft word or adobe photo shop with Mavericks, any way to solve this?

    Just found out that I can't run microsoft word or adobe photo shop with Mavericks, is there a way to make this work?

    You must be using very old versions (Office 2004 or older, Photoshop CS2 or older).
    Upgrade to newer, or current versions.

  • Monitor all service Start with the word "SAP"

    Hallo
    i have sccm 2012 
    Can monitor services start with the word "SAP"
    Instead of monitoring all service set separately .
    thanks 

    Hi,
    Did some research and came to the following solution
    Open the System Center Operations Manager Console. 
    Go to Authoring and expand Management Pack Templates
    Right Click Windows Service and click Add Monitoring Wizard
    On the Monitoring Type page select Windows Service and click Next
    Give the Service and store the it in a New Created Management Pack and click Next
    On the Service Name Type SAP* on the Target group Select Windows Server Computer Group and click Next
    On the Performance Data page click Next
    On the Summary page click Create
    Export the Management Pack pack you created
    In the Management pack replace the following code:
    <DataSource ID="DS" TypeID="Windows!Microsoft.Windows.Win32ServiceInformationProviderWithClassSnapshotDataMapper">
    <ComputerName>$Target/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
    <ServiceName>sap*</ServiceName>
    <Frequency>60</Frequency>
    With the following code
    <DataSource ID="DS" TypeID="Windows!Microsoft.Windows.WmiProviderWithClassSnapshotDataMapper">
    <NameSpace>root\cimv2</NameSpace>
    <Query>select * from win32_service where name like 'sap%'</Query>
    <Frequency>60</Frequency>
    Second replace
    <Value>$Data/Property[@Name='BinaryPathName']$</Value>
    With
    <Value>$Data/Property[@Name='PathName']$</Value>
    Save the management pack and upload it to System Center Operations Manager.
    In the Operations Console Click Monitoring
    Click Discoverd Inventory and change the target type to the target you created. Then the view should look something like this:
    I created the management pack You can download it from here: http://www.ms-opsmgr.eu/wp-content/uploads/Download/2015/SAP/SAP.Services.xml
    GReetings Roel Knippen
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Once I convert pdf to WORD, why can't I edit the WORD document?

    Once i convert PDF to WORD, why can't i edit the WORD document?

    Hi sophtex,
    Kindly refer this FAQ:Can't edit converted Word or Excel file
    Please let me know for further assistance.
    Regards,
    Florence

  • How do I take two separate non numeric fields in a acrobat form and combine the data to display in a third separate field?

    How do I take two separate non numeric fields in a acrobat form and combine the data to display in a third separate field?

    You have to use custom JavScripting to concatenate the first 2 fields. You cannot use the first 2 calculation options because they force the values of the fields to a numeric value or ignore string values.
    Possible scripts for the 3rd field are:
    event.value = this.getField("Text1").valueAsString + " " + this.getField("Text2").valueAsString;
    or
    event.value = this.getField("Text1").valueAsString.concat( " ",  this.getField("Text2").valueAsString);
    If you do not want change the separator or not show the separator when on or the other field is empty, you will need to add more code to adjust for change.
    The above scripts will also concatenate number because the field values are read as strings and not numbers.
    There is also a generalized user written function to concatenate up to 3 fields with a separator that adjust for missing data.

  • ITunes's not ignoring the word "the" when sorting artists starting with THE

    Ive just bought my new mac, updated to the new iTunes version and transfered all of my songs to the iTunes library, but a problem appeared: iTunes is no longer ignoring the word "the" that comes before every band starting with the.
    What can i do to put it back the way it was before?

    That shouln't be happening.  If should start an automatic restore process.  You aren't holding down any keys when you click the restore button are you?  You shouldn't be.
    B-rock

  • Adobe Forms Integration with portal

    HI,
    We have some Adobe forms created under SE80.
    Now i need to show that forms in Enterprise Portal.
    SO i have created an Iview Template and selected sap webdynapro iview --> webdynapro for abap iview and
    then proided the System, Name space and Appln name of that form.
    When i preview it i can see the respective form. But when i update something in the form it is not getting updated.
    Regards,
    Raju

    Raju,
    I assume you have developed ActiveX enabled Adobe forms wherein whenever the user opens up the Adobe Form, and Adobe dll is downloaded on user's machine. Again there is a catch here, the user needs to have Admin rights on his/her machine so that dll downloads correctly.
    If the user does not have Admin rights then the installation of DLL fails and hence you may be seeing the read cross mark.
    I would suggest change the displayType to native in Adobe Form properties and also make sure to select the elements from respective library in Adobe LiveCycle Designer. For Eg: If form is native and you want a value help then select Value help from Web Dynpro Native Library Palette in Adobe LiveCycle Designer.
    Chintan

  • Word experienced a serious problem with the 'acrobat pdfmaker office com addin' add-in. after Office Updates.

    I cant cant use mail merge feature in Winword in conjunction with Abobe Acrobat 10 (pdfmaker add-in) after the recent Office April Windows and Office Updates.
    Here is a quick note from the event viewer:
    The program WINWORD.EXE version 14.0.7134.5000 stopped interacting with Windows and was closed. To see if more information about the problem is available, check the problem history in the Action Center control panel. 
     Process ID: 1138 
     Start Time: 01d07dcede19c458 
     Termination Time: 15 
     Application Path: C:\Program (file:///C:/Program) Files (x86)\Microsoft Office\Office14\WINWORD.EXE 
     Report Id: 
    Microsoft Word: Accepted Safe Mode action : Word experienced a serious problem with the 'acrobat pdfmaker office com addin' add-in. If you have seen this message multiple times, you should disable
    this add-in and check to see if an update is available. Do you want to disable this add-in?.
    I do not wish to disable the pdfmaker add-in as I use it to run mail merge on WORD and send 10s and 1000s of pdfs via email to external users. I am not sure what are my options here and I wish
    someone could help me get to the root cause of the matter.
    My environment is as follows:
    Windows 7 x64 SP1
    Office 2010 v 14.0.7128.5000
    Adobe Reader MUI X and Adobe Acrobat X
    Feroze

    Hi,
    As the event log indicated, this is due to acrobat pdfmaker office com addin doesn't work well with Microsoft Word.
    I would suggest you go ahead and try to upgrade your Adobe product to the latest version and see if issue persists.
    Or contact the support of Adobe and see if there is a known compatibility issue or not.
    Regards,
    Ethan Hua
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Itunes media folders for musical groups that Start with "The"

    I am using Itunes 10.7 and have selected the option of copying files to Itunes media folder when adding to library.  When I add a musician group that sometimes starts with "The" and other times don't start with "the" (eg Bee Gees or The Bee Gees) these two names are correctly sorted on the Itunes list - "The Bee Gees" sorts next to "Bee Gees".
    When I look at the folders in Itunes/Itunes Media/Music I get one folder for "Bee Gees" and a second folder for "The Bee Gees.  I have just started loading music into Itunes and already have 47 sets of folders where the groups are in two different folders - musical group name starting with "the" and another that does not start with the word "the".
    Suggestions?
    Thanks

    As Ed says, that's the way it works. For any similar group decide which of the two forms you think is correct and then use it consistently in Artist, Album Artist, and Composer when relevant. While not the ultimate arbiter of fact Wikipedia suggests that Bee Gees is the correct form in this example.
    See my article on Grouping tracks into albums for more.
    tt2

Maybe you are looking for

  • EBS Payment Advice Post Processing

    Hi SAP Guru Can any of you shed some light on me? When importing electronic bank statements and the system cannot identify the customer/customer invoice, a payment advice notes are generated for receipt from customer.  Would you advise 2 scenarios 1.

  • Oracle Database 11g: Performance Tuning exam 1Z0-054

    Hi, I want to take the certification Oracle Database 11g: Performance Tuning exam 1Z0-054 and want to write the exam. To earn the OCE credentials, I know that we need to take training from Oracle University. I am not an OCP currently. Can I write the

  • Mapping logic and alert configuration

    My scenario is Asynchronous. No BPM in this scenario Sender & receiver data type is like this HEADER    HedgId    ItemNo ITEMDATA   Month   Vol   Hsfo Conditions are: Sender side 1). If above fields are come to blank into Xi (means no value in the fi

  • Error:EntityObjectImplementation should be declared abstract

    Hi, i hav got this error please help me to resolve this....... Error(11,8): class newImplement.oracle.apps.ak.hello.server.newImplEOImpl should be declared abstract; it does not define method setLastUpdateLogin(oracle.jbo.domain.Number) in class orac

  • How to download CS5.5 when only option is CS6?

    I lost my cds but I still have a copy of my license number. I need to reinstall CS5.5 Master Suite for my college course but only option in Download Assistant is CS6. How can I download CS5.5??? Thanks in advance!