XDocument is not declared - InfoPath Dev
in

InfoPath Dev

XDocument is not declared

Last post 03-01-2007 10:48 PM by Shiva. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 03-01-2007 05:40 AM

    • G0ggy
    • Not Ranked
    • Joined on 01-03-2007
    • United Kingdom
    • Posts 3

    XDocument is not declared

    Hi all,

    I'm trying to set a fields value on the click of a button, but before I even get that far, Intellisense is telling me that my reference to XDocument is not declared. I am using this as it is in many examples of what I am trying to do, here is some code:

    XDocument.DOM.selectSingleNode("/my:myFields/my:SectionSelector").Value = "Section 1"


    Can you help?

    Thanks.
  • 03-01-2007 10:48 PM In reply to

    • Shiva
    • Top 25 Contributor
    • Joined on 04-15-2005
    • India
    • Posts 694

    Re: XDocument is not declared

    Hi,

    You are tried to set the value to ‘Value#%92 property. Rather than you have to try to set the value to ‘text#%92 property as below code:

    XDocument.DOM.selectSingleNode("/my:myFields/my:SectionSelector").text = "Section 1";
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.