Input should accept only alphabets(validation)

Hi
I have a input field with label EMPLOYEE NAME  where it should accept only alphabets  spacesand dot(.)For example(k.krishna rao).
Thanks
Krishna

chkInput-->String
2)then do the binding.
3)create message in message pool
MessageKey-->inputValidation
MessageType-->error
MessageText-->you have entered ,which is in not alphabet.
Please enter valid .
3)create Method and check for the input field
and implement your method.
your code may look like this.you can do your manipulation according to your requirement.
public void chkInputField( java.lang.String chkInp)
//@@begin CheckDate()
IWDMessageManager msgmgr=wdComponentAPI.getMessageManager();
Integer inInt =(Integer)wdContext.currentContextElement().getAttributeValue(chkInput);
IWDAttributeInfo attinfo=wdContext.getNodeInfo().getAttribute(chkInput);
for (i=0; i<chkInp.length; i++) {
if (chkInp.charAt(i) == "." || chkInp.charAt(i) == "/")
//show the error message
msgmgr.reportContextAttributeMessage(wdContext.currentContextElement(),
attinfo,
IMessageMainComp.INPUT_INVALID,
new Object[]{ chkInput},
true);
//@@end

Similar Messages

  • Validation Rule - Should contain only alphabets and can be upto 4 characters long

    Hi, I am using MDS 2012 and want to create a business rule for data validation which says,
    "Should contain only alphabets and can be up to 4 characters long". How can I create such a rule in MDS? Also the Code and Name attributes are 250 characters by default. How to restrict them to 4 characters if business need them to be 4 or
    less character?
    Any help appreciated.
    Thanks, Ashish Singh

    When creating a business rule, under Actions there is "Must be maximum length of" and "must contain patern".
    See:
    http://technet.microsoft.com/en-us/library/ff487015.aspx

  • How to set a string input to accept only 1 and 0 (binary data)

    Hi
    I want to write a program that is supposed to take only binary data from the user. So I put a string control onto the front panel, wanting the user to be able to only type 1 or 0 in it. Is there a way to do that?
    Thanks

    Jean-Pierre Drolet wrote:
    Another slight flaw is that the string accepts Enter for a new line. It is easily fixed by setting it to "Limit to single line".
    True, it allows any non-ASCII through. Another solution would be to use some logical combination of VKey and Char, but it could get complicated. One of the simpler ways is the use of scancode and shift, as in the attached modification. Now ENTER, etc. is also discarded.
    I also agree that none of this seems appropriate to enter 4000 "0/1" characters on a fromt panel.
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    BinaryStringControl_III.vi ‏24 KB

  • IW32 - restriction or validation to accept only internal order from a plant

    HI team!!
    I´m needing your help
    Im working with Tcode IW32 when creating a maintenance order and we got through Goto / Settlement rule we can assign any internal order number.
    there is no restriction or validation to accept only internal order numbers from the corresponding plant, this condition may affect other entities
    How can I limit it?
    Thks & regards "

    In configuration, in settlement rule, restrict receiver other than internal order. In case if you want to have internal order as a receiver but restrict only some orders, you can do that using a user exit/badi at save.
    example user exit -IWO10009

  • Field validation regular expression to accept only numbers

    Hello.
    I would like to have a field validation regular expression to accept only numbers - no characters. The list of pre-packaged regular expressions that are included with ApEx does not contain this and I am not a very good regular expression writer. Can anyone help?
    Thanks!
    Boris

    Under the Regular Expression validation all you need to have is:
    ^[[:digit:]]$For the email address it just depends how detailed you want it:
    ^((?>[a-zA-Z\d!#$%&'*+\-/=?^_`{|}~]+\x20*|"((?=[\x01-\x7f])[^"\\]|\\[\x01-\x7f])*"\x20*)*(?<angle><))?((?!\.)(?>\.?[a-zA-Z\d!#$%&'*+\-/=?^_`{|}~]+)+|"((?=[\x01-\x7f])[^"\\]|\\[\x01-\x7f])*")@(((?!-)[a-zA-Z\d\-]+(?<!-)\.)+[a-zA-Z]{2,}|\[(((?(?<!\[)\.)(25[0-5]|2[0-4]\d|[01]?\d?\d)){4}|[a-zA-Z\d\-]*[a-zA-Z\d]:((?=[\x01-\x7f])[^\\\[\]]|\\[\x01-\x7f])+)\])(?(angle)>)$or...
    [\w-]+@([\w-]+\.)+[\w-]+Hope these help
    Edited by: MikesHotRod on Sep 3, 2008 12:40 PM

  • How to realize the function only a validator is fired when submit

    Sorry for my question.
    In a web Page here are a inputText of a code ,a search button Searching by the Code , others inputText s and a 'OK ' button.
    the question is how to fired a only 'code' validator when searching
    I made the search button immediate="true" ,So I wanted to fire the code validator by actionListener, the others validator were not fired .
    But in this way i find i can't get the code's number not only by binding
    but also by value. so What shall i do?
    the actionListener is this:
         public void commandButton_search(ActionEvent e){
              UIViewRoot UIroot=FacesContext.getCurrentInstance().getViewRoot();
              UIComponent uicomponent=UIroot;
              String strCode= (String)this.inputText1.getValue();
    MemberValidator aValidator=new MemberValidator();
              aValidator.searchAddressCheck(uicomponent,strCode);

    As I posted before a response for your post,
    if you want to use the input value in an action,
    you should not use immediate="true";
    otherwise you need to do everything JSF will do.
    The most simple way is to have two <h:form>s in the page.
    One <h:form> includes the <h:inputText> of a code and the search button.
    Another <h:form> includes other components.
    If the OK button also use the seach code, you can use Javascript to copy the
    code value from the <h:inputText> in the first form to some <h:inputHidden>
    in the second form.

  • Change DB_NAME failed with NID-00133: Database should have only consistent.

    I have created two testing database for active data guard with Oracle 11g on Linux. I created standby DB by using rman backup from primary database. Now I want to change DB_NAME of standby database. I used DBNEWID utility
    %> nid TARGET=SYS DBNAME=newname SETNAME=YES
    It generated the error like this
    NID-00133: Database should have only consistent datafiles
    Change of database name failed during validation - database is intact
    Many datafiles even system datafiles are not consistent. I shutdown DB and startup mount again and tried again. It all failed with the same errors. I searched solutions on Oracle Support web and other twchincal web and couldn't find
    answers. Please help me to get the solutions. Thanks.

    Thank each of you so much for your inputs.
    Yes, based on oracle document, primary and standby shouid use the same name. But they can have different db_unique_name or instance_name. I created standby by using Grid Control. It automatically assign the same DB_NAME.
    I modified db_unique_name. However, our PeopleSoft admin needs to connect to two databases to do testing. PeopleSoft version only support the different DB Name and DB Name cannot be over 8 characters. This is why I tried to
    change DB_NAME to meet PeopleSoft Admin's requirement. I think, in the real world for data guard configuration, primary and standby should have the same db_name.

  • Delivery Date should propose only working days (Excluding weekends and holidays

    Hello All
    I have one requirement here, where delivery dates should propose only working days and it should not allow to add weekends and holidays during the creation of sales order.
    I would like to know if there are any standard settings to be done in plant or shiping point?
    Kindly need all your input on this
    Thanks
    Naveen

    Hello All
    Same calendar has already been assigned in shipping point,plant and sales org and also in the calendar holidays been maintained, even though when we create a sales order it will accept weekends and holidays
    Thanks

  • MIGO/MIRO - possible? posting date accept only workdays

    Is possible to accept only workday dates in MIRO and MIGO for posting date?
    if any one knows please let me know how.
    thanks.

    Angelita,
    If that is the case, then the only way to achieve this would to be use an exit/BADI and do a validation on the posting date in the MIGO/MIRO header and display a warning/error message to the user as required.
    I think BADI MRM_HEADER_CHECK should work for the MIRO header validation. I am not too sure about MIGO - have an ABAPer check out BADI MB_MIGO_BADI.
    Hope this helps.
    H Narayan

  • How can i validate a Field so that it can accept only Numbers

    can any one help me to validate a filed so that it accepts only numbers if not alert user (client side JavaScript alert message)
    Iam using JSF and ADF BC as the Technologies in my application ..
    my requirement is to validate a filed so that i can accept only numbers in my jspx page..
    I had used ADF regularExpression Validator do so... but it results in exception
    java.lang.IllegalArgumentException: 'value' is not of type java.lang.String.
         at oracle.adf.view.faces.validator.ValidatorUtils.assertIsString(ValidatorUtils.java:36)
         at oracle.adf.view.faces.validator.RegExpValidator.validate(RegExpValidator.java:103)
         at oracle.adf.view.faces.component.UIXEditableValue.validateValue(UIXEditableValue.java:378)
    <af:validateRegExp pattern="[0-9]*"
    noMatchMessageDetail="Please enter Numbers only"/>
    Using validateRegExp i can only validate a field that accept String type data ..

    Hello experts,
    Am seeing the same problem while trying to validate an inputtext field that can only accept numbers. This input filed is part of a table ..Data expected here is an integer
    since that is what is gotten from my ejb/sent for update to the db.
    <af:inputText value="#{row.daysToReview}"
    required="#{bindings.AdminResultBeanresultBeanArray.attrDefs.days.mandatory}"
    columns="#{bindingsAdminResultBeanresultBeanArray.attrHints.days.displayWidth}"
    binding="#{backing_Admin.inputText2}"
    id="inputText2"
    label="#{res['admin.daysheader']}"
    autoSubmit="true">
    <af:validateRegExp pattern="[0-9]+"
    noMatchMessageDetail="Please enter a number"/>
    <f:convertNumber groupingUsed="false"
    pattern="#{bindings.AdminResultBeanresultBeanArray.formats.days}"/>
    </af:inputText>
    java.lang.IllegalArgumentException: 'value' is not of type java.lang.String.
    at oracle.adf.view.faces.validator.ValidatorUtils.assertIsString(ValidatorUtils.java:36)
    at oracle.adf.view.faces.validator.RegExpValidator.validate(RegExpValidator.java:103)
    at oracle.adf.view.faces.component.UIXEditableValue.validateValue(UIXEditableValue.java:378)
    <af:validateRegExp pattern="[0-9]*"
    noMatchMessageDetail="Please enter Numbers only"/>
    Using validateRegExp i can only validate a field that accept String type data ..
    Thanks in advance.

  • HT5552 My Singapore VISA Credit card is not accepted as a valid payment card in Switzerland-.WHAT CAN I DO? WE just moved from Switzerland to Singapore and have cancelled our Swiss Creditcard...

    Our Singapore VISA Credit Card is not accepted as a valid Payment card b the Swiss APP Store…..
    We left Switzerland and therefore canceled your Swiss mastercard ….
    An idea's`

    Hi ..
    You posted in the, "Setting Up Apple Pay" community, so if you are tryiing to setup Apple Pay, be aware, it's limited to the U.S. only.
    Set up and use Apple Pay
    If it's not an Apple Pay issue, try this support article >   Can't change the country of your iTunes Store, App Store, iBooks Store, or Mac App Store account

  • Restrict a textInput component to accept only numbers from 0 to 250

    I want to restrict a textInput component to accept only
    numbers from 0 to 250. I know I can use restrict to some degree but
    all I can do is restrict it to 0-9 and use maxChars to 3 which
    allows any number from 000-999.
    I believe I could use the TextEvent.TEXT_INPUT and then write
    some code that will convert that event's text (i.e. the text
    entered into textInput component before it is actually added to the
    textInput component's text value) such that I do not allow values
    greater than 250 but I'm not sure what that code would be. Does
    anyone know an easier way to do this?

    use the change event to monitor the input value and if it's
    greater than 250 (after typing the text property as a number),
    assign the text property to be "250".

  • Dataelement of data type char but accepts only integers

    Hi Experts,
    I have a scenario where quantity field in output is editable and the user wants the quantity field printed without thousand separator. If i take a char field and display the field is editable then user may mistakenly type a,bcd...z/ special characters which it should not capture. Is there any char data type data element which accepts only integers. Because after that i need to save that value in z database table quantity field.
    Please share your suggestions.

    I have a scenario where quantity field in output is editable and the user wants the quantity field printed without thousand separator.
    I'm a bit lost with your statement, as you consider changing the data type it sounds like you have control over the program and thus most likely also over the forms (assuming that printing means sending some output to a printer). In that case I'd first consider keeping the quantity field as is and change the output logic (e.g. print program or form) so that the group (thousands) separator doesn't appear for that quantity field (and refrain from changing the field definition). (Similarly if it's just concerning the output of a field on the screen then an appropriate output mask/template for that screen field should be the right way to go.)

  • Error in PO as Input should be in the form of ___.___.__~,__V

    Hi Experts,
    One of my user can able to create a PO, but when he tries to change or display the PO in Me22N he observes the below error,
    Input should be in the form of ___.___.__~,__V
    Message No 00 088
    Please help me to resolve this issue.
    Further any inputs required from my side please revert back.
    Cheers,
    Kumar.S

    Hello Kumar..
    In user profile setting is made in such a way that as a decimal he is using ',' (comma) and to differenciate between 100 and 1000 place he is using '.' (dot)... so please ask user to enter tht form only...
    however, it can bring to normal setting by running the T - Code /nSU3 (by user himself).. in new window there will be three tab pages one of them is Default.... go this tab page and see what no. system u want... comma as decimal and dot as differenciator between 100 and 1000 or dot as decimal point and comma as differenciator between 100 and 1000....
    Please check it with user and let me know if you have any further query on the same.
    Thanks And Regards,
    Krupesh Kothari.

  • How to select a field containing only alphabet.

    Post Author: tantk
    CA Forum: General
    I want to select records with only alphabet in a field.
    Can't seem to find any finctions to do this in CR XI.
    e.g Reference ID
    ABCXYS - Select this record
    173839S - Don't select
    UDHHW12 - Don't select
    173746 - Don't select
    Thanks for the help in advance.

    Post Author: SKodidine
    CA Forum: General
    There might be an easier way but I just cant think of it right now.  Here is a way to get you started.
    Create a formula with:
    numbervar i;numbervar a := 0;//for i := 1 to length({table.refid}) do(if not({table.refid}&#91;i&#93; in chrw(65) to chrw(122)) then a := a + 1;);//if a = 0 then 'true' else 'false';
    Place this formula in the report header and suppress it.  Then in your record selection criteria place this line:
    {@yourformula} = 'true'
    This should fetch only those records that either have a space or all alphabets for the refID.

Maybe you are looking for

  • Configuring ABAP Mapping

    I am working on SAP XI 3.0 As per documentation i add the entry in http://<hostname>:<portid>/exchangeProfile com.sap.aii.repository.mapping.additionaltypes as e.g. R3_ABAP|Abap-class;R3_XSLT|XSL (ABAP Engine) but i.e. not seen in the httP://<hostnam

  • E Recruitment(BSP, Webdynpro)

    In   E Recruitment  with  latest  version,  can  I  use  Webdynpro  and BSP  ( both ). IF  Webdynpro   implements  which  scenarios  we can  implement  and  BSP. Thanks, Asha

  • HELP WITH SHARING PLEASE

    Hi there We have an ipod Classic and 2 ipod shuffles and all our music is saved into itunes on my laptop. We have just bought my parents an ipod Classic and my mum has created her own itunes at her home on her own pc. She would like to copy some of o

  • LAP cannot discover WLC after static IP set

    I have an 1131 LAP that I originally configured with DHCP and it found the WLC fine. Then I forced the LAP to a static address from the WLC manager. Upon rebooting the LAP it could not find the WLC since it no longer uses DHCP and for some reason it

  • Sendind idoc tcode foe msg type WVINVE and WPUUMS

    Dear All, What is the tcode for sending phy inventory data through IDOC message typy WVINVE, and also for message type WPUUMS POS interface: Upload sales data (Compressed) Ex: BD10 for sending material. Thanks and regards, Arun.