Javascript validation before MM_insert

I'm using Dreamweaver CS4, an ASP website and an Access database. I'm using the Dreamweaver generated code to manage the database update. I would like to use Javascript to validate the form before the MM_insert. Nothing I've tried works - the Javascript is completely ignored.
Here is the insert code:
<%
If (CStr(Request("MM_insert")) = "needavailadd") Then
  If (Not MM_abortEdit) Then
    ' execute the insert
    Dim MM_editCmd
    Set MM_editCmd = Server.CreateObject ("ADODB.Command")
    MM_editCmd.ActiveConnection = MM_eventCalendar_STRING
    MM_editCmd.CommandText = "INSERT INTO needAvail (naType, memName, city, [state], phone, email, info, eventID) VALUES (?, ?, ?, ?, ?, ?, ?, ?)"
    MM_editCmd.Prepared = true
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param1", 202, 1, 3, Request.Form("naType")) ' adVarWChar
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param2", 202, 1, 32, Request.Form("memName")) ' adVarWChar
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param3", 202, 1, 18, Request.Form("city")) ' adVarWChar
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param4", 202, 1, 2, Request.Form("state")) ' adVarWChar
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param5", 202, 1, 12, Request.Form("phone")) ' adVarWChar
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param6", 202, 1, 48, Request.Form("email")) ' adVarWChar
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param7", 202, 1, 75, Request.Form("info")) ' adVarWChar
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param8", 5, 1, -1, MM_IIF(Request.Form("eventID"), Request.Form("eventID"), null)) ' adDouble
    MM_editCmd.Execute
    MM_editCmd.ActiveConnection.Close
    End If
End If
%>
Should the validation code be inserted after the "Then" or called from there or someplace else? Any help would be appreciated.

I'm using Dreamweaver CS4, an ASP website and an Access database. I'm using the Dreamweaver generated code to manage the database update. I would like to use Javascript to validate the form before the MM_insert. Nothing I've tried works - the Javascript is completely ignored.
Here is the insert code:
<%
If (CStr(Request("MM_insert")) = "needavailadd") Then
  If (Not MM_abortEdit) Then
    ' execute the insert
    Dim MM_editCmd
    Set MM_editCmd = Server.CreateObject ("ADODB.Command")
    MM_editCmd.ActiveConnection = MM_eventCalendar_STRING
    MM_editCmd.CommandText = "INSERT INTO needAvail (naType, memName, city, [state], phone, email, info, eventID) VALUES (?, ?, ?, ?, ?, ?, ?, ?)"
    MM_editCmd.Prepared = true
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param1", 202, 1, 3, Request.Form("naType")) ' adVarWChar
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param2", 202, 1, 32, Request.Form("memName")) ' adVarWChar
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param3", 202, 1, 18, Request.Form("city")) ' adVarWChar
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param4", 202, 1, 2, Request.Form("state")) ' adVarWChar
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param5", 202, 1, 12, Request.Form("phone")) ' adVarWChar
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param6", 202, 1, 48, Request.Form("email")) ' adVarWChar
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param7", 202, 1, 75, Request.Form("info")) ' adVarWChar
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param8", 5, 1, -1, MM_IIF(Request.Form("eventID"), Request.Form("eventID"), null)) ' adDouble
    MM_editCmd.Execute
    MM_editCmd.ActiveConnection.Close
    End If
End If
%>
Should the validation code be inserted after the "Then" or called from there or someplace else? Any help would be appreciated.

Similar Messages

  • JavaScript validation/override red borders?

    We are creating numerous forms in LiveCycle and are very averse to having to specify "User Entered - Required" for two main reasons:
    doing so places those ugly, red boarders around required fields
    most fields on most forms are required, we don't want to clutter our forms with red borders
    The problem we encounter is that users can submit empty forms/null values via email, and I yet to find a way around this. Incomplete forms/data, particularly on things like requisitions and the like, can lead to delays in processing. We want to mitigate that by forcing client-side validation before users submit their forms via email.
    I am very new to both LiveCycle and JavaScript.
    I have tried
    fieldname.mandatory = "This cannot be left blank.";
    tied to the validate event, but this does not seem to do anything: users can still submit forms, even if the value is null/empty.
    Where this would most be used is with text and numeric fields and, occasionally, with radio buttons/exclusion groups.
    Can someone please help me figure out simple client-side JavaScript validation (or other method) that would force users to enter values in these mandatory fields before submitting, preferably without having to subject our users to the hideous borders?

    Thank you; a blog post I found contained the answer I was looking for. Essentially:
    Now you see me, now you don’t.
    Interactive forms highlight where you should enter data. To turn this highlighting on, click the Highlight Existing Fields button.
    The fillable fields within the form (see example below) are highlighted in a light blue color. This lets you enter information into these fields. By default, Adobe® Reader® displays a red border around required fields. Pretty dang ugly, huh?
    Fortunately, it can be turned off.  This script (placed on a form:ready event) will do the trick:
        if (xfa.host.name == "Acrobat")
    app.runtimeHighlight = false;
    Here’s how we achieve this:
    Part 1:
    In the Object palette, click the Value tab. Under Type, choose User Entered – Required.
    First, we need to define which fields are mandantory/required. Click within the desired field to select it.
    You can assign as many mandatory fields as the form requires. When you are finished doing this, enter the Script Editor.
              Note:   To show or hide the Script Editor window as you need it, click the toggle.
    Select the form:ready event. Be sure JavaScript is the chosen scripting language to run on the Client.
    Type the following script into the window:
        if (xfa.host.name == "Acrobat")       app.runtimeHighlight = false;
    Save your work.
    Part 2:
    From the File menu, choose Form Properties.
    Click the Form Validation tab.
                   Click Color Failed Fields.               Check the box next to Color fields and fail their validations.
    To turn borders off, click the arrow next to Border Color, then click the box.
    To define a background color, click the arrow next to Background Color, the choose More Colors.
    Select the first available empty box, then click Define Custom Colors.
    Define a custom color per your visual identity guidelines.
    When you are finished, click on Add to Custom Colors, then click OK.
    Click OK on the Form Properties window.
    Save your work.
    The result? When the user tries to submit a form without first entering data into the required fields, an alert message is displayed.
    When the user clicks OK to clear the error message, form submission is cancelled.
    Failed fields are highlighted in an attractive way—without red borders.

  • Client Side Javascript Validation not Working in Struts 1.x version

    hi,
    I'm following the steps provioded in the below link for Javascript Client side validation but still it is not working.I'm struggling to get this work.
    [http://www.visualbuilder.com/jsp/struts/tutorial2/pageorder/9/|http://www.visualbuilder.com/jsp/struts/tutorial2/pageorder/9/]
    "The framework automatically generates the browser specific JavaScript and validate the data only at the client side."From the above statement i undertstand that framework itself generates the javascript function for validating the field mentioned in validations.xml file so that we dont have to explicitly write a javascript function for
    validating the fields
    (or)
    Do we need to call an explicit function
    Please need help on this.
    I have followed all the steps mentioned on the above link but Client Side Javascript Validation not Working in Struts 1.x version....
    Thanks and Regards,
    Deepak

    Hi,
    Please find my steps below....still getting an error.
    2> which version of commons-validation.jar needs to be downloaded ...Link please
        downloaded the latest commons-validation.jar and placed in lib.refreshed the project,and did a build.
        3> which DTD name to be specified in "validator-rules.xml" which is in accordance to commons-validator.jar file.
    validator-rules.xml ::
    <!DOCTYPE form-validation PUBLIC
              "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.0//EN"
              "http://jakarta.apache.org/commons/dtds/validator_1_0.dtd">validation.xml:
    <!DOCTYPE form-validation PUBLIC
    "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.0//EN"
    "http://jakarta.apache.org/commons/dtds/validator_1_0.dtd">
    i did as u said and im gettiong the below errorNov 5, 2009 4:33:08 PM org.apache.struts.validator.ValidatorPlugIn initResources
    SEVERE: Invalid byte 2 of 2-byte UTF-8 sequence.
    org.apache.commons.digester.xmlrules.XmlLoadException: Invalid byte 2 of 2-byte UTF-8 sequence.
         at org.apache.commons.digester.xmlrules.FromXmlRuleSet.addRuleInstances(FromXmlRuleSet.java:139)
         at org.apache.commons.digester.Digester.addRuleSet(Digester.java:1610)
         at org.apache.commons.digester.xmlrules.DigesterLoader.createDigester(DigesterLoader.java:89)
         at org.apache.commons.validator.ValidatorResourcesInitializer.initialize(ValidatorResourcesInitializer.java:122)
         at org.apache.struts.validator.ValidatorPlugIn.initResources(ValidatorPlugIn.java:238)
         at org.apache.struts.validator.ValidatorPlugIn.init(ValidatorPlugIn.java:181)
         at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:1036)
         at org.apache.struts.action.ActionServlet.init(ActionServlet.java:455)
         at javax.servlet.GenericServlet.init(GenericServlet.java:212)
         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
         at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3996)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4266)
         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
         at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:927)
         at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:890)
         at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
         at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1150)
         at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
         at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
         at org.apache.catalina.core.StandardService.start(StandardService.java:448)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
    Need help forum members.....
    Please reply to my question 1  which has been asked before as belowDo i need to write explicit javascript function for validation in Struts (or) struts generates the javascript function by itself.??? Please explain with an example....
    Edited by: Deepak_A_L on Nov 5, 2009 4:37 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Validation before Digital Signature

    Hello everybody,
    I created a form in Lifecycle ES working like a charm.
    Now i have added a JavaScript for validating the entries in the Form.
    My idea is to launch the validation before the user enters the signature. When the signature is added the validation must have been passed successfully.
    I have begun with adding an event_enter JS to activate the validation.
    The Problem is that the signature dialogue box opens anyway. How can I get rid of this dialog box?
    Thank you for your kind help
    Best regards
                           Ch. Du Champs

    Please post in the LiveCycle Designer ES forum.

  • Content validation before uploading file

    Hi,
    We want to do some validations before uploading an excel file to OBIEE :
    1 - check the file extension
    2 - do some data validation on the content of the excel file.
    I succed in doing the first step by adding some javascript customization to OBIEE javascript files. However, i cant do the second step with javascript, because i need to read the excel file content and make connection to a database to perform the validation.
    Is there any way, to do the validation in server side so that i can read the excel file and make the database connection with a java code.
    Thanks.

    Hi,
    Actualy, users produces some informations about production. These informations are in excel files because there is no application for this business area. Also they want, throw OBIEE 11g portal, to upload their files them selves, have a validation workflow of the file in obiee, and then automatically copy excel files content in a oracle tables and create some reports on these tables.
    I dont know if these needs are possible in the obiee 11g platform, so i start doing a prototype. Now, i'am in the first step of uploading the excel file into a folder in the obiee catalog. However during the upload a file a need to do some technical validations (null values, numeric values, ...) and check if the value of a specific column exists in a table on an other database.
    Therefor, the xls file is not a variable it's uploaded every time a user wants it. The production environnement of obiee 11g is AIX, however for the prototype, i will user an environnement on windows.
    Thanks.

  • Can we apply custom validation before uploading data in WebADI in 12.1.3

    Hi,
    I have requirement of applying custom validation before uploading data from spreadsheet using webADI. How can we do that.
    Is there any way in desktop Integration Manager Responsibilty in WebADI.
    I have just started exploring webADI
    Please Help Me...
    Thanks,
    Suhani

    Why are you posting this in OAF?
    Anyway you can by creating a custom PL/SQL wrapper that is called by the WebADI.
    Raise an application ERROR in your wrapper and it will show in the WebADI
    If you just want to validated VALUES, you are better of creating an LOV on the Column. Then WebADI will do the validation work for you.
    Jeroen

  • How to give a javascript alert befor doing any insert or update

    Hi,
    Is there any way to give a javascript alert befor doing any insert or update? I want to use default insert/update button.
    Thank you
    Sumita

    just add:
    alert('Updating Record...');
    in the onClick event field for the UPDATE_TOP/UPDATE_BOTTOM button.
    You can do the same for the INSERT_TOP/INSERT_BOTTOM button. Adding javascript code in the event fields will not supersede the default PL/SQL events assigned to those buttons, unless you specifically remove the PL/SQL code (e.g. doUpdate;)..

  • How to put javascript validation in the text form ?

    Hi,
    I would like to validate 1 of the field in the interactive form. where i can put the javascript validation script ?
    f.setAction(
    "Validate",
    u2018AFRange_Validate(true, 0, true, 100)u2019
    and also can i force setfocus() in the formal javascript in the interactive forms ? so if the validation not correct the user cannot quit from the field.
    Thank You and Best Regards
    Fernand Lesmana

    Hi
    Use the exit event.
    You can set focus to the fields as
    xfa.host.setFocus(xfa.form.form1.TextField);
    Kind Regards
    Mukesh

  • How to implement JavaScript validation in JSF

    Dear all,
    if i wish to implement JavaScript front end validation function in JSF. what should i do?
    thanks.

    Hi,
    in Core JSF from David Geary there is a chapter on using
    Jakarta Commons Validator for javaScript validation
    source could be found here:
    http://www.horstmann.com/corejsf/
    HTH,
    Matthias

  • FICO: Validations Before Saving in FB02

    Hi ,
    This is Prabhu from Pepsi,i need some information regarding validations Before Saving the Documents in FB02.We have BTE events in our sap systems for F-32 and Others not for FB02.
    1.Now i want to change Profit Center of The Documents in FB02.How can i Do.
    2.Can i Use same BTE 'OPEN_FI_PERFORM_00001025_E' for this FB02 also.If not how can do.
    i am waiting for Ur reply.
    regards
    Prabhu
    [email protected]
    09891598349

    Hi Prahbu,
    i think it's not possible to change profit center / cost center in fi-document because of the dependencies in other applications (here: CO )
    -> look here <a href="http://help.sap.com/saphelp_47x200/helpdata/en/96/8b453243ce11d189ee0000e81ddfac/frameset.htm">Changing Documents</a>
    regards Andreas

  • How to do Javascript validations in JSF

    Hi ,
    I want to know about the javascript validation in JSF. I want to know simple validations like field should not be empty.
    I have a problem with my code can any one suggest me on this. for your reference here i'm attaching my code.
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
    <f:view>
         <%@ include file="../includes/header.jsp"%>
         <h:form id="createForm">
              <script>   
             function validate() { 
                 if((document.createForm.courseId.value=='') ||(document.createForm.courseId.value==null))
                    alert("Please Enter Course Id");     
                     return false; 
                 if(document.createForm.fileName.value=='')
                    alert("Please Enter File Name");     
                     return false; 
                   retutrn true;
                         </script>
              <table width="768" height="100%" border="0" cellpadding="0"
                   cellspacing="0">
                                  <tr>
                                                      <td width="200" height="25" align="left" class="formtext">
                                                           Course Id:
                                                      </td>
                                                      <td height="25" align="left">
                                                           <h:inputText id="courseId"  value="#{bean.courseId}"  required="true"  />
                                                      </td>
                                                 </tr>
                                                 <tr>
                                                      <td width="200" height="25" align="left" class="formtext">
                                                           File Name:
                                                      </td>
                                                      <td height="25" align="left">
                                                           <h:inputText id="fileName" value="#{bean.fileName}" />
                                                      </td>
                                                 </tr>
                                            </table>
                                  <tr>
                                       <td colspan="2" align="center" class="formtext">
                                            <h:commandButton value="Create"
                                                 action="#{control.getSelectedItems}"
                                                 onclick=" return validate();" />
                                       </td>
                                  </tr>
                             </table>
                        </td>
                        <td width="12" valign="top" background="images/tile_left_right.jpg">
                             <img src="images/tile_left_right.jpg" width="6" height="1" />
                        </td>
                   </tr>
              </table>
         </h:form>
         <%@ include file="../includes/footer.jsp"%>
    </f:view>

    Have you checked the element ID's? Maybe you have overlooked the woodstocked ID's. Look in the generated HTML source and base your Javascript on this.

  • How to do javascript validation in jsp

    Hi everybody, i have done javascript validation in html but i dont know how to validate this jsp page.
    <%@ page language="java" contentType="text/html;charset=UTF-8"%>
    <%@taglib uri="http://beehive.apache.org/netui/tags-html-1.0" prefix="netui"%>
    <%@taglib uri="http://beehive.apache.org/netui/tags-databinding-1.0" prefix="netui-data"%>
    <%@taglib uri="http://beehive.apache.org/netui/tags-template-1.0" prefix="netui-template"%>
    <netui:html>
         <head>
              <netui:base/>
         </head>
    <netui:body>
    <netui:form action="skippedAccessories">
    <netui:hidden dataSource="actionForm.location.city" dataInput="${request.phoneAccessoriesForm.location.city}"/>
    <netui:hidden dataSource="actionForm.location.state" dataInput="${request.phoneAccessoriesForm.location.state}"/>
    <netui:hidden dataSource="actionForm.location.zip" dataInput="${request.phoneAccessoriesForm.location.zip}"/>
    <netui:hidden dataSource="actionForm.plan.type" dataInput="${request.phoneAccessoriesForm.plan.type}"/>
    <netui:hidden dataSource="actionForm.plan.id" dataInput="${request.phoneAccessoriesForm.plan.id}"/>
    <netui:hidden dataSource="actionForm.plan.title" dataInput="${request.phoneAccessoriesForm.plan.title}"/>
    <netui:hidden dataSource="actionForm.phone.modelID" dataInput="${request.phoneAccessoriesForm.phone.modelID}"/>
    <netui:hidden dataSource="actionForm.phone.modelTitle" dataInput="${request.phoneAccessoriesForm.phone.modelTitle}"/>
    <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="75%">
    <tr>
    <td align="center">
    <netui-data:getData resultId="imageFileName" value="${request.phoneAccessoriesForm.imageFileName}"/>
    <%
    String imageFileName = (String) pageContext.getAttribute("imageFileName");
    String img1 = request.getContextPath() + "/framework/skins/uscc/images/" + imageFileName;
    System.out.println("psAccessories.jsp - img1 = " + img1);
    %>
    <netui:imageButton src="<%=img1%>" onKeyPress="submit"/>
    </td>
    </tr>
    <tr>
    <td align="center">
    <%
    String img2 = request.getContextPath() + "/framework/skins/uscc/images/continue.gif";
    %> Select accessorries for your
    <netui:label value="${request.phoneAccessoriesForm.phone.modelTitle}"/>
    <br>
    ... or continue to checkout
    <netui:imageButton src="<%=img2%>" onKeyPress="submit"/>
    </td>
    </tr>
    <tr>
    <td> </td>
    </tr>
    <tr>
    <td bgcolor="#DAECFB">
    Calling Plan Selected:
    <netui:label value="${request.phoneAccessoriesForm.plan.title}"/>
    </td>
    </tr>
    <tr>
    <td> </td>
    </tr>
    </table>
    </netui:form>
    </netui:body>
    </netui:html>
    Can anybody help me

    So how i can do thisLet's try this again shall we.
    You said you have previously validated HTML with
    JavaScript right?
    Do the same thing. It works exactly the same. Don't
    ask me how when you know how.(..and ask your questions in a java script forum if you have any problems. Java script isn't Java)

  • Web Services validation before provisioning request completes...

    Hi All,
    We are working on Web Services validation before provisioning request completes to see if there are duplicated in target database. Is this possible?
    We want to check in target database for value if exists prior to provisioning the request and fail the provisioning process if the value is duplicate.
    For Eg:
    Input with ApplnID:5221 while provisioning and check in target database if ApplnID:5221 exists and then to continue provision.
    This is similar to what we are executing in our development environment.
    Can you please suggest any idea if you have worked on this earlier
    Thanks,
    Subbu

    xmllint is correct. Here's what the 1.1.3 XSD says (I put in the leading periods to fool the discussion board into preserving structure ):
    . <xsd:element name="ITunesUDocument">
    . . <xsd:complexType>
    . . . <xsd:sequence>
    . . . . <xsd:element ref="Version" minOccurs="1" maxOccurs="1"/>
    . . . . <xsd:element ref="AddCourse" minOccurs="0"/>
    . . . </xsd:sequence>
    . . </xsd:complexType>
    . </xsd:element>
    If "minOccurs" or "maxOccurs" aren't specified in sequence elements, then they both default to "1". So the "minOccurs" and "maxOccurs" specifiers are redundant in the "Version" element specification…they'd be "1" anyway. Setting "minOccurs" to "0" means that you can omit the element in XML…but unless "maxOccurs" is set, than the most any element can appear in the sequence is once to be valid. "unbounded" can be used in "maxOccurs" to set no limit on the number of times it can appear in the sequence.
    Recall that XML doesn't necessarily have to validate to "work". An XML validation is a contract between us and Apple…Apple promises that we can put at least one "AddCourse" in an "ITunesUDocument" and that is going to work, or our money back. But if we don't submit valid XML, it might still work…but there is no promise there either. It might work today, it might fail tomorrow. The iTunes U people have said, in various venues, that we should expect Apple to validate our XML…but nobody's perfect. It could be that Apple just missed this one…but we should still write code under the assumption that the XSD is being correctly applied and that our XML is being validated on Apple's end. That way, our code can never be "wrong".

  • How can i find my errors during project validation before burning my project

    How Can I find the errors during the project validation before burning the project??

    Follow this workflow to help assure the best qualty video DVD:
    Once you have the project as you want it save it as a disk image via the File ➙ Save as Disk Image  menu option. This will separate the encoding process from the burn process. 
    To check the encoding mount the disk image, launch DVD Player and play it.  If it plays OK with DVD Player the encoding is good.
    Then burn to disk with Disk Utility or Toast at the slowest speed available (2x-4x) to assure the best burn quality.  Always use top quality media:  Verbatim, Maxell or Taiyo Yuden DVD-R are the most recommended in these forums.
    OT

  • Running validation before the 'save as' script

    Hi
    I'm looking for a steer on how to run form validation before implementing the 'Save as' script - is this even possible??
    Basically I want the save as script to run in the click event of my newly formed save button only if the validation script returns a positive value i.e. all mandatory fields are completed, I've used the script below:
    if 
    (form1.execValidate()== "false"){
    app.execMenuItem("SaveAs");
    Any chance someone could point me in the right direction or am I barking up the wrong tree?
    Thanks

    got it to work: my script was wrong, it now looks like this:
    if 
    (form1.execValidate()== true){
    app.execMenuItem("SaveAs");

Maybe you are looking for

  • Storing and Fetching checkbox values in APEX 4.0

    Hi, I am trying to store and fetch values of multiple checkboxes which i have created as items inside multiple regions. What could be the most efficient way to store the checkbox state values in the database table, when creating a new record in my ap

  • MTO Orders

    Hi all Everytime an order is raised for a material that has PTO for the field MRP Group {Material Master, MRP1 View}, its throwing an error at the time of converting the Purchase Req to a Purchase Order that says that account is not created as a Cost

  • How to import passwords from Internet Explorer

    Just installed the newest version of the Firefox (27) on WIndows 8.1 and would like to copy all the saved passwords (Autocomplete) from Internet Explorer 11. During the installation process it told me that the passwords will be copied over. They were

  • Sled/BBD

    Hello, When i do a goods receipt with migo (in development) for not batch-managed ingredients i see 2 boes in the folder material: Date of manufacture and SLED/BBD When i do the same in our production system i don't see them. I am looking where this

  • Specific Calibration Question

    I have an IMAC 24 and the spyder3pro - My ambient light I am told is moderately low. When ever I calibrate with the Spyder and the check call it says the target is not met. In addition I need to use special software (Shades) to reduce the back light