Access Secondary Data Source - InfoPath Dev
in

InfoPath Dev

Access Secondary Data Source

Last post 10-14-2005 09:44 AM by franck. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 10-14-2005 09:10 AM

    Access Secondary Data Source

    Hi All,

    I have a form that is kept in a WSS library. When a new form is opened I need to increment the serial number. I have created a seconary data source that accesses the title field in the sharepoint library which *should* give me a list of all the existing serial number, that should return the file name which is also the serial number ie D123.xml

    So using C# managed code how can I reference this secondary data source?

    Thanks

    Lee
  • 10-14-2005 09:44 AM In reply to

    Re: Access Secondary Data Source

    Hi,

    Try something around:

    IXMLDOMDocument3 oSecondDoc = (IXMLDOMDocument3)thisXDocument.DataObjects["YourDataSourceNameHer"].DOM;
    oSecondDoc.setProperty("SelectionNamespaces", "xmlns:dfs=\"http://schemas.microsoft.com/office/infopath/2003/dataFormSolution\" xmlns:d=\"http://schemas.microsoft.com/office/infopath/2003/ado/dataFields\"");
    IXMLDOMNode oSecDocNode = oSecondDoc.selectSingleNode("/dfs:myFields/dfs:dataFields");

    Hope that it helps.

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