Check inputfield for numbers

I have an input field and I want to check the value, if there are only numbers in it. When not, there must come an error message or something like this and the user must change the entry.
I made the input field, with the following coding:
    <htmlb:gridLayoutCell columnIndex       = "2"
                          rowIndex          = "1"
                          verticalAlignment = "middle" >
      <htmlb:inputField id         = "days"
                        size       = "4"
                        maxlength  = "4"
                        required   = "TRUE"
                        doValidate = "TRUE"
                        value      = "<%= days %>"
                        tooltip    = "<%= otr(z_lief_portal/tage_l) %>"
                        type       = "STRING"
                        alignment  = "center"
                        disabled   = "false" />
    </htmlb:gridLayoutCell>
How can I check the field days?
Regards
Jens

Here is the complete code for your case.
<%@page language="abap" %>
<%@extension name="htmlb" prefix="htmlb" %>
<%@extension name="bsp" prefix="bsp" %>
<SCRIPT LANGUAGE="JavaScript">
function chkNumeric(objName,fslash,hyphen)
// only allow 0-9 be entered, plus any values passed
var checkOK = "0123456789" + fslash + hyphen;
var checkStr = objName;
var allValid = true;
var decPoints = 0;
var allNum = "";
for (i = 0;  i < checkStr.value.length;  i++)
ch = checkStr.value.charAt(i);
for (j = 0;  j < checkOK.length;  j++)
if (ch == checkOK.charAt(j))
break;
if (j == checkOK.length)
allValid = false;
break;
if (ch != ",")
allNum += ch;
if (!allValid)
alertsay = "Please enter only these values ""
alertsay = alertsay + checkOK + "" in the "" + checkStr.name + "" field."
alert(alertsay);
return (false);
</script>
<htmlb:content design="design2003" >
  <htmlb:page title="detail " >
    <htmlb:form>
      <%
  tmp_string =`<input onBlur="javascript:chkNumeric(this,'/','-');"`.
      %>
      <bsp:findAndReplace find    = "<input"
                          replace = "<%= tmp_string %>" >
        <htmlb:inputField id        = "myInputField2"
                          value     = "12345"
                          alignment = "left" />
      </bsp:findAndReplace>
    </htmlb:form>
  </htmlb:page>
</htmlb:content>
Regards
Raja

Similar Messages

  • I bought a mac air yesterday and i was trying to download maverick but i could not do it, i try to download the old version of numbers because i needed for work, but i could not neither, but now when i check to download numbers is asking for to pay?

    i bought a mac air yesterday and i was trying to download maverick but i could not do it, i try to download the old version of numbers because i needed for work, but i could not neither, but now when i check to download numbers is asking for to pay?

    You are mixing different issues. I will address Numbers.
    Has Numbers ever been installed on this new Mac? Did you have the Mac App Store version of Numbers or did you have the DVD version of Numbers?
    You should be able to redownload a previous purchase of the Mac App Store version of Numbers from the Purchases pane after signing into your account.
    If you had the DVD version, then you will need to install that from the DVD media.

  • Withholding tax -number could not be determined for numbering group ID0017

    While positing the FB60 transaction with withholding tax for country Indonesia, the below error is coming:
    A number could not be determined for numbering group ID0017
    Message no. 7Q630
    "The system could not determine a certificate number for the numbering
    group.
    Withholding tax types exist that are relevant to numbering. The system
    cannot determine a certificate number because the Customizing settings
    are incomplete.
    Sysem Response
    Payment cannot be made.
    Procedure
    Check the number ranges in the numbering group."
    Already seen the wothholding tax number range and it is coorec. Please advise how to resolve.

    Dear,
    Please check whether you have assigned the number range to the number group in the below setting
    Spro
    Financial Account Global Setting> Withholding Tax>  Extended Withholding Tax> Posting> India> Remittance Challan>     Assign Number Range to Number Groups

  • F110 - Many Check no for multiple pages

    Dear Sapients,
    I have some issue with Automatic Payment Program using F110. We are using Non-Preprinted stationary with un-numbered checks, but system is assigning check no for each pages, if there are multiple pages for same vendor. Here is scanerio in more details:-
    1. Configuartion for F110 is done. Payment Method "C" is our payment method configured. All configuration is done and looks good.
    2. We have assigned FORM - /SMB11/CHECK_UNN, which is SAP standard form.
    3. We are using RFFOUS_C program for printing, which SAP allowed to use this print program for both pre-printing and non-pre-printed stationary for Check.
    4. When we execute program for vendor payment and vendor have say 50-60 invoices, system generate proposal correct, and post the document in payment run, but when we execute print for check printing, we check the spool request, it assign check number on each page. say it have 4 pages.
    (a) On page 1, check no would be say 2001 and it will VOID the check
    (b)  On page 2, check no would be say 2002 and it will VOID the check
    (c)  On page 3, check no would be say 2003 and it will print the check correctly.
    (d)  On page 4, check no would be say 2004 and it will VOID the check, This is summary page. ON summary page, it also give the check no details that from 2001 to 2004 check are assigned for this payment and check registered is updated properly.
    It should only assign one check no 2001 and shoudl only print the check on last page.
    Please advice.
    Thanks,
    Pawan Sharma

    Finally found the issue. In fact, we need to select "Do Not VOID any Check" in variant of program RFFOUS_C.
    For More Details, please read help for this check mark. It resovled my problem.
    If anyone have same issue, please use same process.
    Thanks,
    Pawan

  • Single check (single check number) for mulitple page

    While printing check, I have 100line items for same vendor. going to give single check . while printing with standard program and layout,it is printing 3pages and printing 3checks in each page.it is creating first 2 voided check and 3rd one is original.but issue is, it is creating 3 checks in different numbers.if it is 100001,100002,100003 three check, 100001,100002 is voided and 100003 is original check. but for my requirement all the page should have same check number and 2pages voided and 3rd page is original check.100001(voided),100001(voided),100001(original)like this has to print.can any1 help on this ?

    Hi Lak,
    Option 1: You can do this if you have centralized payment system. That's one company paying for the multiple company codes.
    You can then do following customizing:
    1) In fbzp " All company codes" make sure paying company code is same for different sending company codes
    2) Do cross-company customizing "OBYA"
    Option2: If you don't have a centralized payment system, there could be possibilty to address you need, by adjusting the SAP script form for check. From good accounting practice point of view it might now be advisable. Moreover, if you are running check extract for Bank (Positive pay file) keep in mind SAP extracts check info per company code (Standard), so you will need some development. And you loose some reporting functions for check too. Moreover, I am not sure how will you handle the check reversal. It might involve multiple steps, since you can use the standard FCH8.
    Unfortunately the payment grouping key ZGRUP is defined at the company code level
    Thanks
    Ron

  • Where can I find a checkbook register template for Numbers for Mac?

    Hello:
    I am new to Mac and Numbers would like a checkbook register for Numbers for Mac. Numerous internet searches have shows Numbers from 2009 or earlier came with a template but the most current version of Numbers (which I of course have) did not come with it. I am not comfortable enough in Mac or Numbers yet to create my own.
    Please help!
    Thank you!
    Kelly J

    Kelly,
    The Budget Template in Numbers 3 can be modified to include a Checkbook function by adding one row and one column to the Transactions table.
    Here's what it would look like:
    There are a couple of significant changes, one for you and some for the document.
    The change for you is that you must remember to enter checks as negative numbers and deposits a positive numbers. This is standard accounting practice - money going away is negative, money coming in is positive.
    Besides the new column in Transactions, you also must put a minus sign in front of the expression in the Actual column of the Summary by Category table in the Budget Sheet.
    The expression in the new column of the transactions table is:
    =IF(D=0, "", E$2+SUM(D$2:D3))
    The extra row in the Transactions is just to hold the label for beginning balance.
    Regards,
    Jerry

  • Assign Scheme for Numbers in Legal Control not appering in number schemes

    Hi,
    Assing Scheme for numbers in legal control level is not appearing in Assign Numbering Schemes to legal  Regulations of the application at number schems. Please check attached screen shot.
    Thanks and Regards,
    Alihamed.sa

    Hi Alihamed,
    Maybe that feature wasn't included in the early GTS 10.0 shipment?  You really ought to apply the Support Packages (SP19 is now available).
    But take a look in table VCLSTRUC (using Transaction SE16), and see what entries you find with VCLNAME = /SAPSLL/VC_CTS_LGREG.  The one you're interested in is PREDOBJECT = /SAPSLL/V_TLU9LD.  If it's not already assigned, see if it's available in the drop-down list.
    If that entry is available, you could try adding it to the assignments, and see if that solves the problem.
    Otherwise you should still be able to configure by adding entries to view /SAPSLL/V_TLU9LD using Transaction SM30.
    Hope that helps.
    Regards,
    Dave

  • Is there any personal finance template for Numbers?

    I am looking for some simple, streamlined personal finance template for Numbers and I was wondering if anyone knew of any to download.
    Thank you!

    Kane,
    Is this what you had in mind?
    http://www.numberstemplates.com/images/Checking-Register.jpg
    If so, you can download it here:
    http://www.numberstemplates.com/2007/08/23/template-checking-account-register-fo r-apple-iworks-numbers-08/
    - Michael

  • How i can check last dialled numbers on my iphone?

    how i can check last dialled numbers on my iphone?

    It should be. When selecting Call for a number and the number starts ringing, the clock has started for being charged for that call. The clock doesn't start when the recipient answers the call as when dialing long distance with a landline.
    There is only one way to know and determine this for certain with your carrier and if your carrier includes such detailed info with your account - checking your online account with your carrier.

  • Problem with applescript for Numbers

    I am new to Applescript and am haveng problems with what seems to be a pretty simple task.  I want to check the value of each cell to test for a certain condition and then based on the results increment another cell.  I keep getting the following error:
    error "Numbers got an error: Can’t make {4, 5} into type integer." number -1700 from {4, 5} to integer
    Here is my script:
    tell application "Numbers" to tell document 1 to tell sheet "Sheet 1" to tell table "Table 1"
              set fNineStart to 4
              set fNineEnd to 12
              set bNineStart to 14
              set bNineEnd to 22
              repeat with irow from 8 to 40
                        set skinscount to 0
                        repeat with jcol from fNineStart to fNineEnd
                                  set minscore to value of cell (jcol & 5)
                                  if value of cell (jcol & irow) is equal to minscore and the value of cell (jcol & 6) is equal to 1 then
                                            set skinscount to skinscount + 1
                                  end if
                        end repeat
                        set the value of cell (27 & irow) to skinscount
              end repeat
    end tell
    Here is the spreadsheet:
    Name
    1
    2
    3
    4
    5
    6
    7
    8
    9
    Front
    Nine
    10
    11
    12
    13
    14
    15
    16
    17
    18
    Back
    Nine
    Total
    Net
    ESC
    score
    Skins
    Par
    4
    4
    4
    5
    3
    4
    5
    3
    4
    36
    4
    5
    3
    4
    5
    3
    4
    4
    4
    36
    birdie
    3
    3
    3
    4
    2
    3
    4
    2
    3
    27
    3
    4
    2
    3
    4
    2
    3
    3
    3
    27
    eagle
    2
    2
    2
    3
    1
    2
    3
    1
    2
    18
    2
    3
    1
    2
    3
    1
    2
    2
    2
    18
    low score
    3
    4
    4
    3
    3
    4
    5
    3
    4
    4
    4
    3
    4
    5
    3
    4
    4
    4
    # of people with min.
    1
    3
    1
    1
    1
    2
    4
    1
    2
    16
    2
    1
    2
    3
    3
    2
    1
    4
    2
    Skins
    HCP
    Joe
    y
    3
    3
    4
    5
    5
    3
    4
    5
    4
    5
    38
    5
    5
    4
    4
    5
    3
    4
    4
    5
    39
    77
    74
    Bill
    y
    7
    5
    4
    5
    5
    4
    4
    5
    4
    4

    Hi fairchild.bill,
    Real experts will I hope chime in, but I think one problem is the way you are referring cells:
    Instead of:
    value of cell (jcol & irow)
    I think you need to use something like:
    value of cell irow of column jcol
    And
    value of cell jcol of row irow
    Studying examples of scripts for Numbers 3 at macosxautomation.com may give you some ideas on this.
    SG

  • Every time I TRY to start firefox 18-19 I get an error message : Firefox has stopped working - close the program and check online for a solution - or - close ..

    Every time I TRY to start firefox 18-19 I get an error message : "Firefox has stopped working" - "close the program and check online for a solution" - or - "close the program" this happens TWICE every time I try to start firefox. Eventually after a random number of tries firefox will start normaly. I am useing firefox 19.0.2 now bit I belive it started when I upgraded to firefox 18 but am not sure, it might have been when I upgraded to firefox 19 ... but it has been happening for a very long time and I cannot find any helpfule solutions online.
    I have tried a Clean reinstall but it did not help.

    Hello,
    '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * You can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
    Thank you.

  • Every time I TRY to start firefox 18-19 I get an error message : Firefox has stopped working - close the program and check online for a solution - or - close th

    Every time I TRY to start firefox 18-19 I get an error message : "Firefox has stopped working" - "close the program and check online for a solution" - or - "close the program" this happens TWICE every time I try to start firefox. Eventually after a random number of tries firefox will start normaly. I am useing firefox 19.0.2 now bit I belive it started when I upgraded to firefox 18 but am not sure, it might have been when I upgraded to firefox 19 ... but it has been happening for a very long time and I cannot find any helpfule solutions online.

    Certain Firefox problems can be solved by performing a ''Clean reinstall''. This means you remove Firefox program files and then reinstall Firefox. Please follow these steps:
    '''Note:''' You might want to print these steps or view them in another browser.
    #Download the latest Desktop version of Firefox from http://www.mozilla.org and save the setup file to your computer.
    #After the download finishes, close all Firefox windows (click Exit from the Firefox or File menu).
    #Delete the Firefox installation folder, which is located in one of these locations, by default:
    #*'''Windows:'''
    #**C:\Program Files\Mozilla Firefox
    #**C:\Program Files (x86)\Mozilla Firefox
    #*'''Mac:''' Delete Firefox from the Applications folder.
    #*'''Linux:''' If you installed Firefox with the distro-based package manager, you should use the same way to uninstall it - see [[Installing Firefox on Linux]]. If you downloaded and installed the binary package from the [http://www.mozilla.org/firefox#desktop Firefox download page], simply remove the folder ''firefox'' in your home directory.
    #Now, go ahead and reinstall Firefox:
    ##Double-click the downloaded installation file and go through the steps of the installation wizard.
    ##Once the wizard is finished, choose to directly open Firefox after clicking the Finish button.
    Please report back to see if this helped you!

  • How do I remove a credit/debit card from my account? I ask because I currently have a VISA gift/debit card with 50 dollars on it, but the money has run out so I want to usea new card. Also, there is no 'None' check option for payment type on my account.

    How do I remove a credit/debit card from my account? I ask because I currently have a VISA gift/debit card with 50 dollars on it, but the money has run out so I want to usea new card. Also, there is no 'None' check option for payment type on my account.

    Depending on how you created your account, "None" may or may not be an option. I believe it has something to do with whether the account was made through an App Store request or the regular iTunes Store. For example, my account allows no card but my father's doesn't allow there to be no card.
    To change the card, go to your account settings and change the information to your new card, and hit save.

  • Check Box for each row in report -- all rows deleting when pressing DELETE

    Hello experts! I have set up a report with a check box for each row. When I click the DELETE button to delete the selected rows, every single one of the rows get deleted...even the ones that are not selected. I have my process point set to "On Submit - After computations and validations".
    This is my delete process (SHG is the table and SHG_ID is the primary key):
    FOR i in 1..HTMLDB_APPLICATION.G_F01.count
    LOOP
    DELETE FROM SHG
    WHERE SHG_ID = HTMLDB_APPLICATION.G_F01(i);
    END LOOP;
    Also, I've added to query in the region source this line:
    htmldb_item.checkbox(1, SHG_ID) del,
    Where does the "1" come into this? Not sure what I am doing wrong!
    Message was edited by:
    user477193
    Message was edited by:
    user477193

    The 1 (first argument to all the htmldb_item.* APIs) corresponds to the array number in htmldb_application.g_fNN. So 1 will populate array g_f01, 2 will populate g_f02 and so on.
    Your code seems fine, it should delete only the checked rows. Are you sure there is no other process on the page that might be deleting the rows? See if you can put up an example on htmldb.oracle.com

  • Errors with SharePoint Security Token Service: "The revocation function was unable to check revocation for the certificate"

    I'm getting these errors in the eventlog and ULS, "An operation failed because the following certificate has validation errors:\n\nSubject Name: CN=SharePoint Security Token Service, OU=SharePoint, O=Microsoft, C=US\nIssuer Name: CN=SharePoint Root
    Authority, OU=SharePoint, O=Microsoft, C=US\nThumbprint: <STS CERTIFICATE THUMBPRINT>\n\nErrors:\n\n RevocationStatusUnknown: The revocation function was unable to check revocation for the certificate."
    The errors point to the SharePoint Security Token Service as the issue ("The revocation function was unable to check revocation for the certificate") reported back by the Topology service.  This is apparent when executing a search, accessing
    the managed metadata service, issuing SPSite commands in Powershell, or anything that needs to run through the "SharePoint Web Services" site.  I've looked at the certificate assigned to that site and everything appears to be in order. 
    It would seem to me to be either an incorrect endpoint configuration (internally cached perhaps?) or related to security access for the configuration database (in order to validate the certificate root).
    What I’ve tried so far:
    I’ve been all over the certificate settings, both in the server store, and within SharePoint Token Service config.  Both appear to be configured correctly such that the root CAs can be validated.
    Re-entered the passwords for the application pool domain accounts to eliminate these as a potential cause.  I’ve also verified the service accounts reporting the error, do have access to the configuration database.
    Re-provisioned the STS service to see if that might clear out any cached issues and validated everything else according to this
    MS Tech note.
    So far nothing has worked.  Is there anything else I could be looking at that I've missed? (Full eventlog detail below)
    Log Name:      Application
    Source:        Microsoft-SharePoint Products-SharePoint Foundation
    Date:          2/20/2015 11:19:41 AM
    Event ID:      8311
    Task Category: Topology
    Level:         Error
    Keywords:      
    User:          <SP SERVICE ACCOUNT>
    Computer:      <SHAREPOINTSERVER>
    Description:
    An operation failed because the following certificate has validation errors:\n\nSubject Name: CN=SharePoint Security Token Service, OU=SharePoint, O=Microsoft, C=US\nIssuer Name: CN=SharePoint Root Authority, OU=SharePoint, O=Microsoft, C=US\nThumbprint: <STS
    CERT THUMBPRINT>\n\nErrors:\n\n RevocationStatusUnknown: The revocation function was unable to check revocation for the certificate.
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Microsoft-SharePoint Products-SharePoint Foundation" Guid="{6FB7E0CD-52E7-47DD-997A-241563931FC2}" />
        <EventID>8311</EventID>
        <Version>14</Version>
        <Level>2</Level>
        <Task>13</Task>
        <Opcode>0</Opcode>
        <Keywords>0x4000000000000000</Keywords>
        <TimeCreated SystemTime="2015-02-20T17:19:41.213852500Z" />
        <EventRecordID>1611121</EventRecordID>
        <Correlation />
        <Execution ProcessID="10212" ThreadID="10328" />
        <Channel>Application</Channel>
        <Computer><SHAREPOINTSERVER></Computer>
        <Security UserID="<SP SERVICE ACCOUNT>" />
      </System>
      <EventData>
        <Data Name="string0">CN=SharePoint Security Token Service, OU=SharePoint, O=Microsoft, C=US</Data>
        <Data Name="string1">CN=SharePoint Root Authority, OU=SharePoint, O=Microsoft, C=US</Data>
        <Data Name="string2"><STS CERT THUMBPRINT></Data>
        <Data Name="string3">RevocationStatusUnknown: The revocation function was unable to check revocation for the certificate.
    </Data>
      </EventData>
    </Event>

    Hi Darren,
    This problem seems to occur when an administrator deletes the local trust relationship of the farm from the Security section of the Central Administration website
    In order to resolve this problem, the local trust relationship has to be created. This can be done by running the following PowerShell commands
    $rootCert = (Get-SPCertificateAuthority).RootCertificate
    New-SPTrustedRootAuthority -Name "localNew" -Certificate $rootCert
    After running the above commands, perform an IISReset on all servers in the farm.
    More information:
    http://support.microsoft.com/kb/2545744
    Best Regards,
    Wendy
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Wendy Li
    TechNet Community Support

Maybe you are looking for

  • How can I print a html Using javax.print

    Hi friends, I am in big trouble . I use following code to print a html file using javax.print api. import java.io.*; import javax.print.*; import javax.print.attribute.*; import javax.print.attribute.standard.*; import javax.print.event.*; public cla

  • XBOX 360 and the Digital I/O Mod

    Hi everyone and first of all thank you for your time. The problem is pretty simple, I get no sound no matter what. :smileytongue:?I looked around in the forums and the only thread I found relating to this are concerns about the DTS capabilities and s

  • How to Integrate ECC with Payment Gateway

    Hi Gurus, I need your help. We have one requirement. Here is the scenario.We have one custom screen for direct sales in stores. The user scan the articles and enter the price, and ask the customer to pay by card or cash. If the customer wants to pay

  • Upgrading to Adobe Lightroom 4 in 7 simple steps.

    The following steps can be used to upgrade Lightroom 1, Lightroom 2 or Lightroom 3, as well as Lightroom 4 Beta catalogs. Step 1. Download and Install Lightroom 4 Step 2. On your Mac’s finder, find the location of your Lightroom 3 catalog. It should

  • I've upgraded to 10.7.  How can I remove iDisk from desktop?

    I've upgraded to 10.7 and iCloud.  I no longer need iDisk but it won't go into trash because it's treated like a drive on my desktop.  I like seeing what drives are connected on my desktop but I don't need iDisk.  Any suggestions?