thisXDocument - ??? - InfoPath Dev Sign in | Join | Help in General InfoPath (Entire Site) InfoPath Dev InfoPath Dev is dedicated to bringing you the information and tools you need to be successful in your Microsoft Office InfoPath development projects. Home Blogs Forums Photos Downloads InfoPath Dev » InfoPath » General » thisXDocument - ??? thisXDocument - ??? Last post 01-15-2009 11:25 PM by utkarsh2012. 8 replies. Page 1 of 1 (9 items) Sort Posts: Oldest to newest Newest to oldest Previous Next 12-27-2006 01:36 AM ekzarov Joined on 12-21-2006 Ukraine Posts 106 thisXDocument - ??? Reply Contact Can someone explain me, what is "thisXDocument" in C# code of infopath form. When I create an event handler (for example "OnLoad") I don`t see any thisXDocument object !!! Need I create it ??? Best regards,Alexander EkzarovKyiv, Ukrainesilverlightnet.blogspot.com 12-27-2006 02:30 AM In reply to Patrick Halstead Joined on 08-07-2006 Posts 5,112 Re: thisXDocument - ??? Mark as Not AnswerMark as Answer... Reply Contact When you create a C# project, InfoPath and Visual Studio add some code by default to formcode.cs that defines this variable. Patrick HalsteadProject Manager at Qdabra 12-27-2006 03:16 AM In reply to ekzarov Joined on 12-21-2006 Ukraine Posts 106 Re: thisXDocument - ??? Mark as Not AnswerMark as Answer... Reply Contact Below source of my formcode.cs...I don`t see any thisXDocument...I use MS Visual Studio 2005 and Infopath 2007...Maybe there some another interface? If so, are there some docs about this ???// Source of formcode.csusing Microsoft.Office.InfoPath;using System;using System.Xml;using System.Xml.XPath;using System.Net.Mail;namespace temp{ public partial class FormCode { // Member variables are not supported in browser-enabled forms. // Instead, write and read these values from the FormState // dictionary using code such as the following: // // private object _memberVariable // { // get // { // return FormState["_memberVariable"]; // } // set // { // FormState["_memberVariable"] = value; // } // } // NOTE: The following procedure is required by Microsoft Office InfoPath. // It can be modified using Microsoft Office InfoPath. public void InternalStartup() { } }} Best regards,Alexander EkzarovKyiv, Ukrainesilverlightnet.blogspot.com 12-27-2006 03:19 AM In reply to Shilpa Pitta Joined on 06-05-2006 India Posts 101 Re: thisXDocument - ??? Mark as Not AnswerMark as Answer... Reply Contact Hi,XDocument contains an XDocument object for each Microsoft Office InfoPath 2003 form that is currently open. The XDocument object represents a form's underlying XML document and can be used to interact with the XML data that a form contains. and this XDocument object can be used in any number of forms and to identify this we alias it as thisXDocument in the present InfoPath form we are using.Hope this help you! Shilpa INFOPATHDEV India 12-27-2006 03:48 AM In reply to ekzarov Joined on 12-21-2006 Ukraine Posts 106 Re: thisXDocument - ??? Mark as Not AnswerMark as Answer... Reply Contact Ok. Thanks. But where can I get a reference to this object in my case? Best regards,Alexander EkzarovKyiv, Ukrainesilverlightnet.blogspot.com 12-27-2006 05:53 AM In reply to Shilpa Pitta Joined on 06-05-2006 India Posts 101 Re: thisXDocument - ??? Mark as Not AnswerMark as Answer... Reply Contact Hi, This you can see it in MS Visual Studio 2003 and Infopath 2005 by default but not in MS Visual Studio 2005 and Infopath 2007 but we can define it explicitly even in this to call any single node or DOM...Hope this helps you! Shilpa INFOPATHDEV India 01-15-2009 09:38 PM In reply to utkarsh2012 Joined on 01-15-2009 Posts 6 Re: thisXDocument - ??? Mark as Not AnswerMark as Answer... Reply Contact can we access xdocument of a different form from the current form? Actually i need to submit DATA of a form to another form ( with a different form template) How can i achive it? Thanks 01-15-2009 10:51 PM In reply to Patrick Halstead Joined on 08-07-2006 Posts 5,112 Re: thisXDocument - ??? Mark as Not AnswerMark as Answer... Reply Contact Greg did a sample once that did this, but I believe it requires starting one form from within the other and passing the XDocument pointer to it as part of the start up parameters. Then you can communicate back and forth between them. You will need code to do this. Patrick HalsteadProject Manager at Qdabra 01-15-2009 11:25 PM In reply to utkarsh2012 Joined on 01-15-2009 Posts 6 Re: thisXDocument - ??? Mark as Not AnswerMark as Answer... Reply Contact Hey Patrick, thanks for the reply I have a detailed description of my problem here: http://www.infopathdev.com/forums/p/10373/37159.aspx#37159 Any suggestions? Page 1 of 1 (9 items) Copyright © 2003-2019 Qdabra Software. All rights reserved.View our Terms of Use.
can we access xdocument of a different form from the current form?
Actually i need to submit DATA of a form to another form ( with a different form template)
How can i achive it?
Thanks
Greg did a sample once that did this, but I believe it requires starting one form from within the other and passing the XDocument pointer to it as part of the start up parameters. Then you can communicate back and forth between them. You will need code to do this.
Hey Patrick, thanks for the reply
I have a detailed description of my problem here: http://www.infopathdev.com/forums/p/10373/37159.aspx#37159
Any suggestions?