Replace comma with dot

Dear all,
I'm getteing mad with the following issue and need your help.
I'm working at a PDF-Form including a table. The Values in this table create a datamatrix. This works fine for now.
Here is my issue: The values in the table are numbers like 12.2 but also 12 or 9 but maximum two digits in front of the "."(dot). Seperation character should be a "." In Germany there is the ","(comma) instead of the "." at the number block.
For better usability it would be nice having a java script that replaces onBlur all "," with a ".". So I don't have to change the keyboard language to English.
Is this possible and if yes, how?
I am an absolutely noob on javascript, so please be patient and do not expect any specific knowledge.
What I tried (menue is translatet from the German version, I don't know if it is correct:
onBlur.replace(",", ".");
I put this in (right click on form) -> properties ->action ->
add action: on mouse exit
choose action: run JavaScript
click on "add"
Then I copied the terminus from the top in the opening window. Ready (at least this was my thought...)
It dit not work, now I nedd your help.
Thank you for your hints, your help and your time.
Adobe Acrobat XI (German) on Windows 7 64bit (also german).

***************SOLVED**********************
The solution was much easier than expected:
when you open "properties" by right clicking on the form, go to "validation" NOT "action" (make sure you are in the form editing mode: "tools" -> "forms" -> "edit")
then chose "run user defined script" and click on "edit"
type in the following line:
event.value = event.value.replace(/\,/g, ".");
click "OK" and then "Close"
Then you are done. Now, when you leave the form field Acrobat checks if there is a comma and replaces it with a dot.
For me this was the easiest way to make it work.
***************SOLVED**********************
***************GELÖST**********************
Die Lösung war einfacher als gedacht.
Öffnet man "Eigenschaften" mit einem Rechtsklick auf das Formular, muss man "Validierung" und nicht "Aktionen" auswählen. (man muss im Formulareditierungsmodus sein: "Werkzeuge" -> "Formulare" -> "Bearbeiten")
dann unter "Benutzerdefiniertes Validierungsskript ausführen" auf "Berabeiten" klicken.
Im Editorfenster folgende Zeile eingeben:
event.value = event.value.replace(/\,/g, ".");
Über "OK" und "Schließen" zurück zu den Eigenschaften
Das war's. Nun ersetzt Acrobat im Formularfeld jedes Komma durch einen Punkt.
***************GELÖST**********************

Similar Messages

  • Replacing comma with space

    Hi,
    Note : I am using SAP 4.6
    Task      : Replace Comma with space
    Problem : Not able to replace comma with space
    I have task where I have to write result file to application server, when I am writing string to application server it is separating by comma, for example if you take below statement it is dividing by space that means in first column PO and then ITEM etcu2026.
    MOVE  'PO ITEM is not there in table EKPO' TO W_RECORD_OUT-ERROR_MSG.
    so to resolve this situation I have used below code for now, I know I can use
    REPLACE ... ALL ENTRIES but this statement is not working in SAP 4.6
    REPLACE ',' WITH ' ' INTO W_RECORD_OUT-ERROR_MSG.
      CONDENSE W_RECORD_OUT-ERROR_MSG.
      REPLACE ',' WITH ' ' INTO W_RECORD_OUT-ERROR_MSG.
      CONDENSE W_RECORD_OUT-ERROR_MSG.
      REPLACE ',' WITH ' ' INTO W_RECORD_OUT-ERROR_MSG.
      CONDENSE W_RECORD_OUT-ERROR_MSG.
      REPLACE ',' WITH ' ' INTO W_RECORD_OUT-ERROR_MSG.
      CONDENSE W_RECORD_OUT-ERROR_MSG.
      REPLACE ',' WITH ' ' INTO W_RECORD_OUT-ERROR_MSG.
      CONDENSE W_RECORD_OUT-ERROR_MSG.
      REPLACE ',' WITH ' ' INTO W_RECORD_OUT-ERROR_MSG.
      CONDENSE W_RECORD_OUT-ERROR_MSG.
      REPLACE ',' WITH ' ' INTO W_RECORD_OUT-ERROR_MSG.
      CONDENSE W_RECORD_OUT-ERROR_MSG.
      REPLACE ',' WITH ' ' INTO W_RECORD_OUT-ERROR_MSG.
      CONDENSE W_RECORD_OUT-ERROR_MSG.
      REPLACE ',' WITH ' ' INTO W_RECORD_OUT-ERROR_MSG.
      CONDENSE W_RECORD_OUT-ERROR_MSG.
      REPLACE ',' WITH ' ' INTO W_RECORD_OUT-ERROR_MSG.
      CONDENSE W_RECORD_OUT-ERROR_MSG.
      REPLACE ',' WITH ' ' INTO W_RECORD_OUT-ERROR_MSG.
      CONDENSE W_RECORD_OUT-ERROR_MSG.
    appreciate if somebody can help me.
    Thanks
    sarath

    Hi,
    Please check the below code.
    REPORT  YSAT_TEST.
    Data: Var1(40) type c value 'Test1,Test2,Test3,Test4'.
    break-point.
    REPLACE ',' WITH space INTO Var1.                   " It will replace only first occurrence
    replace all occurrences of ',' in var1 with '   '.
    CONDENSE Var1 no-gaps.
    write: var1.

  • Replacing comma with Javascript

    Hi,
    How to replace commas in an array with Javascript???
    For eg, i have an array that contain the values 1,2,3,4.
    Here i want to remove the comma. So the solution i am looking for is
    1234.
    How to do this. Can we the Java functions like replace() in javascript?
    How to import the Java classes in Javascript???
    Please do provide a solution for this.
    Regards,
    M.Ananthu

    I'm not aware of any mechanism in Javascript that can help with this. In our fully-internationalized web applicaiton we choose to perform all locale-dependent validation server-side. This includes dates, numbers, currency values etc. About the only thing we check in Javscript is that required fields are filled in.
    I'd be interested in knowing if anyone has solved this in Javscript. Its possible that you could dynamically generate a Javscript validation routine based on the locale-specific formatting symbols, but we decided it wasn't worth it.
    T

  • Replace comma  with a character only if it is enclosed in single quotes

    I have a string
    String stmt = "insert into ABC values (Default,'ABC','1234,xyz,abc');{code}
    expected the result is
    insert into ABC values (Default,'ABC','1234~xyz~abc')
    I want to replace only those commas with a ~ if they are part of the string enclosed in a pair of singe quotes.
    i am trying something like
    {code}String regex = "\'\\w+(,)+\\w*,*\\w*\'+\1";
    String output = stmt.replaceAll(regex,"~");
    {code}
    but its not working
    Please help.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    LearningMachine wrote:
    No, that's not what I am trying to do.
    This is not an insert into a sql, I have to parse a DML (SQL Script) and get table name, values out of it, but I can't split the string with commas.
    Then you should find or build a parser.
    Unless the DML is very well constrained or the set is very small and will remain so, by the time you finish mucking around with all the possibilities attempting it with regexes you will have a parser but not a very good one.

  • Replace comma with nothing

    Hi all
    In a select statement I need to delete the commnas in a string that has a number with commas.
    i.e replace 1,123.10 by 1123.10

    select replace(col,',') from table

  • Change comma with dot in writing measuremen​t file

    Hello,
    I'm using the write to measurement file vi for save some data. I don't manage to read the text file in Matlab, I guess is because the decimal separator is the comma.
    Is there a simple way in LabVIEW for set the decimal separator to be the dot instead of the comma? (in the writing to measurement file vi)
    now the data is like this 56,897 but I would like it in the format 56.897
    Thanks
    Solved!
    Go to Solution.

    It has been working fine inside LabVIEW, but when I make the .exe application and start recording it register the text file with the comma separator again. So I guess it was just a temporary setting of LabVIEW.
    Is there a way to have the dot separator also when I register the data file from the application .exe?
    I don't find a way to set it in the "Write to measurement file"..
    Regards

  • How replace comma with break line

    Hi, 
    Instead of John,Dee, i want it to show
    John
    Dee.
    my code isn't do what i want, can anyone help pls?
    thanks
    <cfset mystring ="John,Dee" />
    <cfset TheText = replace(mystring, ',', "#chr(10)##chr(13)#", "ALL") />
    <cfoutput>
    #TheText#
    </cfoutput>

    Yeah.  If you're gonna go ACTUAL HTML output, then forget the line break and just put each indexed value into a <p> tag (which, because it's a block-level element, will place it on each line)
    <cfset myList = 'Aegis,Kleais' />
    <cfoutput>
    <cfloop list="#myList#" index="i">
         <p>#i#</p> 
    </cfloop>
    </cfoutput>
    This should output:
    Aegis
    Kleais
    The spacing between the text can be controlled via CSS.

  • Repalce comma with Space in Webi report.

    Hi Experts,
    My address Column in Webi report is showing data is like :
    Address (this is the field coming for BW)
    House No1,Flat J10,New Delhi,INDIA.
    Can we replace Comma with the space so that the ablove data would be like :
    House No1 Flat J10 New Delhi INDIA.
    Thanks.

    Hi Abdi
    Use the formula
    = Replace("House No1,Flat J10,New Delhi,INDIA";",";" ")
    then you will get
    House No1 Flat J10 New Delhi INDIA.
    Use the object in place of Text
    =Replace([Address];",";" ")
    Regards,
    Mahi

  • Calculated formula for replacing a comma with a Semicolon in a text field

    I need help replacing a comma with a Semicolon in a text field.
    I have a field that has names separated by commas.  
    Ex: Dog, Cat, Bird, Horse, Eagle, Worm, Snake
    I would like a calculated column that converts the field into: Dog; Cat; Bird; Horse; Eagle; Worm; Snake
    I figured out the first three positions (Dog, Cat, Bird,) but I can't figure out the rest.
    Using the formula below.
    =REPLACE((REPLACE((REPLACE([Title],SEARCH(",",[Title]),"1"," ; ")),SEARCH(",",(REPLACE([Title],SEARCH(",",[Title]),"1"," ; "))),"1"," ; ")),SEARCH(",",(REPLACE((REPLACE([Title],SEARCH(",",[Title]),"1","
    ; ")),SEARCH(",",(REPLACE([Title],SEARCH(",",[Title]),"1"," ; "))),"1"," ; "))),"1"," ; ")
    Please help

    check the similar post
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/66e2ae2a-4da9-4c58-a8bb-cf46b1bf448f/calculated-column-to-replace-commas?forum=sharepointgenerallegacy

  • Replacing csv commas with tabs

    Has anyone come accross a command, preferably in vi to replace comma's seperated fields with tab delimited fields? I know about the substitution command but as people who work with csv files might know that fields of data with commas in them have quotation marks around them, I need to keep these commas in the file.

    Not sure if I understand this 100%
    But if I do, then this should work:
    `fixcsv.py inputfile outputfile`
    Things that are quoted because they contain a comma will no longer be quoted since thats no longer the delimiter (tab is). Also, you can uncomment the commented out line to have every field surrounded in quotes.
    #!/usr/bin/python
    #fixcsv.py
    import csv
    import sys
    reader = csv.reader(open(sys.argv[1], "rb"))
    writer = csv.writer(open(sys.argv[2], "wb"), delimiter='\t')
    #uncomment next line if you want everything quoted
    #writer = csv.writer(open(sys.argv[2], "wb"), delimiter='\t', quoting=csv.QUOTE_ALL)
    writer.writerows(reader)
    Be sure to backup your data just in case.
    Last edited by sabooky (2007-06-06 05:00:14)

  • Replace each third comma with ||

    Hi All,
    My Requirement is like this:
    In a column i need to replace every third comma(,) with || symbol.
    eg:
    1,Animesh,1234,2,Tripathi,4321,3,Oracle,2345.....(and so on)
    Desired output:
    1,Animesh,1234||2,Tripathi,4321||3,Oracle,2345....Please help me out.
    Regards
    Animesh
    Edited by: Animesh Tripathi on Dec 11, 2012 2:22 AM

    Animesh Tripathi wrote:
    Hi LPS,
    Sorry for duplicating the post.
    The reason i duplicated this is because, earlier i did not get any proper answer for this and I thought of replicating this
    to another community.
    AnimeshHi Animesh,
    you have posted again the same question to have again the same exact answer.
    I have answered you previously and you seemed also satisfied in this thread: {message:id=10739356}:
    Animesh Tripathi wrote:
    Hi Alberto,
    That was what i exactly wanted.
    Thanks for the Help.
    Regards
    AnimeshWhy are you saying you did not get a proper answer?
    Did you face any problem with previous solution?
    Regards.
    Al

  • Replace gail with extra/gtk2? [Y/n]

    Verifying before I update
    (pacman -Syu)
    What is this?:
    Replace gail with extra/gtk2? [Y/n]

    Here it is:
    [gour@gaura-nitai gour] yaourt -Syu                   
    Password:                         
    :: Synchronizing package databases...
    gaur is up to date
    core is up to date
    extra is up to date
    community is up to date
    :: Replace gail with extra/gtk2? [Y/n] y
    :: Starting full system upgrade...
    :: Replace gail with extra/gtk2? [Y/n] y
    warning: bogofilter: local (1.1.7-3) is newer than gaur (1.1.6-1)
    warning: bzrtools: local (1.7.0-1) is newer than community (0.91.0-1)
    warning: cinelerra-cv: local (1061-3) is newer than gaur (1056-2)
    warning: emacs-w3m-cvs: local (20080425-1) is newer than gaur (20080307-1)
    warning: glade: local (3.6-1) is newer than extra (3.5.2-1)
    warning: kiwi: local (1.9.23-1) is newer than community (1.9.22-1)
    warning: postgresql: ignoring package upgrade (8.3.4-1 => 8.3.4-3)
    warning: xmobar-darcs: local (20080616-1) is newer than gaur (20080416-1)
    resolving dependencies...
    looking for inter-conflicts...
    Remove (1): gail-1.22.3-1 
    Total Removed Size:   1,63 MB
    Targets (69): glib2-2.18.2-1  atk-1.24.0-1  libpng-1.2.32-1  libcups-1.3.9-1  xcb-util-0.3.0-2  cairo-1.8.0-1 
                  pango-1.22.0-1  gtk2-2.14.4-1  cairomm-1.6.4-1  libetpan-0.57-1  claws-mail-3.6.1-1 
                  claws-mail-extra-plugins-3.6.1-1  e2fsprogs-1.41.2-1  popt-1.14-1  cryptsetup-1.0.6-2 
                  cups-1.3.9-1  dhcpcd-4.0.2-1  dnsutils-9.5.0.P2-1  postgresql-libs-8.3.4-2  dovecot-1.1.4-1 
                  fam-2.7.0-11  gegl-0.0.20-1  libglade-2.6.3-1  pycairo-1.6.4-1  pygobject-2.15.4-1  pygtk-2.13.0-1 
                  gimp-devel-2.6.1-1  gimp-help-2-2.4.2-1  glibmm-2.18.0-1  gmp-4.2.4-1  gnome-doc-utils-0.14.0-1 
                  gstreamer0.10-0.10.21-1  pangomm-2.14.0-1  gtkmm-2.14.1-1  imagemagick-6.4.4.9-1 
                  kernel26-2.6.27.1-1  klibc-udev-130-1  lib32-libpng-1.2.32-1  libdvdcss-1.2.10-1 
                  libisofs-0.6.10-1  libjpeg-6b-5.1  liboil-0.3.15-1  libx11-1.1.5-2  mpfr-2.3.2-2  netcfg-2.1.2-1 
                  ntp-4.2.4p5-1  nvidia-173xx-173.14.12-2  orbit2-2.14.16-1  pm-utils-1.2.2.1-1  pygtk-docs-2.13.0-1 
                  python-gdata-1.2.2-1  qt-4.4.3-1  qscintilla-2.3-1  sdl-1.2.13-2  shadow-4.1.2.1-2  sip-4.7.7-2 
                  subversion-1.5.3-1  tcl-8.5.5-1  xvidcore-1.1.3-2  lzo2-2.02-3  transcode-1.0.6-1  udev-130-1 
                  libshout-2.2.2-2  vlc-0.9.4-2  inputproto-1.4.4-1  xextproto-7.0.3-2  xpdf-3.02_pl2-2 
                  xtrans-1.2.2-1  youtube-dl-2008.10.16-1 
    Total Download Size:    0,00 MB
    Total Installed Size:   672,14 MB
    Proceed with installation? [Y/n] y
    checking package integrity...
    (69/69) checking for file conflicts                 [#######################################################] 100%
    error: could not prepare transaction
    error: failed to commit transaction (conflicting files)
    /usr/share/gtk-doc/html/pygtk/atk-class-reference.html exists in both 'pygtk' and 'pygtk-docs'
    [snip]
    pygtk: /usr/share/gtk-doc/html/pygtk/unixprint-functions.html exists in filesystem
    Errors occurred, no packages were upgraded.
    missing dependency for libgnomecanvas : gail>=1.22.0
    Sincerely,
    Gour

  • Service account with DOT

    Hi,
    Is it possible to make a user account to service account using ktpass if there's a dot in user name e.g. the user account is : sap.bo.
    Is it possible?
    Thanks

    Use the following syntax for the service account:
    <DOMAIN>\sap.bo instead of sap.bo(at)SERVER1.COM
    the command should look like this:
    ktpass -out vinsso.keytab -princ BOBJCentralMS/sap.bo.server1.com(at)SERVER1.COM -mapuser <DOMAIN>\sap.bo -pass password -kvno 255 -ptype KRB5_NT_PRINCIPAL -crypto RC4-HMAC-NT
    Replace <DOMAIN> with the name of the Windows AD domain your service account is defined in.
    Regards,
    Stratos

  • Search/Replace for/with php variable name

    Hi all.
    I have just updated from Dreamweaver 5 to 5.5 and now I am missing a very handy functionality.
    What I want to do is to replace all occurences of $a with $b.
    In Dreamweaver 5 that was very easy by using "Find and replace":
    Find in: All open documents
    Search: Sourcecode
    Find: $a
    Replace: $b
    Active options: Match case and Match whole word !!!!
    Now in Dreamweaver 5.5 the option "Match whole word" is automatically disabled as soon as I enter a $ (dollar) in the search field.
    I assume this has something to do with regular expressions but I do NOT check the option "Regular expression" in the search and replace dialog.
    Is this a bug?
    What are my options now.
    If I don't have the possibility to to tick "Match whole word" my search does also replace all occurrences of $abc and $answer etc. with $b.
    Thank you for your help

    samet2011 wrote:
    I have Dreamweaver 5 and 5.5 running parallel on my computer.
    I can confirm that the way I described and used to use is working on Dreamweaver 5.
    I was the person who informed Murray that Dreamweaver CS5 and CS5.5 both behave the same way. I have just checked as far back as CS3, and it also disables "Match whole word" when you enter a dollar sign in the Find field of the Find and Replace dialog box. In fact, that option is disabled whenever you enter any nonalphanumeric character (except an underscore) in that field. It's not limited to dollar signs.
    Why it's not disabled in your version of CS5 is a mystery.
    However, to solve your problem, you don't need either a regex or "Match whole word". Simply type the name of your PHP variable followed by a space into the Find field. Also add a space after the name of the variable you're using as the replacement.
    What "Match whole word" does under the hood is to use a regular expression to find a word break. As long as you leave a space between your variables and any following code, simply adding the space to your search will do the trick.
    However, if you have cases where a variable is followed by a comma, closing parenthesis, or some other character, you will need to use the following regex:
    Find: \$variable_name\b
    Replace: $new_name
    The \$ looks for a dollar sign. The variable_name matches the literal text of the variable name (replace it with the actual text you're looking for). The \b matches a word break in exactly the same way as "Match whole word".
    In the Replace field, $new_name is the literal name of the new variable.

  • My ATI 1900XT is dying a slow death.... Should I replace it with Nvidia

    All,
    My machine now hangs whenever I use graphic intensive applications or games. So I think it is time to replace the 1900XT Card that came with it.
    Problem I have is what to replace it with. I have read that the new 8800 Cards will not allow Leopard to boot from the Install Disk. Is this true and is there a fix that does not involve swapping cards to simply do a rebuild or Boot Disk Repair.
    Looking for some Guidance please

    You read right, 10.5.2 or later. Wait and hang in for now, and boost the fans; clean out dust bunnies the card pulls into the chamber. The 2600 is the el cheapish solution if you want to wait and see but need a quick fix.
    I never reboot from the install DVD. I put it on FW disk to boot from, and I really wanted to hold off and wait for later DVDs anyway rather than be stuck in the "dot zero" world.
    I'd skip spending on the 8800GT.

Maybe you are looking for

  • Record button not working on Online Sky Guide

    Not working for this page for example: http://tv.sky.com/tv-guide#/programme/detail/1813/922

  • Script Task to Create a ".CSV" file and save it on SFTP.

    I have a sql query that is being pulled from a variable. Using this variable I want to create a .csv and save it on SFTP. I do not want to use any third party tools. I really appreciate if anyone can help me with the code. I do not know coding.  

  • Release Strategy for more than 8 levels

    Hi experts, Can anybody have a clue how to get Release Strategy for more that 8 levels or anybody who have configured the same. Standart SAP supports 8 levels of Release Strategy. So How to enhance the standard feature with additional Levels. Thanks

  • Text converted to graphics when using shapes from iWork

    I'm in the process of constructing a web site and want to have a site directory along the right side of each page. I started off using square text boxes and making room for the directory by using iWeb's text wrap, adding an inline transparent square

  • BPEL- How to make part of Jdeveloper 11g

    HI, In Jdeveloper 10g BPEL was part of it. But with new release Jdeveloper 11g it has been disabled(No more part of Jdeveloper). How can we get this. Should we purchase license or it is available for download. any one please guide in this regard M Ni