xdocument object - InfoPath Dev
in

InfoPath Dev

xdocument object

Last post 06-18-2007 07:06 PM by stevanus.hk. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 06-17-2007 11:19 PM

    xdocument object

    Hello, im sorry if my english is so bad. I need to use my secondary datasource in my code, but i can't find xdocument object even i search in object browser. can someone help me? or any one know how to use secondary datasource  without use xdocument object?

  • 06-18-2007 12:19 AM In reply to

    You first need to get the DOM of your secondary datasource. You can use

    var secondary = XDocument.GetDOM("Name of your secondary datasource"); and also don't forget to set the namespace:

    secondary.setProperty("SelectionNamespace", "your namespace string"). now you should be able to use:

    secondary.DOM.selectSingleNode(".........");

    Does this help ?

    Listen to Motörhead cos they play Rock'n Roll :)
  • 06-18-2007 02:11 AM In reply to

    but i can't use the xdocument object

    var secondary = XDocument.GetDOM("Name of your secondary datasource"); and also don't forget to set the namespace

     i search the xdocument object in the object browser but i can't find it, did i miss something?

  • 06-18-2007 02:25 AM In reply to

    • romaik
    • Top 500 Contributor
    • Joined on 05-31-2007
    • Paris France
    • Posts 43

    I think (I might be wrong) that XDocument is in InfoPath 2003

    If your a using InfoPath 2007, please refer to this object model => http://download.microsoft.com/download/0/9/c/09cda3f2-6d3d-4082-aec5-9a62b7679ecf/InfoPathObjectModelMap.pdf

    So I guess you should use XmlFrom instead of XDocument

     

    Regards 

    InfoPath 2003 SP2 User
  • 06-18-2007 05:13 AM In reply to

    Ah true, which version of InfoPath do you use ? If it is 2007 I think you have to use XPathNavigator instead of XDocument if I remember right.
    Listen to Motörhead cos they play Rock'n Roll :)
  • 06-18-2007 07:06 PM In reply to

    i use infopath 2007, hmm i think you are right, thanks for your info
Page 1 of 1 (6 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.