Input box in cf that intakes $ amount and accomodates commas

The application that I took over crashes when inserting a
comma in a input box.

If it were my app, I'd use an input mask and then the commas
would simply not be there.
Alternatively, you can strip away all the non numbers on your
action page.

Similar Messages

  • My work phone number has an extension. Can I input the number so that it pauses and then dials the extension?

    My work phone has an extension. Can I input the number ito my contacts so that it pauses and then dials the extension?

    Please see thread https://discussions.apple.com/thread/4329335?start=0&tstart=0
    Pause and Wait doesnt work wiht Iphone 5 with ios 6.0

  • How to maintain a input tax code as a Fixed amount and not as a percentage

    Hello all,
    I want to create a tax code which is not a  % but a fixed amount.
    I created a new condition ZIPC copying JIPC but kept the calculation type as B i.e. Fixed Amount. I created a new Input tax code in FTXP.
    Now when i try to maintain the amount in a condition via FV11 using the new condition type ZIPC  i get the error message Message no. VK010
    "Enter a Currency"
    I had entered INR against the amount yet I keep getting this error.
    Kindly advise.
    Thanks in advance.
    Kavita

    Hi,
    I have created new condition with type B (Fixed Amt) & also assigned it in my pricing procedure, But when I try to create condition record with T code FV11 it gives error Please enter currency.
    Please suggest the way out..
    Regards
    Subhash P.

  • Rffous_c--amount and date is coming in a diffrent format

    Hi all,
    i am executing RFFOUS_C, which calls a sap script (customized) to print the data. It is for US. But when i see the output of the sap script, for one employee it is showing some diffrent amount and date format.
    the date for other employees is comming as 01/19/2007 whereas for one employee it is 01.19.2007. and also amount coming as 62.345,00 instead of 62,345.00. when i checked in the system the land1 field from REGUH is US and for this employee it is HK.

    Hi,
    Were you able to solve it.Because we also have similar requirement and i understand that the amount and date format depends on receipent country. But the customer doesn't want to change the country settings and want this format in issuing country format.
    Your help would be highly appreciable.
    Thanks

  • How do I create an input box with a cancel button that will end a loop in my script?

    I have been working on a script for my client and I am having trouble getting it to work properly. I stole most of the code from the PowerShell Tip of the Week "Creating a Custom Input Box". I also took someone's code for the Show-MessageBox function.
    I have slightly modified the original code with two parameters and an additional text box. The first field is for an e-mail address and the second is for an employee number.
    I need to know how I can get a Do Until loop to recognize when the cancel button is pushed and break the loop and effectively end the script. The work happens at the end but perhaps I need something added/modified in the InputBox function.
    I want the script to check to see if anything has been entered in the second text box. If empty it displays a message and calls the InputBox function again. Then if there is something I use elseif to check to see if it matches my RegEx (digits only). If
    it doesn't match it will loop and call the InputBox function again.
    This all works fine. The problem I am having is that I cannot cancel out of the form. I'd like the loop to continue until the second box matches my RegEx or Cancel is clicked. Clicking cancel doesn't break the loop. I need to know how I can stop the loop
    when cancel is pressed. I've seen Stack "Overflow: PowerShell Cancel Button Stop Script" but I don't think this will work in a loop.
    Any help would be awesome. As a note, I DO NOT want to use the VB Interaction stuff.
    function InputBox {
    param ($Name,$EN)
    [void] [System.Reflection.Assembly]::LoadWithPartialName("System.Drawing")
    [void] [System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms")
    $objForm = New-Object System.Windows.Forms.Form
    $objForm.Text = "Data Entry Form"
    $objForm.Size = New-Object System.Drawing.Size(300,200)
    $objForm.StartPosition = "CenterScreen"
    $objForm.KeyPreview = $True
    $objForm.Add_KeyDown({if ($_.KeyCode -eq "Enter")
    {$x=$objTextBox.Text;$objForm.Close()}})
    $objForm.Add_KeyDown({if ($_.KeyCode -eq "Escape")
    {$objForm.Close()}})
    $OKButton = New-Object System.Windows.Forms.Button
    $OKButton.Location = New-Object System.Drawing.Size(75,120)
    $OKButton.Size = New-Object System.Drawing.Size(75,23)
    $OKButton.Text = "OK"
    $OKButton.Add_Click({$objForm.Close()})
    $objForm.Controls.Add($OKButton)
    $CancelButton = New-Object System.Windows.Forms.Button
    $CancelButton.Location = New-Object System.Drawing.Size(150,120)
    $CancelButton.Size = New-Object System.Drawing.Size(75,23)
    $CancelButton.Text = "Cancel"
    $CancelButton.Add_Click({$objForm.Close()})
    $objForm.Controls.Add($CancelButton)
    $objLabel = New-Object System.Windows.Forms.Label
    $objLabel.Location = New-Object System.Drawing.Size(10,20)
    $objLabel.Size = New-Object System.Drawing.Size(280,20)
    $objLabel.Text = "Employee Email Address:"
    $objForm.Controls.Add($objLabel)
    $objTextBox = New-Object System.Windows.Forms.TextBox
    $objTextBox.Location = New-Object System.Drawing.Size(10,40)
    $objTextBox.Size = New-Object System.Drawing.Size(260,20)
    if ($Name) {
    $objTextBox.Text = $Name
    else {
    $objTextBox.Text = "@domain.com"
    $objLabel2 = New-Object System.Windows.Forms.Label
    $objLabel2.Location = New-Object System.Drawing.Size(10,70)
    $objLabel2.Size = New-Object System.Drawing.Size(280,20)
    $objLabel2.Text = "Employee Number:"
    $objForm.Controls.Add($objLabel2)
    $objTextBox2 = New-Object System.Windows.Forms.TextBox
    $objTextBox2.Location = New-Object System.Drawing.Size(10,90)
    $objTextBox2.Size = New-Object System.Drawing.Size(260,20)
    $objForm.Controls.Add($objTextBox)
    $objForm.Controls.Add($objTextBox2)
    $objForm.Topmost = $True
    $objForm.Add_Shown({$objForm.Activate()})
    [void] $objForm.ShowDialog()
    $Script:ButtonName = $objTextBox.Text
    $script:ButtonEN =$objTextBox2.Text
    $ButtonName; $ButtonEN
    Function Show-MessageBox{
    Param(
    [Parameter(Mandatory=$True)][Alias('M')][String]$Msg,
    [Parameter(Mandatory=$False)][Alias('T')][String]$Title = "",
    [Parameter(Mandatory=$False)][Alias('OC')][Switch]$OkCancel,
    [Parameter(Mandatory=$False)][Alias('OCI')][Switch]$AbortRetryIgnore,
    [Parameter(Mandatory=$False)][Alias('YNC')][Switch]$YesNoCancel,
    [Parameter(Mandatory=$False)][Alias('YN')][Switch]$YesNo,
    [Parameter(Mandatory=$False)][Alias('RC')][Switch]$RetryCancel,
    [Parameter(Mandatory=$False)][Alias('C')][Switch]$Critical,
    [Parameter(Mandatory=$False)][Alias('Q')][Switch]$Question,
    [Parameter(Mandatory=$False)][Alias('W')][Switch]$Warning,
    [Parameter(Mandatory=$False)][Alias('I')][Switch]$Informational)
    #Set Message Box Style
    IF($OkCancel){$Type = 1}
    Elseif($AbortRetryIgnore){$Type = 2}
    Elseif($YesNoCancel){$Type = 3}
    Elseif($YesNo){$Type = 4}
    Elseif($RetryCancel){$Type = 5}
    Else{$Type = 0}
    #Set Message box Icon
    If($Critical){$Icon = 16}
    ElseIf($Question){$Icon = 32}
    Elseif($Warning){$Icon = 48}
    Elseif($Informational){$Icon = 64}
    Else{$Icon = 0}
    #Loads the WinForm Assembly, Out-Null hides the message while loading.
    [System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms") | Out-Null
    #Display the message with input
    $Answer = [System.Windows.Forms.MessageBox]::Show($MSG , $TITLE, $Type, $Icon)
    #Return Answer
    Return $Answer
    $num = "^\d+$"
    do {
    if (!($ButtonEN)) {
    Show-MessageBox -Msg "You must enter a numeric value for the employee number." -Title "Employee Number Missing" -Critical
    InputBox -Name $ButtonName
    elseif ($ButtonEN -notmatch $num) {
    Show-MessageBox -Msg "The employee number must contain numbers only!" -Title "Non-numerical characters found" -Critical
    InputBox -Name $ButtonName
    until ( ($ButtonEN -match $num) -or (<this is where I want to be able to use the cancel button>)

    Here is a simple validation method.
    function New-InputBox{
    param(
    $EmailAddress='',
    $EmployeeNumber=''
    Add-Type -AssemblyName System.Windows.Forms
    $Form=New-Object System.Windows.Forms.Form
    $Form.Text='Data Entry Form'
    $Form.Size='300,200'
    $Form.StartPosition='CenterScreen'
    $OKButton=New-Object System.Windows.Forms.Button
    $OKButton.Location='75,120'
    $OKButton.Size='75,23'
    $OKButton.Text='OK'
    $OKButton.DialogResult='Ok'
    $OKButton.CausesValidation=$true
    $Form.Controls.Add($OKButton)
    $CancelButton = New-Object System.Windows.Forms.Button
    $CancelButton.Location = New-Object System.Drawing.Size(150,120)
    $CancelButton.Size = New-Object System.Drawing.Size(75,23)
    $CancelButton.Text ='Cancel'
    $CancelButton.DialogResult='Cancel'
    $CancelButton.CausesValidation=$false
    $Form.Controls.Add($CancelButton)
    $Label1=New-Object System.Windows.Forms.Label
    $Label1.Location='10,20'
    $Label1.Size='280,20'
    $Label1.Text='Employee Email Address:'
    $Form.Controls.Add($Label1)
    $TextBox1=New-Object System.Windows.Forms.TextBox
    $TextBox1.Location='10,40'
    $TextBox1.Size='260,20'
    $textbox1.Name='EmailAddress'
    $textbox1.Text=$EmailAddress
    $Form.Controls.Add($textbox1)
    $Label2=New-Object System.Windows.Forms.Label
    $Label2.Location='10,70'
    $Label2.Size='280,20'
    $Label2.Text='Employee Number:'
    $Form.Controls.Add($Label2)
    $TextBox2=New-Object System.Windows.Forms.TextBox
    $TextBox2.Location='10,90'
    $TextBox2.Size='260,20'
    $TextBox2.Name='EmployeeNumber'
    $TextBox2.Text=$EmployeeNumber
    $Form.Controls.Add($TextBox2)
    $Form.AcceptButton=$OKButton
    $Form.CancelButton=$CancelButton
    $Form.Topmost = $True
    $form1_FormClosing=[System.Windows.Forms.FormClosingEventHandler]{
    if($Form.DialogResult -eq 'OK'){
    if($textbox1.Text -eq ''){
    [void][System.Windows.Forms.MessageBox]::Show('please enter an email address','Validation Error')
    $_.Cancel=$true
    }else{
    # Check empno is all digits
    if("$($TextBox2.Text)" -notmatch '^\d+$'){
    [void][System.Windows.Forms.MessageBox]::Show('please enter a number "999999"','Validation Error')
    $_.Cancel=$true
    $form.add_FormClosing($form1_FormClosing)
    $Form.Add_Shown({$Form.Activate()})
    if($Form.ShowDialog() -eq 'Ok'){
    # return the form contents
    $Form
    if($f=New-InputBox -EmailAddress [email protected]){
    'Email is:{0} for Employee:{1}' -f $f.Controls['EmailAddress'].Text,$f.Controls['EmployeeNumber'].Text
    }else{
    Write-Host 'From cancelled!' -ForegroundColor red
    ¯\_(ツ)_/¯

  • Firefox on my wife's laptop has lost the black bar that used to show Maps, Gmail etc. Now at the top of the screen there is a blank bar, triple height, with just the Google search input box. How do I get this back? Or is this a question for Google?

    When I open Firefox there is a black bar, sometimes vertical, other times horizontal, across the top, with links to Maps, Gmail etc. When I open Gmail the same links are listed across the top of the screen, right under the Tabs. In my wife's laptop this appears in the Firefox start-up screen, but not in the Gmail screen. At the top of her screen is a super-wide gray bar with just a Google search input box. Is this a Firefox or Google problem?
    She has XP Home SP3 and Firefox 9
    Thanks for any help.

    What happened yesterday may have been caused by the SOPA protest action that was joined by a lot of sites yesterday and such an action won't happen that often.
    * http://en.wikipedia.org/wiki/Wikipedia:SOPA_initiative/Learn_more
    *http://en.wikipedia.org/wiki/Wikipedia:Bypass_your_cache

  • My new windows 7 machine and firefox color defaults for input boxes are obscurring the input box on the google search page making google unusable

    Under Windows 7 Firefox looks quite different including the default blue for input to question boxes which are white on the xp machines. Normally this is not a problem. But on the Google web page the blue is so bold that nothing can be seen except for a very small portion of the characters (in red) extending below the input screen. This becomes miserable if you try to edit a search stmt or backspace to correct a spelling error. you are quickly lost and need to clear the cache and reload the page.
    This problem does not appear using Chrome or IE on the same machine. Nor is it a problem using Firefox 9.0.1 on two other home PC's running XP (there no input box obscures the answer). This seems to be a lot of work.

    That can be caused by the "Keystroke protection" in Comcast Constant Guard.<br />
    "Configure Anti-Keylogging Settings" -> disable
    *[[/questions/874709]]
    *[[/questions/870165]]

  • [partially solved] firefox and input boxes

    I've updated firefox to 3.5 recently, after update, I noticed that input boxes look too long.
    here's a screenshot of www.archlinux.org (pay attention to package search area)
    and here's a screenshot from google.
    I dont have any problems with midori, it renders the page fine:
    I tried changing firefox theme and gtk theme but it didnt help.
    So, any ideas about this problem?
    solved
    well, i've solved my problem by changing main font from Lucida Grande to another font.
    Last edited by ras0ir (2009-07-14 08:43:05)

    I had exactly the same problem but i didn't want to change my system font because i really like the elegance of 'Lucida Grande'.
    I tried a bit tweaking Firefox with creating userChrome.css but it didn't work for me.
    Then i installed the stylish addon and created a custom userstyle:
    * Bugfix for the firefox input fields when using 'Lucida grande' as system font
    @namespace url(http://www.w3.org/1999/xhtml);
    input {
    font-family: sans-serif !important;
    With this workaround all input fields are at the right size again. Of course 'sans-serif' shouldn't again point to 'Lucida Grande' For me it's 'DejaVu Sans'.
    Could someone help me to realize this workaround with a userChrome.css so i don't need the stylish extension anymore?
    Also this tweak applies to all 'input' fields - e.g. to buttons, too. How can i specifiy, that it should only target single-line text inputs?
    cheers
    Fat

  • I HAVE A IMAC OS X VERSION 10.4.11 AND I WENT TO UPGRADE TO MAC OS X SNOW LEOPARD AND A BOX CAME UP THAT SAID I DO NOT HAVE ENOUGH MEMORY WHAT DO I DO TO FIX THIS TO BE ABLE TO PUT LEOPARD  CD IN AND UPGRADE?

    I HAVE A IMAC OS X 10.4.11 IT IS 6 YRS OLD I WENT TO UPGRADE TO SNOW LEOPARD AND A BOX CAME UP THAT TOLD ME I DIDN'T HAVE ENOUGH MEMORY, NOW WHAT DO I DO TO UPGRADE TO SNOW LEOPARD?

    If you are going to upgrade from Tiger to Snow Leopard, then I recommend doing a clean install. You can backup your current system to an external drive which I strongly recommend, but that has nothing to do with your RAM (memory.) The error refers to the amount of RAM installed in your computer which I'm guessing is only 512 MBs while Snow Leopard requires a minimum of 1 GB. And, I would recommend installing the maximum your model supports which should be at least 2 GBs. This all assumes your iMac is an Intel model.
    Open System Profiler in the Utilities folder and report what you see displayed for the Model Identifier.
    BTW, please post using mixed case. All upper case is the equivalent of shouting, and it's harder to read than mixed case.

  • I using an event structure for an input box and also for hardware input

    Hi there!
    I have many input boxes and display boxes on my user interface and i have a case for it in the event structure. If the user changes the values of the input boxes, the particular event case writes this new value to the hardware. However, in the timeout section of the event structure, we read the inputs from the hardware and we set the value for its related display object.  Within the timeout section i set the value for the related user interface display component, by making use of the property node value.
    Furthermore, for most of the display components, i have a event case for a value change associated with it. In that event case, i check for range errors and so forth.
    My assumption was that when i read the value in from the hardware and set the property node value, the user interface component's value will change and it would then trigger the event of the value changed for that component. 
    My assumption worked to the point of updating the component's value, however, it did not trigger the event  for the value changed for this component.
    Please advise me on how to achieve what i wish to.
    Thanks.
    Regards,

    Local variables are actually much more efficient than property nodes as far as execution speed goes. Take that same VI and delete the property node and instead write to a local variable inside the loop. You'll see the speed nearly identical to writing directly to the indicator. But note that variables also cause a copy of the data to be created. So if you're just using the "Value" property, you're much better off using a local variable. But don't use both at the same time. If you are reading/writing other properties when you update/read the value, you might as well use the value property.
    Sometimes you can't get around using either variables or property nodes. Initializing controls to saved values from an ini file is one example. But in this case, they are only written to once as the application starts so the performance hit is negligible.
    One thing you can do is store values in a shift register as they are read and pass this through your application so the last value read can be accessed from anywhere. You can even create a cluster that runs through the shift register to hold several values in a single register. This can be expanded a bit farther to create what's called a Functional Global. This basically a subVI with a While loop that only runs once on each call. It has a shift register to store data and a Case structure to Read or Write data into the register. There's a pretty good example that ships with LabVIEW showing how these work. Open the Example finder and search for "Functional Global Communication". This example shows how to use them to pass data between two independent loops, but they work just as well in a single loop application.
    One of the big advantages of these Functional Globals over the standard LabVIEW Globals and local variables is that you can add cases to manipulate the data in addition to just storing it. Also, since it's a subVI, access to the data is protected to one caller at a time whereas variables can have multiple reads and/or writes at the same time. This can cause race conditions.
    Hope that helps a bit.
    Ed
    Ed Dickens - Certified LabVIEW Architect - DISTek Integration, Inc. - NI Certified Alliance Partner
    Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.

  • Text input boxes same colour as background - so "invisible", and button text or buttons often missingt

    I have turned off all addons/extensions/plugins - still the same problem:
    1: Text input boxes appear to be the same colour as the background - and hence "invisible"
    2: Clickable buttons on websites are often invisible, or if they display have no text; e.g. button to right of google search ("go" button?) is seen as a plain box with no text - although button is clickable.
    3: Google webpage usually has an image - this is missing, and merely has "UK" to the top left of the input box.
    4: On this page for example I can see directly above this text box two vertical black lines - it appears to be a button with a pop-up "insert a link" - it can obviously be clicked when I mouse over it.

    See:
    * http://kb.mozillazine.org/Website_colors_are_wrong
    * http://kb.mozillazine.org/Websites_look_wrong

  • I have version 3.6.16 and when I login to my hotmail account, and type the first letter of the email address, a drop down box appears with my hotmail address and I can choose it from that box with a click. How do I get version 4 to do this? Thanks.

    I have version 3.6.16 and when I login to my hotmail account, and type the first letter of the email address, a drop down box appears with my hotmail address and I can choose it from that box with a click.
    How do I get version 4 to do this?
    Thanks.

    The new but not-ready-for-prime-time autocomplete method searches for matches that contain the entered text, not just ones that begin with the string. Your options are:
    1) type in longer strings that narrow the search
    2) use an add-on to search just the beginnings:
    https://support.mozilla.org/en-US/questions/1037469
    3) install an older version of TB:
    http://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/

  • I am using an iphone 3g and when i connect my device to my laptop a dialog box appears saying that an update of 4.2 is available so went for it.after the firmware is downloaded via itunes it shows that the firmware is invalid!.please help.

    HEY GUYS I AM USING AN IPHONE  3g and when i connect my device to my laptop a dialog box appears saying that an update of 4.2 is available so went for it.after the firmware is downloaded via itunes it shows that the firmware is invalid!.please help.
    AND ALSO I HAVE HEARD THAT THE IPHONE 3G CANNOT BE UPDATED TO IOS 4.2!IS IT TRUE???
    PLEASE HELP ME.

    This means that the phone you have was software unlocked to use on any carrier, or hacked. When you installed the update it restored the lock that originaly came with your phone. Not much you can do now. Apple will not support hacked phones. You will need to find out the carrier your phone is locked to and see if they offer official unlocking, or start googling to see if you can find a way to unlock 4.2.

  • When I close Firefox and then come back to it layer a box comes up that says it's already running. It ays to close Firefox first but when I hit close nothing happens and the box comes up again. I have to shut down my computer and restart to get into Firef

    When I close Firefox and then come back to it later a box comes up that says it's already running. It says to close Firefox first but when I hit close nothing happens and the box comes up again. I have to shut down my computer and restart to get into Firefox again. If I can't get this fixed I will start using someone else. Someone told me a way to close Firefox but I forgot what they said.
    == This happened ==
    Every time Firefox opened
    == a couple of months ago

    Hello Brian.
    You don't need to restart your computer to open Firefox again: you just need to close it manually through your application manager (CTRL+SHIFT+ESC in Processes tab). Anyway, hopefully this support article is what you need:
    http://support.mozilla.com/en-US/kb/Firefox+hangs
    What's probably happening is that you may be having a problem with some Firefox add-on that is hindering your Firefox's normal behavior. Have you tried disabling all add-ons (just to check), to see if Firefox goes back to normal?
    Whenever you have a problem with Firefox, whatever it is, you should make sure it's not coming from one of your installed add-ons, be it an extension, a theme or a plugin. To do that easily and cleanly, run Firefox in [http://support.mozilla.com/en-US/kb/Safe+Mode safe mode] and select ''Disable all add-ons''. If the problem disappears, you know it's from an add-on. Disable them all in normal mode, and enable them one at a time until you find the source of the problem. See [http://support.mozilla.com/en-US/kb/Troubleshooting+extensions+and+themes this article] for information about troubleshooting extensions and theme. You can troubleshoot plugins the same way.
    If you want support for one of your add-ons, you'll need to contact its author.

  • HT3209 every time i try to buy anything an error box pops up that says my apple ID has expired and i try making a new one but it keeps telling me the same thing. what do i do?

    every time i try to buy anything an error box pops up that says my apple ID has expired and i try making a new one but it keeps telling me the same thing. i cant find an answer to my problem no mater what i do.

    Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

Maybe you are looking for