Validating address field

how can i validate address field of form in jsp where as the field is saved in the database at the backend
pls help

If I understand you correctly you want to validate field(s) from forms.
For this type of actions you use indexof or regular expressions.
Andreas

Similar Messages

  • Validating an Address field

    Hi All,
    Does anyone know if it is possible to set field validation arguments on the contents of an Address field? If so, can anyone provide some examples of how this can be achieved?
    Regards,
    Cameron

    Hi Venky,
    Thanks for your reply. I tend to think you are right. Unfortunately, using Custom Fields to achieve the result is not really an option for me so I guess I'll have to wait and see if Oracle can provide some means of validating addresses in future releases.
    Regards,
    Cameron

  • Confgure the email address field validation in OIM

    Hi,
    Is there a way we can configure the email address field of OIM to allow some special characters which are part of RFC like "&".
    By Default, OIM allows only ASCII letters, digits, dot, - and underscore in the local-part of the email address. But we have a requirement to allow "&".
    Please let me know if it is configurable.
    Thanks

    I am using
    Version: 9.1.0.1862.14
    Build 1862.14
    I got the info that OIM does not allow by default from this link
    http://download.oracle.com/docs/cd/B32479_01/doc.903/b32455/componts.htm#CIHCCEAF
    But if it does, then it would be great.

  • How to make the Shipping address field on an Account as a required field?

    Hi,
    The requirement is that there has to be a shipping address specified for each Account that is being created.
    I tried to set the 'shipping' address field to 'required' in Account field setup, but the required checkbox is disabled, neither can I do it from Account Page layouts since there also its the same case.
    Does anyone know if its possible to do this and how?
    Regards,
    Ani.

    Have you tried to add validation to the AccountName field
    [<PrimaryShipToStreetAddress>] IS NOT NULL - will test to see if there is a value in the Shipping Address 1 field

  • Multiple Valid Addresses of a specific address type -- SD Customer

    Hi Gurus -
    My customer wants to add a new address type called "Job Site Address" (ZJ) which they want to attach to all customers. I believe this is standard functionality.
    However, they have a situation where the customer could have many valid Job Site address at the same time. Does SAP allow maintaining many valid addresses of a specific address type? I did not think so but just wanted to reconfirm.
    Thanks in advance for taking the time to answer this
    Regards,
    Pradhip.S

    hi,
    this is to inform you that,
    SAP has provided name1/2/34 fields there in the place of address.
    if that is not sufficient you can treat contact person total tab page for your ZJ that is site address.
    or
    this is a development,  sit with abaper
    say him to create a push button in the address tab page called ZJ for which addational tab page will be assigned to fill the site address.
    hope this helps.
    regards,
    balaia

  • Validate 2 E-mail address fields in insert record form

    Hello,
    I have used the Insert Record Form Wizard to create a form, including using the Validate Form Server Behavior to validate many fields.
    I can't figure out how to compare & validate 2 E-mail address fields.
    After the form was created I opened the existing Validate Form Server Behavior - Advanced tab and built the condition {sub_email2} != {sub_email} but this had no affect on submitting the form.
    The other thing I tried was creating a new Compare Transaction Field behavior with the same condition {sub_email2} != {sub_email}, this also seemed to have no affect.
    I am just a beginner, so I admit to not really knowing what I'm doing, for me ADDT has been a great aid.
    The other thing I noticed, when I tried both the items above, besides not affecting being able to submit the form with different E-mail addresses. The red asterisks indicating a required field, would disappear.
    Here is the form http://www.oescahealthregistry.org/forms/pedigree_submission.php this version of the form does NOT include either of my attempts to validate the E-mail fields.
    Thanks in advance for your help.
    Dennis

    Hi,
    A compare statement should work fine. As an example I made small form that inserts name and email (2 fields) using Insert record wizard.
    Name field is required, email field is required and checks that its a valid email structure ([email protected]). I then finish the wizard.
    <input type="text" name="email" id="email" value="<?php echo KT_escapeAttribute($row_rsemail['email']); ?>" size="32" />
    <?php echo $tNGs->displayFieldHint("email");?> <?php echo $tNGs->displayFieldError("email", "email"); ?>
    I then add the extra field to the form that the 2nd email will be entered into, this one I called email2, I then copied the display hint and fielderror code from the first email and placed it behind the 2nd email box and changed the text to reflect email2. Which probably doesnt matter but I put it there anyway.
    <input name="email2" type="text" id="email2" size="32" />
    <?php echo $tNGs->displayFieldHint("email2");?> <?php echo $tNGs->displayFieldError("email2", "email2"); ?>
    Now that I have both email fields in the form, I go to the developer tools under server behavior and select compare transactions fields under form validation.
    I hit the + to add a field I then choose email for field, then == for condition, then {POST.email2} for compare to. I enter in an error message and hit ok.
    Thats it the form is ready.
    The first email field will check against email validation and the 2nd email will check against the first email.
    I hope that helps.
    Take note that the database actually only has 2 fields to enter data. Then 2nd email field is only for validation.
    Message was edited by: Albert S.

  • SMTP send failure doesn't indicate which address field has failed?

    Hi,
    I have question regarding Transport.send method. I try send a message (in which to one of the address is invalid e.g. BCC field). I get the exception SendFailedException. I catch the exception and try to send the message again to all ValidUnsentAddresses. But in the exception or in nested exception there is no way I know which address field has failed?
    I can always compare the valid unsent addresses with addresses in message and can remove the invalid from the message but thought there must be some way to know it in exception it self?
    Regards

    Sorry, no, it doesn't tell you which field the address came from, because in fact the
    address may not come from any field at all.
    In the normal case the addresses from all fields are collected together and used as
    the list of addresses to send the message to. But by using the appropriate sendMessage
    method, you can send the message to any addresses you want, whether they appear in
    the message or not.

  • Disabling ship-to-address field on the SRM 7.0 portal.

    Hi All,
    The requirement is to disable the ship-to-address field for user input on the portal.
    I have some information about the table /SAPSRM/V_MDF_IC. Here some entries has to be maintained.
    But I am not able to get what would be the exact data entry to disable the ship-to-address field.
    Please let me know the correct data and procedure to do this.
    Thanks & Regards
    Archana

    Hello Archana
    in standard SRM , if you maintained ship to address attribute or copy ship to address default you might inherit all the user ship to address default.
    but your requirement is no user should not edit the ship to address
    in SRM 5.0 we have undo address button under ship to address .
    if you click undo address all the address will be cleared and now user can enter his desired ship to address.
    so now you need to protect this functionality. you must keep access for only dispaly the ship to address not allow to enter ship to address.
    In srm 7.0 you dont have undo entries ? i am not much aware of srm 7.0 screens . customer requirement is valid.
    br
    muthu

  • Address Field questions

    We have a requrirement that is requesting we make the Lead "Billing Zip" required on any new leads entered, As the Billing Zip field is grouped into "Address", I cannot seem to get any of the Default validation or Field Validation rules I put into place to work.
    Zip code is the identifier we use to auto-assign leads in CRM.
    The issue is that if a user does not enter a zip code, the lead gets auto assigned to the default lead person listed under lead assignment rule group "Unassigned Lead Owner", and that user is getting swampped with leads where no zip code was provided.
    Are the Address fields considered "System" Fields?
    I am aware that system fields do not allow field validation, but in address, those validation options are not greyed out, suggesting I should be able to put field validation rules on them.
    I tried [<ZipCode>] IS NOT NULL
    [<ZipCode>] <> ''
    I also tried creating a new "Lead Zip Code" field where we can force the user to populate the new field, and then put a Post Default Validation Rule on the billing address field that says [<ZipCode>] = [<stLead_Zip_Code>]. That does not auto-populate the Billing Zip field upon save either.
    Any Suggestions, and/or can anyone confirm if the address fields are considered "System"...hence these attempts are a mood point?

    Hi, I tried putting the post default in place by first making the new "Lead Zip Code" field required, and also have a validation rule set on the new field where "[<stLead_Zip_Code_ITAG>] IS NOT NULL"
    I then went into the "Addrerss" field and added the post default = "[<ZipCode>] = [<stLead_Zip_Code_ITAG>]" Logged out, back in, and created a new lead. That did not work. The "Billing Zip" field is still blank when I create and save a new Lead.
    Am i not using the correct criteria in my post default criteria?
    We are currently a single country configuration, so that should not be an issue.
    Edited by: TeknoMan on Mar 31, 2011 1:49 PM

  • Address field data is not getting dispalyed in company details

    Dear All,
    After filling up the necessary details in the Administration->system initialization->company details->general tab->Local language for the address of the company.
    I am not getting the address displayed in the Address field.
    I have filled all details in street,block,building,city,zip code,state,country.
    But still i am not getting anything displayed in the address field.
    Kindly help me in resolving this issue.

    Open Administration  -> Setup -> Business Partners  -> Address Formats Window.
    Check if you have the address format for the Country available in this window

  • F4 help for address field

    Hi,
    In BP_CONT component, for address field I need to provide F4 help. And the F4 should contain the addresses with separate fields as (city.street,country).On selecting the row the data should flow as concatenated manner to the address field.
    Please provide some idea to achieve this.
    Thanks.

    Hi Ginger,
    I would like to add what Vinamra has said, you need to create a search help through se11 transaction. As per your requirement you need to map address field of the selected row to different fields in UI.
    In search help we have IMPORTING(IMP) and EXPORTING(EXP) Fields or parameter.
    Lets take a simple example, suppose you have three address field house no, street and city. Now you would like to apply F4 help on CITY field so you need to choose CITY field as IMPORTING and EXPORTING parameter in your search help and other fields like HOUSE NO and STREET as EXPORTING parameter only.
    Now following code you need write in GET_V_CITY() method
    DATA:
       lt_inmap  TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab,
       ls_map    TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping,
       lt_outmap TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab.
       ls_map-context_attr = 'STRUCT.CITY'.
       ls_map-f4_attr      = 'CITY'.
       APPEND ls_map TO: lt_inmap, lt_outmap. " map to input and out
      ls_map-context_attr = 'STRUCT.HOUSENO.     " Context node attribute
      ls_map-f4_attr      = 'HOUSE_NO'.                    "corresponding Field in search help
      APPEND ls_map TO: lt_outmap.
    ls_map-context_attr = 'STRUCT.STREET.     " Context node attribute
      ls_map-f4_attr      = 'STREET'.                     "corresponding Field in search help
      APPEND ls_map TO: lt_outmap.
      CREATE OBJECT rv_valuehelp_descriptor
        TYPE
          cl_bsp_wd_valuehelp_f4descr
        EXPORTING
          iv_help_id                  = 'ZSH_ADDRESS'
          iv_help_id_kind             = if_bsp_wd_valuehelp_f4descr=>help_id_kind_name
          iv_input_mapping            = lt_inmap
          iv_output_mapping           = lt_outmap.
    May this will help you.
    Regards
    Ajay

  • How to visit a pasted url in address field?

    This may seem a naïve question:
    Some background: I have never used Safari before. I have just installed *Safari 5.01* for Windows on my *Windows 7 PC*, and when I *+copy and paste+* an url for a particular existing web page into Safari's address field (which url loads successfully in Firefox, Opera, and IE ), I find I have no *go to* or load arrow, or other means, such as pressing enter or return, to make the browser load the pasted address. When I press Ctrl+L nothing happens, whether from the drop down menu at File: *Open Location...* or as a double keyboard command.
    And so I resorted to importing a bookmark for the address from IE, and then Safari loaded it successfully.
    Can I not just copy and paste addresses into Safari's address field and have a *+simple next step+* to load the page as I can with IE, Firefox, and Opera ?
    I tried typing part of the address in manually for Safari's autocomplete to find it, but it wouldn't find the address, which is very new, but does exist, and as I have said, loads in the other three browsers with a simple paste and enter. This *+copy and paste+* method happens to be a very convenient means of loading some sites, with only one option being available, that is the exact address, rather than possibly several options that are offered up as one types part of the address, which have to be looked at and chosen from.
    Any assistance will be appreciated.
    Thanks … allaniam

    *I confirm a similar bug exists on Safari 5.0.2 for Windows, running on a 32bit Windows XP SP3.*
    Description
    1. You copy an URL, not matter how you copy it (copy the URL text, or from another browser address bar, or from a webpage using the contextual menu "Copy Link", and etc)
    2. When you try to paste in the Safari address:
    ===(i) if you use keyboard shortcut Control-V to paste in the URL, and press ENTER - everything is normal, meaning you will leave your previous webpage and go to the new page with that URL you pasted in using Control-V
    ===(ii) if you right click on the Safari address bar, invoke the contextual menu that popups from there, and choose "Paste" from the menu,and then hit ENTER after you paste in the new URL:
    *======(A) the new URL you pasted in will disappear.*
    *======(B) the old URL before your paste, will re-appear in the address bar.*
    *======(C) the cumulative effect this operation will be the same that you reload the previous page.*
    This is the symptoms on 32bit Windows.
    *It seems in the current build of Safari for Win, "Paste" command from a menu denotes something different from its shortcut "CTRL-V".*
    This is a very weird thing.
    Just for the record, Safari 5.0.2 on Mac OSX 10.6.4 doesn't share the bug.
    *By the way, I have also surveyed the exactly version and build numbers for both the Safari versions:*
    Safari 5.0.2, build 7533.18.5: on WinXP 32bit
    Safari 5.0.2, build 6533.18.5: on Snow Leopard.

  • I can no longer see the address field in safari, can anyone help?

    I can no longer see the address field in safari, can anyone help?

    Abarryseymour
    That didn't work to get the safari address bar and the google search bar on my safari browser. could I have a virus???
    Which OS, which Safari?

  • How to make ship to address fields mandatroy while creating sales order

    Dear forum Members,
    My client oraganizes trade shows and hence ship to address vries everytime when sales order is entered for the same sold to party.So one times ship to customer is used in the sales order and address is entered at sales order level. Please note that at master data level all address fields are suppressed for one time customer.Hence there is no question of going back to one time customer account group and making any field mandatory.
    While changing address for ship to at order level, there are few fields which are mandatory, for example city is mandatory. I also want to make zip code and region as mandatory.where is this controlled?Please note that this is not account which controls this. i have already done lot of r&d on account group and transaction variants which are not controlling these fields at sales order level.

    Hi Kanwal,
    Only incompletion procedure will not suffice for your requirement.
    You need to make the field mandatory wherein, if you dont enter, system will not allow you for enterin further fields. For this you should do the following:
    Goto transaction SHD0, you will get a screen where you need to enter you Tcode "VA01"
    Below you define a transaction variant (starting with Z).
    On the next tab you have Screen Variant. Here you enter screen variant name, program name & screen number.
    Then you click on create.
    Its like as if you are doing some kind of recording. Finally you will reach to the screen where there are options available to make the field mandatory.
    For your reference the program is SAPMV45A screen number is 4001.
    Further screen are self explinatory.
    Hope this should solve your requirement
    Regards,
    Dhananjay

  • URL request in the address field on the browser

    A few of URLs in my application are only restricted to the web master. Before creating the special user role of the application, I would like to access those URLs through the address field on a browser. The problem I have is that a URL entered on the field will lead to a creation of a new session even though I enter a URL with the current jsessionid of TC. Is a way to prevent a creation of a new session?
    Thanks.
    v.

    When I test on URLS. they show up in the address field with a jsessionid. I believe that is due to cookies disabled. Otherwise, the jsessionid wouldn't show up. But, when I check out the cookies setting on both Firefox and IE, they are enabled. I am not sure what is going on in this regard.

Maybe you are looking for