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>