Infopath, FormServer and manadged code - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Infopath, FormServer and manadged code

Last post 04-16-2007 12:39 AM by davidair. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 01-23-2007 02:55 AM

    Infopath, FormServer and manadged code

    Hello,
    I've got one question concerning Microsoft InfoPath 2007 and FormServer.
    I want to fill a field in my form, with the file name.(In C#).
    What can i do ?
    Thanks
    Sylvain
  • 04-16-2007 12:39 AM In reply to

    Re: Infopath, FormServer and manadged code

    I believe the name of the current form is stored in the this.Uri property (there should be no difference between FormServer or regular InfoPath).

    Hence, the code would look like this:

     this.MainDataSource.CreateNavigator().SelectSingleNode(

         "/my:myFields/my:field1", this.NamespaceManager).SetValue(this.Uri);

         "/my:myFields/my:field1", this.NamespaceManager).SetValue(this.Uri);

    Where "/my:myFields/my:field1" is the xpath to the field you want to set.

    Hope that helps,

    David.

    David Airapetyan / Software Services Architect
    Qdabra® Software / Streamline data gathering to turn process into knowledge
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.