Spry Conditional Validation

Hello,
I am using Spry Pre-Release 1.6.1. Here is what I am trying to do:
A user makes some input. Based on that input I am showing 5 additional fields that now must be required.
I can get this to work on the first field( spryselect4) but not on any of the following fields. Below is a snippet of my code:
var spryselect4;
var sprytextfield15;
var sprytextfield17;
var sprytextfield18;
var sprytextfield19;
var sprytextfield21;
var sprytextfield22;
var sprytextfield23;
function setFamilySpry(val){
    // get the value
    if(val == 1){
        // if there inst a validaton build one
        if(!spryselect4){
            spryselect4 = new Spry.Widget.ValidationSelect("spryselect4", {validateOn:["blur"]});
          if(!sprytextfield15){
            var sprytextfield15 = new Spry.Widget.ValidationTextField("sprytextfield15", "none");
          if(!sprytextfield17){
            var sprytextfield17 = new Spry.Widget.ValidationTextField("sprytextfield17", "none");
          if(!sprytextfield18){
            var sprytextfield18 = new Spry.Widget.ValidationTextField("sprytextfield18", "email", {useCharacterMasking:true, validateOn:["blur"]});
          if(!sprytextfield19){
            var sprytextfield19 = new Spry.Widget.ValidationTextField("sprytextfield19", "phone_number", {useCharacterMasking:true, validateOn:["blur"]});
          if(!sprytextfield21){
            var sprytextfield21 = new Spry.Widget.ValidationTextField("sprytextfield21", "none");
          if(!sprytextfield22){
            var sprytextfield22 = new Spry.Widget.ValidationTextField("sprytextfield22", "phone_number", {useCharacterMasking:true, validateOn:["blur"]});
          if(!sprytextfield23){
            var sprytextfield23 = new Spry.Widget.ValidationTextField("sprytextfield23", "none");   
    } else {
        // if there is a validaiton in sprytextfield destory it, and clear the variable
        if(spryselect4 && spryselect4.destroy){
            spryselect4.reset();
            spryselect4.destroy();
            spryselect4 = null;
         if(sprytextfield15 && sprytextfield15.destroy){           
            sprytextfield15.reset();
            sprytextfield15.destroy();
            sprytextfield15 = null;
             if(sprytextfield17 && sprytextfield17.destroy){
            sprytextfield17.reset();
            sprytextfield17.destroy();
            sprytextfield17 = null;   
             if(sprytextfield18 && sprytextfield18.destroy){
            sprytextfield18.reset();
            sprytextfield18.destroy();
            sprytextfield18 = null;   
             if(sprytextfield19 && sprytextfield19.destroy){
            sprytextfield19.reset();
            sprytextfield19.destroy();
            sprytextfield19 = null;   
             if(sprytextfield21 && sprytextfield21.destroy){           
            sprytextfield21.reset();
            sprytextfield21.destroy();
            sprytextfield21 = null;   
             if(sprytextfield22 && sprytextfield22.destroy){           
            sprytextfield22.reset();
            sprytextfield22.destroy();
            sprytextfield22 = null;   
             if(sprytextfield23 && sprytextfield23.destroy){           
            sprytextfield23.reset();
            sprytextfield23.destroy();
            sprytextfield23 = null;   
    // proceed with the rest as normal
    return true;
When the user selects "1". All the fields listed above become required. But when they select an option other than "1". Only the first field( spryselect4) reverts back to not being required. All the other fields remain required.
Anyone have a clue... I am stumped.

Hello,
I am using Spry Pre-Release 1.6.1. Here is what I am trying to do:
A user makes some input. Based on that input I am showing 5 additional fields that now must be required.
I can get this to work on the first field( spryselect4) but not on any of the following fields. Below is a snippet of my code:
var spryselect4;
var sprytextfield15;
var sprytextfield17;
var sprytextfield18;
var sprytextfield19;
var sprytextfield21;
var sprytextfield22;
var sprytextfield23;
function setFamilySpry(val){
    // get the value
    if(val == 1){
        // if there inst a validaton build one
        if(!spryselect4){
            spryselect4 = new Spry.Widget.ValidationSelect("spryselect4", {validateOn:["blur"]});
          if(!sprytextfield15){
            var sprytextfield15 = new Spry.Widget.ValidationTextField("sprytextfield15", "none");
          if(!sprytextfield17){
            var sprytextfield17 = new Spry.Widget.ValidationTextField("sprytextfield17", "none");
          if(!sprytextfield18){
            var sprytextfield18 = new Spry.Widget.ValidationTextField("sprytextfield18", "email", {useCharacterMasking:true, validateOn:["blur"]});
          if(!sprytextfield19){
            var sprytextfield19 = new Spry.Widget.ValidationTextField("sprytextfield19", "phone_number", {useCharacterMasking:true, validateOn:["blur"]});
          if(!sprytextfield21){
            var sprytextfield21 = new Spry.Widget.ValidationTextField("sprytextfield21", "none");
          if(!sprytextfield22){
            var sprytextfield22 = new Spry.Widget.ValidationTextField("sprytextfield22", "phone_number", {useCharacterMasking:true, validateOn:["blur"]});
          if(!sprytextfield23){
            var sprytextfield23 = new Spry.Widget.ValidationTextField("sprytextfield23", "none");   
    } else {
        // if there is a validaiton in sprytextfield destory it, and clear the variable
        if(spryselect4 && spryselect4.destroy){
            spryselect4.reset();
            spryselect4.destroy();
            spryselect4 = null;
         if(sprytextfield15 && sprytextfield15.destroy){           
            sprytextfield15.reset();
            sprytextfield15.destroy();
            sprytextfield15 = null;
             if(sprytextfield17 && sprytextfield17.destroy){
            sprytextfield17.reset();
            sprytextfield17.destroy();
            sprytextfield17 = null;   
             if(sprytextfield18 && sprytextfield18.destroy){
            sprytextfield18.reset();
            sprytextfield18.destroy();
            sprytextfield18 = null;   
             if(sprytextfield19 && sprytextfield19.destroy){
            sprytextfield19.reset();
            sprytextfield19.destroy();
            sprytextfield19 = null;   
             if(sprytextfield21 && sprytextfield21.destroy){           
            sprytextfield21.reset();
            sprytextfield21.destroy();
            sprytextfield21 = null;   
             if(sprytextfield22 && sprytextfield22.destroy){           
            sprytextfield22.reset();
            sprytextfield22.destroy();
            sprytextfield22 = null;   
             if(sprytextfield23 && sprytextfield23.destroy){           
            sprytextfield23.reset();
            sprytextfield23.destroy();
            sprytextfield23 = null;   
    // proceed with the rest as normal
    return true;
When the user selects "1". All the fields listed above become required. But when they select an option other than "1". Only the first field( spryselect4) reverts back to not being required. All the other fields remain required.
Anyone have a clue... I am stumped.

Similar Messages

  • Spry Conditional Validation of Txt Boxes When Using Show/Hide

    Hi everyone.. just a quick question (if their is such a thing) if that is ok...
    I have been working on this single issue for 3 days.. it is driving me mad and hoped someone may be able to point me in the right direction...
    I have a form and it has a radio button with 3 options (about relationship status):
    Married
    Defacto
    Single
    If they select married a text box appears with Enter spouses first name;
    If they select defacto a text box appears with Enter partners first name..
    If single no text box appears..
    User then clicks on next to go to next page..
    All good.. except.. I am using DW CS4 and using spry to validate both txt boxes (spouses first name and partner first name).. problem is only one will be displayed depending on the option selected – Married or defacto.. spry tries to validate both even the hidden one and therefore will not allow the user to go to next page.. as at least one not completed..
    I have spent almost 3 days trying to write a php/java if statement to get spry to only validate text box 1 or 2 if radio button says married, defacto or single etc..
    I would really really really apperciate your input about how I should do this as it is driving me nuts!!!
    Anyway thanks and really hope to hear from someone..
    Cheers from Downunder
    UPDATE:
    Been playing and got this to work:
    <script type="text/javascript">
    function decision(){
    if(document.martial_status.martial_status[0].checked) {
    <!--
    var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1", "none", {validateOn:blur});
    //-->
    sprytextfield1.reset();
    } else if(document.martial_status.martial_status[1].checked) {
    } else if(document.martial_status.martial_status[2].checked) {
    window.alert("test3");
    } else {
    window.alert("Pick something!!");
    // -->
    </script>
    BUT (and always a but).. if person goes back and selects say single rather then married after already clicking married the spry error msg is already in place for married.. and person cannot go to next page.. The joys.. tried martial_statur.reset and destroy and does clear the error message but still does not allow user to go to next page..
    Any thoughts? Thanks in advance..

    You can destory the validation:
    sprytextfield1.destroy();
    and it should validate.

  • Conditional Validation using Spry

    When are we going to see things like conditional validations in DW using spry?
    I am by no means a developer and enjoy using DW for its simplicity but I have a situation at the moment wherby I need to make a text box required if a checkbox group or radio button group is ticked and on top of this I also need to make another textbox required if any of a number of groups are answered 'yes'
    If anyone has any help they can give me to achieve my goal I would be very grateful.
    Also if anyone from Adobe has an answer to my opening question then that would be great
    Thanks

    blandad1976 wrote:
    When are we going to see things like conditional validations in DW using spry?
    I am by no means a developer and enjoy using DW for its simplicity but I have a situation at the moment wherby I need to make a text box required if a checkbox group or radio button group is ticked and on top of this I also need to make another textbox required if any of a number of groups are answered 'yes'
    If anyone has any help they can give me to achieve my goal I would be very grateful.
    Also if anyone from Adobe has an answer to my opening question then that would be great
    Thanks
    Seek and ye shall find!  See here http://forums.adobe.com/message/2978837#2978837
    Gramps

  • Conditional Spry Confirm Validation

    Hi Chaps,
    I know there are a few of these threads about, however, the answers usually point to a 404 webpage.
    I'm after a conditional Spry Confirm Validation Text Field.
    E.G. if a user decides to change a password, the (required) confirm validation comes into effect.
    If anyone can point me in the right direction, it would help me out.
    Many thanks
    Samuel

    never mind, found this: http://forums.adobe.com/message/2983481#2983481#2983481

  • UI Datepicker and Spry textfield Validation

    Hi, I am having a problem with using the UI Date picker and Spry textfield Validation together. I have created a sample form: 2 input boxe, the test box has the datepicker and spry validation and test2 has the date picker only,one submit button and some php code that echos the boxes values on submit.
    My date picker is date formated as 'yy-mm-dd' for four digit year.  My spry validation is formated 'yyyy-mm-dd' with validate on submit.
    Now when I click on the test input box the datepicker comes up normally and i select a date. I then select the date on test2. Once I click the submit button the test field with spry validation come back saying a value is required and nothing else happens.
    I was playing around and trying other things to get it to work and I noticed that when I select the test inputbox and the calander pops up if I enter some numbers into the text box then select a date from the datepicker then enter a date in the test2 inputbox and hit submit it works.
    So it appears to me that the validation is not reading anything in the test field when I just select a date.  Why is that?  When I select a date it shows a date in the inputbox.  It makes it hard to use the datepicker on a form.
    Any help would be a preciated.  Code is below.
    Thanks Winrol
    <?php echo "Test box 1 value = ". $_POST['test']. "<br/>" ?>
    <?php echo "Test box 2 value = ". $_POST['test2'] ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Untitled Document</title>
    <script src="jquery-ui-1.7.2/js/jquery-1.3.2.min.js" type="text/javascript"></script>
    <script src="jquery-ui-1.7.2/js/jquery-ui-1.7.2.min.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
    <link href="jquery-ui-1.7.2/css/base/ui.core.css" rel="stylesheet" type="text/css" />
    <link href="jquery-ui-1.7.2/css/base/ui.datepicker.css" rel="stylesheet" type="text/css" />
    <link href="jquery-ui-1.7.2/css/base/ui.theme.css" rel="stylesheet" type="text/css" />
    <link href="jquery-ui-1.7.2/css/base/ui.datepicker.images.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    /* BeginOAWidget_Instance_2137022: #datepicker */
    #datepicker .ui-widget {
    font-family: inherit;
    #datepicker .ui-datepicker {
    font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
    #datepicker .ui-datepicker-title {
    font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
    font-size: 1.1em;
    color: #000;
    font-weight: normal;
    line-height: 1.8em;
    #datepicker .ui-state-default, .ui-widget-content .ui-state-default {
    border-color: #e6e6e6;
    background-color: #e6e6e6;
    color: #555555;
    #datepicker .ui-state-default, .ui-state-default a {
    color: #555555;
    #datepicker .ui-state-highlight, .ui-widget-content .ui-state-highlight {
    border-color:#FCEFA1;
    background-color:#FCEFA1;
    color:#363636;
    #datepicker .ui-state-active, .ui-widget-content .ui-state-active {
    border-color: #FFFFFF;
    background-color: #FFFFFF;
    color: #212121;
    #datepicker .ui-state-hover, .ui-widget-content .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus
    border-color: #5F5F5F;
    background-color: #5F5F5F;
    color: #212121;
    #datepicker .ui-widget-header
    border-color: #5F5F5F;
    background-color: #808080;
    border-width: 1px;
    /* Text attributes for the Days of Week Text */
    #datepicker .ui-datepicker table th
    font-size: .8em;
    color: #000;
    font-weight: bold;
    /* EndOAWidget_Instance_2137022 */
    </style>
    <script type="text/xml">
    <!--
    <oa:widgets>
      <oa:widget wid="2137022" binding="#datepicker" />
    </oa:widgets>
    -->
    </script>
      <script type="text/javascript">
    // BeginOAWidget_Instance_2137022: #datepicker
    $(function() {
    $('input').filter('.datepicker').datepicker({dateFormat: 'yy-mm-dd'});
    // EndOAWidget_Instance_2137022
      </script>
    <link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    body {
    background-color: #FFC;
    </style>
    </head>
    <body>
    <form id="form1" name="form1" method="post" action="">
      <p>
        <label for="test">test</label>
        <span id="sprytextfield1">
        <input name="test" type="text" class="datepicker" id="test"/>
        <span class="textfieldRequiredMsg">A value is required.</span><span class="textfieldInvalidFormatMsg">Invalid format.</span></span></p>
      <p>
        <label for="test2">test2</label>
        <input name="test2" type="text" id="test2"  class="datepicker" />
      </p>
      <p onclick="<?php echo $_POST['test'] ?>">
        <input type="submit" name="submit" id="submit" value="Submit" />
      </p>
    </form>
    <script type="text/javascript">
    var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1", "date", {format:"yyyy-mm-dd", hint:"yyyy-mm-dd"});
    </script>
    </body>
    </html>

    This does work
    <!DOCTYPE HTML>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Untitled Document</title>
    <link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet">
    <link href="jquery-ui-1.7.2/css/base/ui.core.css" rel="stylesheet">
    <link href="jquery-ui-1.7.2/css/base/ui.datepicker.css" rel="stylesheet">
    <link href="jquery-ui-1.7.2/css/base/ui.theme.css" rel="stylesheet">
    <link href="jquery-ui-1.7.2/css/base/ui.datepicker.images.css" rel="stylesheet">
    </head>
    <body>
    <form action="" method="post">
    <span id="sprytextfield1">
    <label for="mydate">Date:</label>
    <input id="datepicker" name="mydate" type="text">
    <span class="textfieldRequiredMsg">A value is required.</span><span class="textfieldInvalidFormatMsg">Invalid format.</span></span>
    <div id="datepicker" class="ui-glass-gradient ui-80TopTo0Bottom-gradient-header"></div>
    <input name="mysubmit" type="submit">
    </form>
    <script src="SpryAssets/SpryValidationTextField.js"></script>
    <script src="jquery-ui-1.7.2/js/jquery-1.3.2.min.js"></script>
    <script src="jquery-ui-1.7.2/js/jquery-ui-1.7.2.min.js"></script>
    <script>
    var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1", "date", {format:"mm/dd/yyyy", validateOn:["change"], useCharacterMasking:true});
    $(function() {
        $('#datepicker').datepicker({ showOtherMonths: false });
    </script>
    </body>
    </html>
    Gramps

  • Conditional Validation on Textfield(s) based on Select/List - help needed.

    Hey Gang,
    I have a simple page where a select/list menu with values "1" through "5" determines how many following textfields require validation. There is an "onchange" event which calls a function to update the validation. Below is my code:
    [ body tag *spry js/css scripts are called in head]
    <form id="form1" name="form1" method="post" action="">
      <p>
          <select name="menu" id="menu" onchange="menuFunction()">
            <option value="0" selected="selected">0</option>
            <option value="1">1</option>
            <option value="2">2</option>
            <option value="3">3</option>
            <option value="4">4</option>
            <option value="5">5</option>
          </select>
      </p>
      <p>
        <span id="sprytextfield1"><input type="text" name="text1" id="text1" /></span><br />
        <span id="sprytextfield2"><input type="text" name="text2" id="text2" /></span><br />
        <span id="sprytextfield3"><input type="text" name="text3" id="text3" /></span><br />
        <span id="sprytextfield4"><input type="text" name="text4" id="text4" /></span><br />
        <span id="sprytextfield5"><input type="text" name="text5" id="text5" /></span>
      </p>
    <p><input type="submit" name="submit" id="submit" value="Submit" /></p>
    </form>
    <script type="text/javascript">
    <!--
    function menuFunction() {
          var menuNum = document.getElementById('menu').value;
         for(i=1; i<=5; i++) {
               if(i<=menuNum) {
                    eval("var sprytextfield" +i+ "= new Spry.Widget.ValidationTextField(\"sprytextfield" +i+ "\")" );
               } else {
                   eval("var sprytextfield" +i+ "= new Spry.Widget.ValidationTextField(\"sprytextfield" +i+ "\", \"none\", {isRequired:false})" );
    //-->
    </script>
    [ / body tag etc... ]
    The function seems to work when it requires the validation for the textfields, but not when removing the validation. I've tried doing  eval("sprytextfield" +i+ ".destroy()"); as well without success.
    I've searched through forums and could not find an answer to this (sorry if I missed it)  ... so hopefully somebody can point me in the right direction. (*I found the post w/ the link http://www.spry-it.com/examples/spry-widget-validation-generation-and-destroy/ -- however that page doesn't seem to work *Chrome)
    Thanks for any help! =)
    ~Mike

    Have a look here http://forums.adobe.com/message/2651124#2651124
    If that doesn't help please come back here.
    Ben

  • Spry textfield validation

    Hi, how can I modify this code for the spry textfield validation.js file? My text field is set to yyyy-mm-dd.  When I enter a date and hit the submit button all works well but, how can I modify this portion of the .js file so the date yyyy-mm-dd is not less than today's date?
    ===================
    'date': {
    validation: function(value, options) {
    var formatRegExp = /^([mdy]+)[\.\-\/\\\s]+([mdy]+)[\.\-\/\\\s]+([mdy]+)$/i;
    var valueRegExp = this.dateValidationPattern;
    var formatGroups = options.format.match(formatRegExp);
    var valueGroups = value.match(valueRegExp);
    if (formatGroups !== null && valueGroups !== null) {
    var dayIndex = -1;
    var monthIndex = -1;
    var yearIndex = -1;
    for (var i=1; i<formatGroups.length; i++) {
    switch (formatGroups[i].toLowerCase()) {
    case "dd":
    dayIndex = i;
    break;
    case "mm":
    monthIndex = i;
    break;
    case "yy":
    case "yyyy":
    yearIndex = i;
    break;
    if (dayIndex != -1 && monthIndex != -1 && yearIndex != -1) {
    var maxDay = -1;
    var theDay = parseInt(valueGroups[dayIndex], 10);
    var theMonth = parseInt(valueGroups[monthIndex], 10);
    var theYear = parseInt(valueGroups[yearIndex], 10);
    // Check month value to be between 1..12
    if (theMonth < 1 || theMonth > 12) {
    return false;
    // Calculate the maxDay according to the current month
    switch (theMonth) {
    case 1: // January
    case 3: // March
    case 5: // May
    case 7: // July
    case 8: // August
    case 10: // October
    case 12: // December
    maxDay = 31;
    break;
    case 4: // April
    case 6: // June
    case 9: // September
    case 11: // November
    maxDay = 30;
    break;
    case 2: // February
    if ((parseInt(theYear/4, 10) * 4 == theYear) && (theYear % 100 != 0 || theYear % 400 == 0)) {
    maxDay = 29;
    } else {
    maxDay = 28;
    break;
    // Check day value to be between 1..maxDay
    if (theDay < 1 || theDay > maxDay) {
    return false;
    // If successfull we'll return the date object
    return (new Date(theYear, theMonth - 1, theDay));   //JavaScript requires a month between 0 and 11
    } else {
    return false;
    ======================
    Thanks Winrol

    V1 Fusion wrote:
    > Yes you can use regular expessions:
    >
    > function validatePhone(value){
    > return
    >
    /^(((\+44\s?\d{4}|\(?0\d{4}\)?)\s?\d{3}\s?\d{3})|((\+44\s?\d{3}|\(?0\d{3}\)?)\s?
    >
    \d{3}\s?\d{4})|((\+44\s?\d{2}|\(?0\d{2}\)?)\s?\d{4}\s?\d{4}))(\s?\#(\d{4}|\d{3})
    > )?$/.test(value)
    > }
    >
    > var custom = new Spry.ValidationTextField(id, "custom",
    {validation:
    > validatePhone, validateOn:["blur", "change"]})
    >
    > regexp from
    http://regexlib.com/
    Excellent, thank you, that will get me in the right
    direction. Its not
    100%, but I think I can tinker with an expression to get what
    I want.
    The number is couldn't handle is +44 (0)113 255 7666 but its
    not an
    approved format anyway, but lots of companies still do it
    this way, so I
    want to ensure I get it right.
    Thanks again!
    Dooza
    Posting Guidelines
    http://www.adobe.com/support/forums/guidelines.html
    How To Ask Smart Questions
    http://www.catb.org/esr/faqs/smart-questions.html

  • Join condition validation error in owb 10gR2

    Hi friends,
    When I tried to validate the join condition in the mapping im getting the below error like
    an error occurred during expression validation, bad expression return type
    When I googled for the above error, I got the below link mentioning like a bug for that join condition validation problem
    https://forums.oracle.com/thread/717194
    In which it is mentioned like a BugNo: 7417869 for that issue.
    Is there any fix for that bug??
    Thanks in advance.
    Brgds,
    Mini

    Dear Allan,
    Happy to get reply from you and sorry for my late reply as im been stuck with other work
    Like you said, I downloaded the required patch 4898608 for the validation bug in mapping with owb 10.2.0.4. By viewing the readme.txt file of the patch I followed the below steps like
    Set the ORACLE_HOME environment variable to point to the OWB Home
    Add $ORACLE_HOME/OPatch  in the PATH
    Stopped the runtime service using the supplied SQL*PLUS script stop_service.sql as a rep_owner
          OWB_HOME/rtp/sql/stop_service.sql
    After the above three steps I applied the opatch like below in cmd prompt
    C:\orahome\10gR3_1\OPatch>opatch version
    Invoking OPatch 10.2.0.4.9
    OPatch Version: 10.2.0.4.9
    OPatch succeeded.
    C:\OraHome_1\OPatch>opatch apply
    Invoking OPatch 10.2.0.4.9
    Oracle Interim Patch Installer version 10.2.0.4.9
    Copyright (c) 2009, Oracle Corporation.  All rights reserved.
    Oracle Home       : C:\OraHome_1
    Central Inventory : C:\Program Files (x86)\Oracle\Inventory
       from           : n/a
    OPatch version    : 10.2.0.4.9
    OUI version       : 10.2.0.1.0
    OUI location      : C:\OraHome_1\oui
    Log file location : C:\OraHome_1\cfgtoollogs\opatch\opatch2013-06-24_18-14-27PM.
    log
    Patch history file: C:\OraHome_1\cfgtoollogs\opatch\opatch_history.txt
    Failed to load the patch object.  Possible causes are:
      The specified path is not an interim Patch shiphome
      Meta-data files are missing from the patch area
      Patch location = C:\OraHome_1\OPatch
      Details = PatchObject constructor: Input file "C:\OraHome_1\OPatch\etc\config\
    actions" or "C:\OraHome_1\OPatch\etc\config\inventory" does not exist.
    ApplySession failed: PatchObject constructor: Input file "C:\OraHome_1\OPatch\et
    c\config\actions" or "C:\OraHome_1\OPatch\etc\config\inventory" does not exist.
    System intact, OPatch will not attempt to restore the system
    OPatch failed with error code = 73
    C:\OraHome_1\OPatch>
    Im not sure why the above error is occuring, kindly help me with that error.
    Thanks in advance.
    Brgds,
    Mini

  • Conditional validation?

    Hi folks, is it possible using Spry to specify that either a
    text field should be filled in OR a checkbox be checked? The
    real-world example is either requiring the price of a car to be
    filled in or the user has to check a checkbox "POA" which indicates
    the vehicle price is available on application. It looks like Spry
    only allows me to specify that the price field is required or not,
    and the checkbox is required or not, and there seems to be no way
    to allow for one of the two to be filled in... is this a hard and
    fast limitation, or does someone perhaps know of a way I could do
    it?
    Thanks in advance, you folks are awesome!

    Why don't you generate the validation when the checkbox is
    clicked
    <input onclick="buildValidation()" />
    var textfield;
    function(){
    if(this.checked){
    textfield = new Spry.Widget.Validation('bla','e-mail');
    } else {
    if(textfield)
    try{textfield.destroy()}catch(e){}
    basicly if the checkbox is checked it creates a new
    validation for your textfield, else it will destory the validation
    if there is one found.

  • Conditional Validation using JSLink

    I have a User field and a Choice field in a list.  When the Choice field has the option "A" selected I want the User field to be mandatory.  Validation formulas in lists cannot use User field data types so this is not an option.  Is
    JSLink the way to go?  If so how would I implement conditional validation?  I can find examples of simple regex validation but nothing that helps to do conditional validation.
    Caroline

    Hi,
    According to your post, my understanding is that you want to set the User field automatically when the Choice field select a value.
    We can use jQuery to achieve it. Using jQuery .Change() method to monitor the choice, then set the value for the User field.
    The following articles for your reference:
    http://runnable.com/Ue9c4krQF7VjAAAP/how-to-get-selected-option-using-jquery
    http://jasonscript.wordpress.com/2013/08/07/javascript-and-working-with-the-sharepoint-2013-people-picker/
    Thanks,
    Dennis Guo
    TechNet Community 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]
    Dennis Guo
    TechNet Community Support

  • Conditional validation for drop down list

    Hi all,
    I have been working on getting the conditional validation for drop down list to work but no luck. Here is my situation. I have a page with 'time' and 'source' drop down which contains a list of values along with null value. I have two buttons 'save' and 'close'. when a User clicks on 'Save' button, no checking should occur and the values filled in the form should be stored into the database. When a user clicks on 'Close' button, validation should occur and messages should be displayed saying 'values should be filled' . After the user fills each drop down list and hits close button, changes should be saved to the database. I used the technique posted by Jayashri and wrote the validation code in 'Close button action method'
    Here is my code
    public String btnClose_action() {
    // TODO: Replace with your code
    try {
    if (ddlTime.getSelected() == null || ddlTime.getSelected().equals("")) {
    FacesMessage message3 = new FacesMessage("Please select a value");
    message3.setSeverity(FacesMessage.SEVERITY_ERROR);
    getFacesContext().addMessage(ddlTime.getClientId(getFacesContext()), message3);
    return null;
    if (ddlSourceReq.getSelected() == null || ddlSourceReq.getSelected().equals("")) {
    FacesMessage message4 = new FacesMessage("Please select a value");
    message4.setSeverity(FacesMessage.SEVERITY_ERROR);
    getFacesContext().addMessage(ddlSourceReq.getClientId(getFacesContext()), message4);
    return null;
    sendMail("close");
    } catch (Exception ex) {
    return null;
    public String btnSave_action() {
    // TODO: Process the button click action. Return value is a navigation
    // case name where null will return to the same page.
    sendMail("save");
    return null;
    I did not set the 'required' property of both the drop downs and I dont have any message components in the page. How do I get this to work. Please help.
    Thanks,
    S

    Hi,
    Try this
    HTP.p('
    function validate_form_fields()
    var validation = true;
    if (document.forms[0].fld_1.options[document.forms[0].fld_1.selectedIndex] == null )
    validation = false;
    alert("Selection of FLD1 is mandatory.");
    if (document.forms[0].fld_2.options[document.forms[0].fld_2.selectedIndex] == null )
    validation = false;
    alert("Selection of FLD 2 is mandatory.");
    return validation;
    ');If the above does not work, it could be the definition of the your fld_1 select - options. Looks like they allow null values, and if null is not the first option then selectIndex = 0 will be a not null option by default.
    Moreover, the below has redundant condition as ==0 and &lt; 1 amount to the same thing. selectIndex cannot be negative.
    if ((document.forms[0].fld_1.selectedIndex == 0 ) || (document.forms[0].fld_1.selectedIndex < 1 ))Regards,

  • Mass change Condition valid to dates into Info record

    Hi,
    is there any mass changes for condition validity to dates into purchase info record?????
    i have check into MEMASSIN, there is field for conditions valid to Date,
    Pl. guide .
    Regards,
    Devendra

    Hi,
    It is not possible to  change validity date using MEMASSIN - Mass Maintenance t code.
    You need to create LSMW with recording method to achieve this. we are doing the same.
    It is very easy. And take care that while recording select the validity button and click executive to record the do not double click on the validity tab.
    Reg

  • MM rebate condition validity

    Hi,
    I have the scenario whereby a vendor give a rebate, for a selected period.  within that perios they may grant additional rebate  ie agreement over 1 year - but for august they give higher rebate value.  how can i set this up ?  Im using A002 condition but i cant enter condition validity periods.
    any help appreciated.  No vague answers please.
    cheers
    Graham

    Amy,
    Do you mean to say, you can see the rebate conditions in the item conditions of the invoice before it was released to accounting  and after releasing to accounting they disappeared from the item conditions ?
      I'm sure it shouldn't happen. If it disappears it should disappear irrespective of the release to accounting.
    Analyze the pricing at the item condition level why the rebate conditions doesn't show up.
    If it didn't' work please let me understand your problem..
    Regards,
    Aj.

  • ME47 price = 0 in overview when condition valid in future

    Hi Expert,
    I have a quotation with item 10 and 20 with the same material. When I update item 10 price with 1 and item 20 price with 2, the item 20 price will change to zero and gray. The info record also can not see any update in item 20. infoUpdate is "C".
    Item
    Material #
    Price
    Date from
    Date to
    10
    A
    1
    2015/5/5
    2015/5/6
    20
    A
    2
    2015/5/7
    2015/5/31
    I also checked below notes are implement in my system.
    586030 - ME47: price = 0 in overview when condition valid in future
    360746 - ME47: Update conditions in the info record
    428245 - ME47: Maintaining conditions, SAPSQL_ARRAY_INSERT_DUPREC
    Thanks,
    Leon

    You system is behaving correctly.
    You can see the net price = 0 at overview level, but you can see the original price at details condition level.
    You second line item's condition record is not valid for today's date, that's because it is showing 0 for overview screen. I hope your RFQ document date = 05.05.2015.
    For first line item, your condition record has validity = 05.05.2015 to 06.05.2015. (which is valid for today's date)
    For second line item, your condition record has validity = 07.05.2015 to 31.05.2015 (which is not valid for today's date)
    Change the valid from of the second line item = 05.05.2015, then you can see the price at overview screen.

  • Help with conditional Spry Form Validation

    Hi,
    I am creating some validation for this form and need some help.
    Need to require a finish to be selected if a qty is selected and visa versa.
    I have got this part working but can't get it to destroy the validation if the qty/finish is added and then removed.
    Here is the code for just the 2 fields:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
    <title>Deleting and rebuilding validations</title>
    <script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" />
    <script src="SpryAssets/SpryValidationSelect.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryValidationSelect.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
    // build validations and delete / destroy them
    function val(e){
         // get the value
         value = e.value;
            //check if value is greater than 0
          if (value>= 1 ){
              // if it is then turn on validation
                  var spryselect1 = new Spry.Widget.ValidationSelect("spryselect1", "none", {isRequired:true});
            return true;
    function val2(e){
         value = e.value;       
          if (value= "" ){
                  var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1", "integer", {isRequired:false});
            else { var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1", "integer", {isRequired:true}); }
            return true;
    </script>
    </head>
    <body>
    <form id="form1" method="post" action="#">
         <p><span id="spryselect1">finish:
             <select name="finish" id="finish" onclick="val2(this);" >
            <option>please select</option>
            <option value="6, Antique Wiluna White">Antique Wiluna White</option>
            <option value="12, Antique Wiluna White Gloss">Antique Wiluna White Gloss</option>
            <option value="2, Charred Oak">Charred Oak</option>
            <option value="10, Charred Oak Gloss">Charred Oak Gloss</option>
            <option value="5, Gentle Beige">Gentle Beige</option>
            <option value="1, Refined Oak">Refined Oak</option>
            <option value="9, Refined Oak Gloss">Refined Oak Gloss</option>
            <option value="4, Rocksalt">Rocksalt</option>
            <option value="7, Snowdrift">Snowdrift</option>
            <option value="13, Snowdrift Gloss">Snowdrift Gloss</option>
            <option value="3, Vicenza Walnut">Vicenza Walnut</option>
            <option value="11, Vicenza Walnut Gloss">Vicenza Walnut Gloss</option>
            <option value="14, 2 Pack Gloss White">2 Pack Gloss White</option>
          </select>
             qty:
    </span><span id="sprytextfield1">
    <input type="text" name="qty" id="qty"  onblur="val(this);" />
    </span>
    <input type="submit" value="Submit" />
    </p>
    </form>
    <script type="text/javascript">
    var sprytextfield1, spryselect1;
    </script>
    </body>
    </html>
    Also is there a shortcut so this doesn't have to be repeated for all 80 or so fields?
    Cheers

    I am very busy at the moment with having a few projects on hand. Maybe the following example will help you. If not, please come back here.
    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Deleting and rebuilding validations</title>
    <link href="http://labs.adobe.com/technologies/spry/widgets/textfieldvalidation/SpryValidationTextFiel d.css" rel="stylesheet">
    </head>
    <body>
    <form id="form1" method="post" action="#">
      <p>
        <input type="radio" name="radio" id="Married" value="Married" onclick="val(this);">
        <label for="Married">Married</label>
      </p>
      <p>
        <input type="radio" name="radio" id="Defacto" value="Defacto" onclick="val(this);">
        <label for="Defacto">Defacto</label>
      </p>
      <p>
        <input type="radio" name="radio" id="Single" value="Single" onclick="val(this);">
        <label for="radio">Single</label>
      </p>
      <hr>
      <span id="sprytextfield1">
        <label for="f_married">Married</label>
        <input name="married" id="f_married" type="text" value="">
        <span class="textfieldRequiredMsg">A value is required.</span>
      </span>
      <span id="sprytextfield2">
        <label for="f_defacto">Defacto</label>
        <input name="defacto" id="f_defacto" type="text" value="">
        <span class="textfieldRequiredMsg">A value is required.</span>
      </span>
      <span id="sprytextfield3">
        <label for="f_single">Single</label>
        <input name="single" id="f_single" type="text" value="">
        <span class="textfieldRequiredMsg">A value is required.</span>
      </span>
      <hr>
      <input type="submit" value="Submit" />
    </form>
    <script src="http://labs.adobe.com/technologies/spry/includes_minified/SpryValidationTextField.js"></script>
    <script>
    var sprytextfield1,
            sprytextfield2,
            sprytextfield3;
    // build validations and delete / destroy them
    function val(e){
        // get the value
        value = e.value;
        // see what radion button we have
        if(value == "Married"){
            // if there inst a validaton build one
            if(!sprytextfield1){
                sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1");
            // if there is a validaiton in sprytextfield destory it, and clear the variable
            if(sprytextfield2 && sprytextfield2.destroy){
                sprytextfield2.resetClasses();
                sprytextfield2.destroy();
                sprytextfield2 = null;
            // same as the rest
            if(sprytextfield3 && sprytextfield3.destroy){
                sprytextfield3.resetClasses();
                sprytextfield3.destroy();
                sprytextfield3 = null;
        } else if(value == 'Defacto'){
            if(!sprytextfield2){
                sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2");
            if(sprytextfield1 && sprytextfield1.destroy){
                sprytextfield1.resetClasses();
                sprytextfield1.destroy();
                sprytextfield1 = null;
            if(sprytextfield3 && sprytextfield3.destroy){
                sprytextfield3.resetClasses();
                sprytextfield3.destroy();
                sprytextfield3 = null;
        } else if(value == 'Single'){
            if(!sprytextfield3){
                sprytextfield3 = new Spry.Widget.ValidationTextField("sprytextfield3");
            if(sprytextfield1 && sprytextfield1.destroy){
                sprytextfield1.resetClasses();
                sprytextfield1.destroy();
                sprytextfield1 = null;
            if(sprytextfield2 && sprytextfield2.destroy){
                sprytextfield2.resetClasses();
                sprytextfield2.destroy();
                sprytextfield2 = null;
        // proceed with the rest as normal
        return true;
    </script>
    </body>
    </html>
    Gramps
    Carn the Pies

Maybe you are looking for

  • Problems creating aggregation levels over a Multiprovider

    Hi experts, When I create a aggregation level over a multiprovider the system returns an error " Infoprovider XX cannot be used for definition". I have read other threads with the same question and its solutions. I have checked my system and all is c

  • JTree scrollPathToVisible() not working

    I have a fairly complex JTree that's working great, except when initially populated. The business rules I have to follow state the tree must scroll to the current selection, and more often than not it might be well down into the tree. The pane has ho

  • Multiple Context Paths Per Web Application

    Hi, We have a Web Application which has a Context Path of "titanadmin". We have some HTML pages which refer to this within the URLs they contain. We need to move the functionality in this Web Application to another Web Application with a Context Path

  • Qustion about the transparent table PRPS

    Hi experts,   I have a question about this table PRPS.   When I use SE11 to search some entries from this table,first,I input value for the field POSID on the selection screen,I can find out the entries;Then I copy the value of the field PSPNR and in

  • How do i transferr iphone contacts and music to new laptop?

    I have a new laptop and need to transfer music, contacts, itunes to new computer. How do I do that?