
Signature
Kalyan Reddy
Visit http://www.autonomysystems.com
> Kalyan, thanks for the suggestion. However, this solution appears to require
> modification for my case. The relevent XML schema (in this case schema1.xsd)
[quoted text clipped - 24 lines]
> </xsd:complexType>
> </xsd:element>
Yeah, I thought that was a good idea too. To be more precise, I tried
changing use="required" to use="optional" which is how some fields in the
data connection are set--corresponding to columns in the underlying View that
are allowed to be NULL.
Unfortunately that didn't have any effect. The red asterisk was still there.
Also I noticed other non-key fields in the data connection where
use="required", but there is no red asterisk. I would think InfoPath is
inserting the asterisk when a field is a key, but the only other control
being marked with this asterisk is SSN which is NOT a key in the underling
table!
It would be nice if Microsoft would expose the logic behind this cosmetic
anomally. Or maybe they have and I just haven't found it yet. Thanks again
for some good suggestions.
> Try removing use="required" from the
> <xsd:attribute name="PATIENT_ID" type="xsd:int" use="required"/>
[quoted text clipped - 31 lines]
> > </xsd:complexType>
> > </xsd:element>
Josiah Smith - 11 Aug 2006 23:09 GMT
This may help you. I had the same problem with cloning nodes of base64 type.
Go to infopathdev.com
(http://infopathdev.com/howto/examples/default.aspx?i=cd6b81a217de40a1b249ab42fcff0216)
and download the form "Identifying a Filtered Table Row Number, v1.0" and
read over the setnil function in their script file.
I've found that you have to use the same thing for a Date field when
programatically creating a node, as well as the aforementioned base64
(picture) to set them as 'blank'.
HTH,
Josiah Smith
> Yeah, I thought that was a good idea too. To be more precise, I tried
> changing use="required" to use="optional" which is how some fields in the
[quoted text clipped - 47 lines]
> > > </xsd:complexType>
> > > </xsd:element>