Validation of fields

I have four mandatury fields in a page and one submit button.Among that one was read only field and another one  is drop down list.If all four fields are populated then only save button should be enabled,otherwise it should be disabled.
Can any one help me this?
Here is my code...
private  if (customercode.text=="" ){Csave.enabled=
false; return;}if(customername.text==""){
Csave.enabled=
false; 
 return;}
function validation():void{ if(geo.text==""){
Csave.enabled=
false; return;}
 if(cmblistunit.selectedIndex==-1){
Csave.enabled=
false;Alert.show(
"Error:Customer type cannot be null.Please select a valid Customer Type!"); return;
Csave.enabled=true;}
If geo field(read only) value is selected last,then save button is not enabling.
Message was edited by: sudheerCh

The property represents the "property path" from the object (the formulation spec data object, in this case) that you are trying to validate to the property you want to be required.
To get to the reason for change, you first have to access the SpecSummary property of the formulation spec, then the SpecSummary's FreeTextReasonForChange property, and then the FreeTextReasonForChange's ReasonForChange property. So your property should be "SpecSummary.FreeTextReasonForChange.ReasonForChange"
If you are using the DatabaseAndObjectSchema document, you can traverse these property paths, but just remember to use the property's name, not its type, in the property path.
You can learn more about the DatabaseAndObjectSchema document in the Extensibility Guide's Developer Information section in the Appendix, and in the Appendix of the ValidationTraining powerpoint presentation, under ReferenceImplementations\Validation\Documentation folder.
Edited by: Ron M on Jun 20, 2012 4:19 PM

Similar Messages

  • Spry validation text field across two columns in a table?

    I have a table with two columns.  I can easily insert a spry validated text field into the left cell but when I drag the box over so that box is in the right column and the label is still in the left column then that breaks the widget.
    Is this even possible for me to do or do I have to put the widget in just one column?

    Think I figured it out.
    http://www.adobe.com/devnet/dreamweaver/articles/spry_form_validations.html

  • Is it possible to create a editable pdf with validation(required field) using Adobe Acrobat pro version?

    Hi,
    the subject says it all. I have downloaded the trail version to see if its possible to create a editable pdf with validation(required field) using Adobe Acrobat pro version?
    Basically, I will have to create a pdf form where users fill it and send it back to me. there will be required fields (the textbox and check box) that user need to fill before saving the editable pdf?
    Is it possible. if so, can someone kind enough to point to me right directions?
    Thanks in advance.

    Thanks for reply. What I am trying to achieve is to give an option for the user to download the pdf form and once the user tries to save the pdf, it validates with the required field. I managed to create the editable pdf with required fields option. I just need that validation to be done when user click on save file. How can I achieve this? thanks so much for your help.

  • Using JavaScript to set value of Spry validated text field

    Why can't the value of a text field be set using JavaScript
    when it's validated using the Spry validation widget.
    Example (this works):
    <select name="birthdate_month" id="birthdate_month"
    onChange="document.getElementById('birthdate').value = 'test';">
    <option>1</option>
    <option>2</option>
    </select>
    <input type="text" name="birthdate" id="birthdate"
    value="">
    Example (this doesnt work):
    <select name="birthdate_month" id="birthdate_month"
    onChange="document.getElementById('birthdate').value = 'test';">
    <option>1</option>
    <option>2</option>
    </select>
    <span id="birthdate">
    <input type="text" name="birthdate" id="birthdate"
    value="">
    <span class="textfieldRequiredMsg">please enter your
    birthday</span>
    </span>
    <script type="text/javascript">
    <!--
    var birthdate = new
    Spry.Widget.ValidationTextField("birthdate", "none");
    //-->
    </script>
    Is there a way to change the value of a Spry validated text
    field using JavaScript?
    Thanks.

    Why can't the value of a text field be set using JavaScript
    when it's validated using the Spry validation widget.
    Example (this works):
    <select name="birthdate_month" id="birthdate_month"
    onChange="document.getElementById('birthdate').value = 'test';">
    <option>1</option>
    <option>2</option>
    </select>
    <input type="text" name="birthdate" id="birthdate"
    value="">
    Example (this doesnt work):
    <select name="birthdate_month" id="birthdate_month"
    onChange="document.getElementById('birthdate').value = 'test';">
    <option>1</option>
    <option>2</option>
    </select>
    <span id="birthdate">
    <input type="text" name="birthdate" id="birthdate"
    value="">
    <span class="textfieldRequiredMsg">please enter your
    birthday</span>
    </span>
    <script type="text/javascript">
    <!--
    var birthdate = new
    Spry.Widget.ValidationTextField("birthdate", "none");
    //-->
    </script>
    Is there a way to change the value of a Spry validated text
    field using JavaScript?
    Thanks.

  • Spry validation text field issue

    I've put several spry validation text fields on my site and
    you can still click through to the next page without having to
    enter any information. What am I missing?

    Think I figured it out.
    http://www.adobe.com/devnet/dreamweaver/articles/spry_form_validations.html

  • Adf validation date field timestamp

    while doing some validation of comparing date fields with timestamp fields i am finding inconsistent behavior in jdev 11 1 1 5. is this known issue. what is best way to do EO level declarative Compare Greater Than / Less Than validations on fields which are of type date and timestamp ?

    First of all, "ADF" on the view side (which is where UIX is) has undergone some dramatic changes.
    10.1.2 and before: you had UIX
    10.1.3.x: ADF Faces 10g
    11.x: ADF Faces 11g (which, although is JSF like ADF Faces 10g, the component set is so different as to be almost a "new thing")
    So, when you're asking about the view technologies, 10.1.2, 10.1.3, and 11.x are dramatically different. ADF Business Components, even though they have gone through changes, are "the same enough" across the versions as to be understandably similar, but not the view technologies.
    John

  • Unique problem with validation/ making field required

    I have searched the forums trying to find a way to make a field required based on the users selection of a check box, or something else. So far, everything says use nullTest = "error".
    I have tried to do this and get the following results: The red highlighting, which shows up around my other required fields, will not show up unless you click in the text box and then out of it. Weird! Then, when pressing the submit button, it will not actually give you an error message if there is nothing in that text box, as it will if there is nothing in the fields that I originally make required.
    Any thoughts, or fixes would be greatly appreciated.
    Thanks in advance for any help.

    We do the same thing here. We haven't had any issues with the submit not validating the field correctly though. Our only issue was the red highlighting. To get around this, we would call resetdata on the field. resetData clears out the value of the field so you need to store it off and then reset it.
    if (form1.BP1.ChangeActivities.Pos1.Department==1) then $.validate.nullTest = "error" else $.validate.nullTest = "disabled"
    endif
    $=$
    var x = $
    xfa.host.resetData("form1.BP1.ChangeParticulars.Pos1To.DeptNo")
    $ = x

  • Validity period field in Info record

    Hi all,
        I encounter the following problem while creating an info record. The validity field was mandatory, but the field was grey and evantually i couldn't enter anything... Can anyone clarify my doubt???
    Message was edited by:
            Antony anburaj

    Hi
    In ME11,While creating Info Record, In Pur.Org.Data1 Screen, you will find that the Valid to Field in Grey....If you want to give give valid to Date, then In the same screen, Go to Conditions, and there you can give Valid from and Valid to Details and all...
    Reward if useful
    Regards
    S.Baskaran

  • Info Rec - EINE - Valid To Field

    Hello,
    I need to make changes to many Info Recs.  I find that this is possible when the Valid To field in the EINE table is populated with a date other than 00/00/0000, for example 12/31/9999.  My question is, can someone tell me anything more about the Valid To filed in this table.  From where is it in SAP?  Where can it be changed? Etc.
    Thank you in advance,
    Judi

    To change the Info record valid to date you have to use follosing table and write the cusotm program ro to that.
    Use table below. The reason is the valid to is stored in the structure so you have to write the program to rean all the validity period defined for info and serch for the last record and change based on your input file.
    a017, konp, eina, eine, t683s, a018,

  • Where is Hint Box for Validation Text Field widget?

    I want to enter a hint for my form.
    I am following the instructions on the Adobe Using Dreamweaver CS4 page for Insert and edit the Validation Text Field widget page:
    <http://help.adobe.com/en_US/Dreamweaver/10.0_Using/WSEB5440BC-453A-4101-928C-302199E7E02F. html#WS8E6EA74E-87AC-4a81-A5CC-2DB6FB451DE0a>
    It says:
    Create a hint for a text field
    Because there are so many different kinds of formats for text fields, it is helpful to give your users a hint as to what format they need to enter. For example, a text field set with the Phone Number validation type will only accept phone numbers in the form (000) 000-0000. You can enter these sample numbers as a hint so that the text field displays the correct format when the user loads the page in a browser.
       1. Select a Validation Text Field widget in the Document window.
       2. In the Property inspector (Window > Properties), enter a hint in the Hint text box.
    However, the is no hint box in my Propeties area.
    How do I get this hint box to show up?
    Dreamweaver CS4, Windows Vista

    Hi David,
    My Property inspector looks different than what you have below.
    I do not have a Hint box and I do not have the Customize this widget.
    I did have a Hint box and the Customize this widget for CS3, howver not for CS4
    Alison

  • Change "valid to" field in Profit Center master collectively

    I want to change "Valid to" field in Profit Center master collectively, e.g. from 31.12. 9999 to 31.12.2010. I have tried KE55(mass change profit center) but it seems the "Valid To" field is greyed out, i.e. not able to change this field in massive change.
    Therefore, I have to go to KE52>change valility period to shorten the "valid to" filed invidiually. There are too many profit centers i have to change.
    Is there any way to change this field in mass change configuration?
    Regards,
    Frances

    Hi
    Use an LSMW to do this task... It has to be done from KE52... So, better to create an LSMW
    Regards
    Ajay M

  • Show Alert in PreSaveAction after validation of Fields

    Hi All,
    i have a simple task, but I dont know the function call for this.
    I want to show an alert in the PreSaveAction function after verifying that all Values in the Fields are valid.
    So something like:
     function PreSaveAction() {           
        if (FieldsAreValid) {           
    alert('<%=SPUtility.GetLocalizedString("$Resources:IdeaFactory,PopupTextEditIdeaDialog", null, SPContext.Current.Web.Language) %>');           
    return true;   
    So my question is: Is there some fuction - FieldsAreValid -  like the PreSaveAction, that i can call in this manner?
    Thank for any help
    Martin

    Hi,
    According to your post, my understanding is that you wanted to display validation for fields.
    We can customize the new or edit form with InfoPath to achieve it.
    In the form, we can add a validation rule to validate the filed with a condition, such as below.
    More reference:
    http://www.bizsupportonline.net/infopath2007/infopath-basics-3-ways-validate-data-infopath.htm
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • DTW valid user fields

    Dear Experts,
    I am working w/ a customer who has hundreds of OITM valid user fields to set up.  I found the  oUserFields folder in DTW templates, with UserFieldsMD.xlt (corresponds to CUFD) and ValidValuesMD.xlt (corresponds to UFD1).  Seems straigthforward.
    But when running import function of DTW there is no corresponding Business Object for user fields / valid user fields. Or at least not one that is obvious to me.
    What am i missing?  Running 2007A PL 46, DTW 2005.0.23, API version 8.0.181 
    thanks for your help,
    Beverly

    You don't need to include ValidValuesMD.xlt if nothing need to be set.  Try DTW just one or few UDF name by UserFieldsMD.xlt to start.
    Thanks,
    Gordon

  • How  to show password in spry validation password field?

    how do  I make the password display in the spry validation password field , the standard one is just a bunch of asterisk .

    Just use a normal textfield, instead of a password field. The only difference between a password field and a text field is the characters not showing up.

  • User exit for validation of field NEWKO in f-48 tcode in finance

    hi,
           Previously we  validated the Field XBLNR (Reference) in the document header from the table EKKO, for the PO Number. now we want to validate the vendor number(LIFNR)  in the field NEWKO from the table EKKO with reference to the PO number entered in the field XBLNR.
    we want to find out the correct user exits or any enhancement for the above validation.
    pls help me in this regard ,matter most urgent.
    Thanks & regards
    veera

    hi,
    for f-48 you could use FI-validation with tcode OB28
    use an exit (UK...) for your check in Program ZGGBR000
    A.

  • "Valid on field" on VK13 screen

    Hi SD Gurus,
    Can anyone tell me if there is any link between the "valid on" field on condition records screen (VK11, VK12, VK13) and pricing reports.
    Thank You,
    Alekhya.

    Hi Alekhya,
    The field valid on in VK11/VK12/VK13 is for the validity of your condition record what ever you are maintaining.
    Till the given date your condition record will be valid.For example if the date is 1/12/2008.Means that price will come in the sales order for that condition type will come if you have created the order on or before that date.If that condition type is mandatory and if you create another order on 2/12/2008 means it will not fetch your price because it's validity expires.Then you have create new condition record for that or extend the validity period in change mode by VK12 T.Code.
    Regards,
    Mohan

Maybe you are looking for

  • How to Display SVG Embedded in HTTService? (PHP)

    Hi, I don't know if anyone on this list has tried to do this. I have a few files that I have generated SVG with PHP, and I am trying to load them into my Flex app. Looks like that the XMLList that I tried to convert from XML was generated correctly,

  • Bug when using IBOT

    Hi all, has anyone had this kind of error? I am using IBOT, and I set Schedule_ to Start Date=21/09/2009, Time of Day=08:00, Set Time Zone=GMT+01:01, and Recurrence_ to Every 1 week(s) on  MON. When I look overview of this IBOT, everything is fine, b

  • Stateful Table View

    Hi, I have an editable column in my table fiew which has scroll bar. Can I capture the  changed data even if i am scrolling among the pages? Right now I am not able to get the data which I have filled in previous pages when i navigate back . Kindly a

  • Should I use Samba to share between 2 Arch boxes?

    Hey i have a few questions as i am a complete beginner when it comes to networking/filesharing, please bear with me.  According to the wiki, Samba can be used to share local files between two unix pcs.  I have it working right now and I've read the S

  • Software Update for my N95 8GB...

    Hello I want to know why there is no update on the new code as my v 11.0.026 I can not to the latest v15.0 Why is some hardware and some do not http://europe.nokia.com/appmanager/UnitedStatesEnglishEUROPE_NOKIA_COM_3/Get_support;JSESSIONID_NCOM...!-4