Secondary data source - InfoPath Dev
in

InfoPath Dev

Secondary data source

Last post 10-04-2006 11:47 AM by Ime. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 09-27-2006 01:56 PM

    • Ime
    • Not Ranked
    • Joined on 09-13-2006
    • United Kingdom
    • Posts 6

    Secondary data source

    Hi all,
    I have a repeating table from a secondary data source in IP2007. How do reference the secondary data source in C# manage code.

    many thanks

    Ime
  • 10-04-2006 08:11 AM In reply to

    In the InfoPath 2007 managed object model, you can reference the XML for a secondary data source from the form code-behind using the syntax:

    XPathNavigator node = this.DataSources["data source name"].CreateNavigator();

    For the main data source, use:

    XPathNavigator node = this.MainDataSource.CreateNavigator();

    The XPathNavigator instance is initially positioned to the document-level node in the data source XML.
  • 10-04-2006 11:47 AM In reply to

    • Ime
    • Not Ranked
    • Joined on 09-13-2006
    • United Kingdom
    • Posts 6
    Many thanks David.
    That was very helpful.
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.