Repeated Elements in DataSet Schema - InfoPath Dev
in

InfoPath Dev

Repeated Elements in DataSet Schema

Last post 04-17-2009 03:48 AM by JamieGr. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 04-17-2009 03:48 AM

    Repeated Elements in DataSet Schema

    [Repost from Web Services board] 
    Hi,
    I am trying to receive XML via a web service in InfoPath. I have used this article which does exactly what I want to do http://blogs.msdn.com/infopath/archive/2007/02/05/infopath-and-yukon-the-details.aspx and the example works fine with a very simple Schema. The article describes how to pass a DataSet object over the web service. The problem comes when I try to use a nested repeated structure in my schema for example:
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
     <xs:element name="TestRoot">
      <xs:annotation>
       <xs:documentation>Comment describing your root element</xs:documentation>
      </xs:annotation>
      <xs:complexType>
       <xs:sequence>
        <xs:element name="TestElement">
         <xs:complexType>
          <xs:sequence>
           <xs:element name="Value" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
          </xs:sequence>
         </xs:complexType>
        </xs:element>
       </xs:sequence>
      </xs:complexType>
     </xs:element>
    </xs:schema>
    When I try to connect to InfoPath using the "connect to a data source" I get the following error:
    "InfoPath cannot design a form based on this operation because it uses a DataSet which contains a column with SimpleContent column mapping."
    I have tried to use a strongly-typed DataSet instead of assigning the schema a run-time and I get the same error. I know that what I am trying to do is possible in InfoPath (perhaps by a completely different method) but I can’t seem to get it to work.
    Please could someone help me with my specific error or give me a more general solution/ methodology if I am going in completely the wrong direction?
    Thanks,
    Jamie 

     

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