Infopath will not allow to set default value - InfoPath Dev
in

InfoPath Dev

Infopath will not allow to set default value

Last post 07-22-2008 12:38 PM by RLPopeIII. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 07-21-2008 01:48 PM

    Infopath will not allow to set default value

    I just updated a bound schema for a form.  I added three elements (fields) to the schema.  They are identical in nature to previous fields used in the form.  The elements each have one attribute.  The element is an integer and the attribute is boolean.

    The original elements allow me to add a default value.  Two of the three new elements allow me to add a default element, but one does not--the default entry box and formula button are greyed out.  Again, they are all indentical instructure (at least they are supposed to be).

     I've added a clipping of the schema below:

     

     This is one of the original elements

     <xsd:element name="DOUID" nillable="true">
      <xsd:complexType>
       <xsd:simpleContent>
        <xsd:extension base="xsd:integer">
         <xsd:attribute ref="my:DOUIDLock"/>
        </xsd:extension>
       </xsd:simpleContent>
      </xsd:complexType>
    </xsd:element>
    <xsd:attribute name="DOUIDLock" type="xsd:boolean"/>

    This one is new and I can add a default


    <xsd:element name="ConAttribUID" nillable="true">
      <xsd:complexType>
       <xsd:simpleContent>
        <xsd:extension base="xsd:integer">
         <xsd:attribute ref="my:ConAttribUIDLock"/>
        </xsd:extension>
       </xsd:simpleContent>
      </xsd:complexType>
    </xsd:element>
    <xsd:attribute name="ConAttribUIDLock" type="xsd:boolean"/>

    This is new and does not allow a default 

    <xsd:element name="ConAttribRelUID" nillable="true">
      <xsd:complexType>
       <xsd:simpleContent>
        <xsd:extension base="xsd:integer">
         <xsd:attribute ref="my:ConAttribRelUIDLock"/>
        </xsd:extension>
       </xsd:simpleContent>
      </xsd:complexType>
    </xsd:element>
    <xsd:attribute name="ConAttribRelUIDLock" type="xsd:boolean"/>
     

    New and works

    <xsd:element name="ConAttribRelCondUID" nillable="true">
      <xsd:complexType>
       <xsd:simpleContent>
        <xsd:extension base="xsd:integer">
         <xsd:attribute ref="my:ConAttribRelCondUIDLock"/>
        </xsd:extension>
       </xsd:simpleContent>
      </xsd:complexType>
    </xsd:element>
    <xsd:attribute name="ConAttribRelCondUIDLock" type="xsd:boolean"/>

     

    Here is how the elements are used. Pretty straight forward.  I can't see why why one won't allow defaults.


    <xsd:element name="UIDs">
      <xsd:complexType>
       <xsd:sequence>
        <xsd:element ref="my:DOUID" minOccurs="0"/>
        <xsd:element ref="my:DOObjectModUID" minOccurs="0"/>
        <xsd:element ref="my:DerAttribUID" minOccurs="0"/>
        <xsd:element ref="my:DOAttribRelationshipUID" minOccurs="0"/>
        <xsd:element ref="my:ConduitUID" minOccurs="0"/>
        <xsd:element ref="my:RelationshipObjectMod" minOccurs="0"/>
        <xsd:element ref="my:ConAttribUID" minOccurs="0"/>
        <xsd:element ref="my:ConAttribRelUID" minOccurs="0"/>
        <xsd:element ref="my:ConAttribRelCondUID" minOccurs="0"/>
       </xsd:sequence>
      </xsd:complexType>
    </xsd:element>

  • 07-22-2008 12:38 PM In reply to

    Re: Infopath will not allow to set default value

    The problem cleared itsrelf after I closed the form and reloaded it in design view.

Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.