Hi
I am trying to SUBMIT: FORM X to FORM X - FORM LIBRARY and at the same time submit the same data to FORM Y - FORM LIBRARY by managed code in c#.
FORM X and FORM Y do not have the same form templates,
I need the data transferred but when I am creating two separate Data Connections one for submitting to FORM X and another to FORM Y on FORM X, everything is going fine ans data is submitted to both the form libraries,
BUT the when I open a submitted form (.xml) on FORM Y, it opens up with the form template of FORM X.
The problem is the data being submitted to the second form library is taking the template.xsn file of the 1st form library.
I have to do it by managed code, this is the code im using:
string xpath = "/my:myFields/my:field1";
IXMLDOMNode field1 =
thisXDocument.DOM.selectSingleNode(xpath);
string oldValue =
field1.text; // Read
field1.text = "data1"; // Write
string
xpath1 = "/my:myFields/my:field2";
IXMLDOMNode field2 =
thisXDocument.DOM.selectSingleNode(xpath1);
string oldValue1 =
field2.text; // Read
field2.text = "data2"; // Write
DAVAdapter MainSubmit = (DAVAdapter)thisXDocument.DataAdapters["SharePointLibrary_Submit1"];
MainSubmit.Submit();
I know i am missing out some where...please help! :-)