Populating a repeating table with an external data source that has other controls in the columns? - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Populating a repeating table with an external data source that has other controls in the columns?

Last post 08-16-2011 07:55 AM by wett68. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 08-10-2011 08:15 AM

    • wett68
    • Not Ranked
    • Joined on 08-03-2011
    • Posts 8

    Populating a repeating table with an external data source that has other controls in the columns?

    This is the control I want to populate - http://i.imgur.com/SWUvW.png . I'm trying to populate the field under "Work Checklist" with values from a SharePoint list while leaving the other columns with those blank controls to allow for input. Here is the code I have - http://pastebin.com/UK8F6Ey5. I am getting the error "Schema validation found non-data type errors." I checked to make sure everything was in the correct order, not sure what I am doing wrong here. Any help would be appreciated.
  • 08-11-2011 02:21 PM In reply to

    Re: Populating a repeating table with an external data source that has other controls in the columns?

    A couple of questions

    • Are your controls in a Repeating section, or all by themselves in the form?
    • Have you tried connecting the secondary connection to a simple dropdown?  Does it work?

    Based on the error message, it seems as if it's a problem with the data source, not the control.  Check out this article for what MAY be related - http://support.microsoft.com/kb/982247.  They're saying something like you have a list that you're using, that has required fields, and the required fields are not filled in with data.

    [EDIT] - I reread your message and you are using code to populate the control?  I did a search on "Schema validation found non-data type errors" and found a lot of links, like the one above, that seem to indicate something about a "nil" field not being filled it.

    http://sharenotes.wordpress.com/2008/03/23/infopath-forms-code-error-schema-validation-found-non-data-type-errors/

    ----------------------------
    Sue Hernandez
    MCPD - SharePoint Technologies

    http://www.akgroup.com
    http://info.akgroup.com/blog-0
  • 08-16-2011 07:55 AM In reply to

    • wett68
    • Not Ranked
    • Joined on 08-03-2011
    • Posts 8

    Re: Populating a repeating table with an external data source that has other controls in the columns?

    I was using code to grab the values from a sharepoint list to populate the repeating tables, and actually what solved my problem was setting the values to each item to "" - so writer.WriteElementString("TaskName", myNameSpace); would bomb where writer.WriteElementString("TaskName", myNameSpace, ""); worked
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.