Infopath isn't receiving nillable="true" attribute - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Infopath isn't receiving nillable="true" attribute

Last post 05-26-2005 10:56 AM by mmelonis. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 05-13-2005 05:47 PM

    Infopath isn't receiving nillable="true" attribute

    Regarding... Dev Nugget "The Difference Between Optional and Not Required"

    I found this Dev Nugget to be very informative, however I'm still having a problem with using a web service as the data source.

    I have a couple elements defined as the following in the web services DataSet.xsd:

    <xs:element name="CustID" type="xs:long" nillable="true" minOccurs="0" />
    <xs:element name="Birthday" type="xs:dateTime" minOccurs="0" nillable="true" />

    The problem occurs when I design an InfoPath form using the given web service as a source. The nillable="true" attribute is not propagate and these elements are viewed as required by Infopath (i.e. the "Cannot be Blank" checkbox is true).

    I'm looking for any suggestions or alternatives...

    Thanks.
  • 05-20-2005 03:19 PM In reply to

    Re: Infopath isn't receiving nillable=&quot;true&quot; attribute

    I'm not familiar enough with how InfoPath interacts with Web Services to be able to properly answer your question, but...

    When you create a data connection, InfoPath creates one or more .xsd files for it. You can modify the schema to include the nillable attribute.

    If you ever modify your data connection, you will need to update your schema again as it will be overwritten.

    Greg Collins [InfoPath MVP]
    InfoPathDev
  • 05-26-2005 10:56 AM In reply to

    Re: Infopath isn't receiving nillable=&quot;true&quot; attribute

    Thanks Greg! The first time, I tried your suggestion it didn't work. In that case, I used 'Extract From Files' from the file menu. Next, I modified the appropriate .xsd.

    My second attempt, I created an InfoPath form from Visual Studio and modified the .xsd as you described. My second attempt was successful.

    Apparently, during intialization InfoPath doesn't extracted files.

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