You cannot edit the UI fields in the datasource for the outside schemas
Open the schema.xsd and the field should be marked as 'nillable="true".Its
not depended on 'minOccurs="0"'.
and also check that in the Template.xml field should be set as
'xsi:nil="true"
Hope this helps you

Signature
Kalyan Reddy
Visit www.autonomysystems.com
> Hello,
>
[quoted text clipped - 11 lines]
> best regards
> iconomie
iconomie - 01 Feb 2006 10:50 GMT
Thank you very much for your fast reply!
That seems to work!
But now there is another problem:
It doesn't seem to work for all fields.
I got two different complexTypes for the attachment fields called "document"
and "documentData":
-----
<xsd:complexType name="documentData">
<xsd:simpleContent>
<xsd:restriction base="xmime:base64Binary">
<xsd:attribute ref="xmime:contentType" use="optional"
default="application/pdf"/>
</xsd:restriction>
</xsd:simpleContent>
</xsd:complexType>
-----
<xsd:complexType name="document">
<xsd:all>
<xsd:element name="date" type="xsd:date">
</xsd:element>
<xsd:element name="document" type="qw:documentData">
</xsd:element>
</xsd:all>
</xsd:complexType>
-----
One of the optional attachment fields uses the complexType "documentData":
<xsd:element name="confirmation" type="qw:documentData" nillable="true"
minOccurs="0">
Here Infopath treats the attachment field as an optional one. Works fine
here.
Another optional field uses the complexType "document":
<xsd:element name="federation" type="qw:document" nillable="true"
minOccurs="0">
Here Infopath seems to ignore 'nillable="true"' and treats the date and
attachment fields as required.
Can anyone help me out?
best regards
iconomie
> You cannot edit the UI fields in the datasource for the outside schemas
>
[quoted text clipped - 21 lines]
> > best regards
> > iconomie