About data sources and DataObjects - InfoPath Dev
in

InfoPath Dev

About data sources and DataObjects

Last post 06-08-2006 10:09 AM by .mond. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 06-08-2006 07:11 AM

    • .mond
    • Not Ranked
    • Joined on 06-06-2006
    • Posts 16

    About data sources and DataObjects

    Hi

    From the Infopath developer docs it says the DataObjects collection "Contains a DataObject object for each secondary data source used within a Microsoft Office InfoPath 2003 form". If this is true then how do i access PRIMARY data sources because in the form that i am using right now i only have one data source - the main one.

    Any suggestions?
  • 06-08-2006 08:38 AM In reply to

    Re: About data sources and DataObjects

    Hi DotMond and welcome to the forum!

    Depending on what language you're using the main DOM can be accessed like this:

    JScript:
    XDocument.DOM.selectSingleNode( "Insert_XPath" );

    C#
    thisXDocument.DOM.selectSingleNode( "Insert_XPath" );

    (Sorry, I don't know VB or VBScript)
    Matt Faus / Microsoft InfoPath MVP
    Qdabra® Software / Streamline data gathering to turn process into knowledge
  • 06-08-2006 10:09 AM In reply to

    • .mond
    • Not Ranked
    • Joined on 06-06-2006
    • Posts 16

    Re: About data sources and DataObjects

    hey thanks matt

    one more questiontion though - when would i need/want to create a secondary data source?
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.