title: xpage document will not save new document, but will save an existing doc that has been edited
body: <p>I have a xapage that I created laid out the form etc. When I create a new document with it, it does not save the document. However if I edit an existing document that was created with the notes form it does save that. It is very odd. There are not any error messages, it just reloads the document again with empty fields. Below is my source code:</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;xp:view xmlns:xp="http://www.ibm.com/xsp/core"
      xmlns:xe="http://www.ibm.com/xsp/coreex"
      xmlns:xc="http://www.ibm.com/xsp/custom"&gt;
  
      &lt;xp:this.data&gt;
          &lt;xp:dominoDocument var="document1" action="openDocument"
              formName="frmComm" computeWithForm="onsave"&gt;
          &lt;/xp:dominoDocument&gt;
      &lt;/xp:this.data&gt;
  
      &lt;xp:this.dataContexts&gt;
      &lt;xp:dataContext var="parentDoc"&gt;
          &lt;xp:this.value&gt;&lt;![CDATA[#{javascript:
              try {
                  if (document1.isResponse()) {
                      return database.getDocumentByUNID(document1.getDocument().getParentDocumentUNID());
                  } else {
                      return "";
                  }
              } catch(e) {
                  return "";
          }}]]&gt;&lt;/xp:this.value&gt;
      &lt;/xp:dataContext&gt;
  &lt;/xp:this.dataContexts&gt;
  
  
  
      &lt;xc:AppLayout&gt;
          &lt;xp:this.facets&gt;
              &lt;xp:panel xp:key="facetMiddle"&gt;
  
                  &lt;xp:panel&gt;
                      &lt;xc:ccFormActions&gt;&lt;/xc:ccFormActions&gt;
  
                      &lt;xp:panel&gt;
                          &lt;xp:panel&gt;&lt;xe:formTable id="formTable1" formTitle="Communication"&gt;
          &lt;xe:formColumn id="formColumn2"&gt;
              &lt;xe:formRow id="formRow14" label="Policy Name:" rendered="#{javascript:document1.isEditable()}"&gt;
                  &lt;xp:inputText id="inputText1" value="#{document1.NameC}"
                      style="width:630.0px"
                      rendered="#{javascript:document1.isEditable()}" readonly="true"&gt;
                  &lt;xp:this.defaultValue&gt;&lt;![CDATA[#{javascript:parentDoc.getItemValueString("Name");
  }]]&gt;&lt;/xp:this.defaultValue&gt;&lt;/xp:inputText&gt;
              &lt;/xe:formRow&gt;
              &lt;xe:formRow id="formRow11" label="Policy Name:" rendered="#{javascript:!document1.isEditable()}"&gt;
                  &lt;xp:text escape="true" id="NameV" value="#{document1.NameC}" rendered="#{javascript:!document1.isEditable()}"&gt;
                  &lt;/xp:text&gt;
  
              &lt;/xe:formRow&gt;
              &lt;xe:formRow id="formRow12" label="Policy Number:" rendered="#{javascript:document1.isEditable()}"&gt;
                  &lt;xp:inputText id="inputText4" value="#{document1.NbrC}" rendered="#{javascript:document1.isEditable()}" readonly="true"&gt;
                  &lt;xp:this.defaultValue&gt;&lt;![CDATA[#{javascript:parentDoc.getItemValueString("Nbr");}]]&gt;&lt;/xp:this.defaultValue&gt;&lt;/xp:inputText&gt;
              &lt;/xe:formRow&gt;
              &lt;xe:formRow id="formRow13" label="Policy Number:" rendered="#{javascript:!document1.isEditable()}"&gt;
                  &lt;xp:text escape="true" id="NbrV" value="#{document1.NbrC}" rendered="#{javascript:!document1.isEditable()}"&gt;
                  &lt;/xp:text&gt;
  
              &lt;/xe:formRow&gt;
              &lt;xe:formRow id="formRow10" label="Category:" rendered="#{javascript:document1.isEditable()}"&gt;
                  &lt;xp:inputText id="inputText5" style="width:169.0px" value="#{document1.CategoryC}" rendered="#{javascript:document1.isEditable()}" readonly="true"&gt;
                  &lt;xp:this.defaultValue&gt;&lt;![CDATA[#{javascript:parentDoc.getItemValueString("Category");}]]&gt;&lt;/xp:this.defaultValue&gt;&lt;/xp:inputText&gt;
              &lt;/xe:formRow&gt;
              &lt;xe:formRow id="formRow9" label="Category:" rendered="#{javascript:!document1.isEditable()}"&gt;
                  &lt;xp:text escape="true" id="CategoryV" value="#{document1.CategoryC}" rendered="#{javascript:!document1.isEditable()}"&gt;
                  &lt;/xp:text&gt;
  
              &lt;/xe:formRow&gt;
              &lt;xe:formRow id="formRow8" label="Sub Category:" rendered="#{javascript:document1.isEditable()}"&gt;
                  &lt;xp:inputText id="inputText7" value="#{document1.SubCategoryC}" rendered="#{javascript:document1.isEditable()}" readonly="true"&gt;
                  &lt;xp:this.defaultValue&gt;&lt;![CDATA[#{javascript:parentDoc.getItemValueString("SubCategory");}]]&gt;&lt;/xp:this.defaultValue&gt;&lt;/xp:inputText&gt;
              &lt;/xe:formRow&gt;
              &lt;xe:formRow id="formRow1" label="Sub Category:" rendered="#{javascript:!document1.isEditable()}"&gt;
                  &lt;xp:text escape="true" id="SubCategoryV" value="#{document1.SubCategoryC}" rendered="#{javascript:!document1.isEditable()}"&gt;
                  &lt;/xp:text&gt;
  
              &lt;/xe:formRow&gt;
              &lt;xe:formRow id="formRow2" label="Quarter / Year:" rendered="#{javascript:document1.isEditable()}"&gt;
                  &lt;xp:comboBox id="comboBox1" value="#{document1.ComQtr}" style="margin-right:10.0px" rendered="#{javascript:document1.isEditable()}"&gt;
                      &lt;xp:selectItem itemLabel="Q1"&gt;&lt;/xp:selectItem&gt;
                      &lt;xp:selectItem itemLabel="Q2"&gt;&lt;/xp:selectItem&gt;
                      &lt;xp:selectItem itemLabel="Q3"&gt;&lt;/xp:selectItem&gt;
                      &lt;xp:selectItem itemLabel="Q4"&gt;&lt;/xp:selectItem&gt;
                  &lt;/xp:comboBox&gt;
                  &lt;xp:comboBox id="comboBox2" value="#{document1.ComYr}"
                      rendered="#{javascript:document1.isEditable()}"
                      style="width:58.0px"&gt;
  
  
  
  
                      &lt;xp:selectItems&gt;
                          &lt;xp:this.value&gt;&lt;![CDATA[#{javascript:var profDoc:NotesDocument = database.getProfileDocument("configdoc","");
  
  return
  profDoc.getItemValue("cfgCYear");}]]&gt;&lt;/xp:this.value&gt;
                      &lt;/xp:selectItems&gt;
                  &lt;/xp:comboBox&gt;
              &lt;/xe:formRow&gt;
              &lt;xe:formRow id="formRow3" label="Quarter / Year:" rendered="#{javascript:!document1.isEditable()}"&gt;
                  &lt;xp:text escape="true" id="QtrYr" rendered="#{javascript:!document1.isEditable()}"&gt;&lt;xp:this.value&gt;&lt;![CDATA[#{javascript:document1.getItemValueString("ComQtr") + " " + document1.getItemValueString("ComYr")}]]&gt;&lt;/xp:this.value&gt;&lt;/xp:text&gt;
  
              &lt;/xe:formRow&gt;
              &lt;xe:formRow id="formRow4" label="Date:"&gt;
                  &lt;xp:inputText id="inputText2"
                      value="#{document1.ComDt}"&gt;
                      &lt;xp:this.converter&gt;
                          &lt;xp:convertDateTime type="date"
                              dateStyle="short"&gt;
                          &lt;/xp:convertDateTime&gt;
                      &lt;/xp:this.converter&gt;
                      &lt;xp:dateTimeHelper&gt;&lt;/xp:dateTimeHelper&gt;
                  &lt;/xp:inputText&gt;
              &lt;/xe:formRow&gt;
              &lt;xe:formRow id="formRow5" label="Activity"&gt;
                  &lt;xp:inputTextarea id="inputTextarea1"
                      style="width:413.0px;height:84.0px" value="#{document1.ComActivity}"&gt;
                  &lt;/xp:inputTextarea&gt;
              &lt;/xe:formRow&gt;
              &lt;xe:formRow id="formRow6" label="Comments:"&gt;
                  &lt;xp:inputRichText id="inputRichText1" value="#{document1.ComComments}"&gt;&lt;/xp:inputRichText&gt;              
              &lt;/xe:formRow&gt;
              &lt;xe:formRow id="formRow7" label="Edit Policy Information:"&gt;
                  &lt;xp:checkBox text="Edit" id="checkBox1" value="#{document1.EditPol}" checkedValue="Edit"&gt;&lt;/xp:checkBox&gt;
  
              &lt;/xe:formRow&gt;
          &lt;/xe:formColumn&gt;
  
      &lt;/xe:formTable&gt;&lt;/xp:panel&gt;
                      &lt;/xp:panel&gt;
                  &lt;/xp:panel&gt;
              &lt;/xp:panel&gt;
          &lt;/xp:this.facets&gt;
  
      &lt;/xc:AppLayout&gt;&lt;xp:this.navigationRules&gt;&lt;xp:navigationRule outcome="xsp-failure" viewId="/communications.xsp"&gt;&lt;/xp:navigationRule&gt;&lt;/xp:this.navigationRules&gt;&lt;/xp:view&gt;
  </code></pre>