-
Hi Smaur,
The values that you want to empty are in the attributes, and you are trying to empty the nodes which donot have any data.
Try to replace whole of the node with totally new one, with the help of code.
Agni
InfoPath Dev India
-
hi Smitty,
When you submit the data to DB, did you see whether data is submitted to DB or not?
Please explain your problem with some more details.
Agni
InfoPath Dev India
-
Yes it is the same code in c#
Agni
InfoPath Dev India
-
After you create the connection, write the following code in your onclick event
EmailAdapter oEmail = (EmailAdapter)thisXDocument.DataAdapters[''EmailConnectionName''];
oEmail.To = sToAddress;
oEmail.CC = sCCAddress;
oEmail.Subject =''Subject, WHat ever you want'';
oEmail.Intro = ''s filled form of XY.xsn has been filled out. You can find ...
-
Hi Villads,
Welcome to the forum!
There is a space between ''i'' and ''dag()'' check out if that is allowed.
Agni
InfoPath Dev India
-
Hi Bobstery, Sorry for being late, here is teh code to access data adapters
//C# code
thisXDocument.DataAdapters[''DataConnectionName'']
Agni
InfoPath Dev India
-
Hi Thierry, Sorry for being so late. Here is the code snippet to convert to a node
IXMLDOMDocument2 newDocument = (IXMLDOMDocument2)thisXDocument.CreateDOM();
newDocument.loadXML(Xmlr.xml);
newDocument.setProperty(''SelectionNamespaces'', ''NameSpaces you are using for this xml'');
IXMLDOMNode oNode = ...
-
Hi Sunil,
Sorry for being late,
You need to put this above code in onclick event of a button.
For ex:-
function CTRL1_5::OnClick(eventObj)
{
var oEnvelope = XDocument.View.Window.MailEnvelope;
oEnvelope.To = rgRecipients.join(''; '');
oEnvelope.Subject = getNodeValue(xmlTitle);
oEnvelope.Visible = true;
}
Hope this Helps!
Agni
InfoPath Dev India
-
Sorry for being late, here is the code
IXMLDOMNode parentNode = thisXDocument.DOM.selectSingleNode(''ParentNodeXPath'');
IXMLDOMNode childNode = parentNode.selectSingleNode(''ChildNodeXPath'');
parentNode.removeChild(childNode);
Agni
InfoPath Dev India
-
Hi shyananth,
If you want to load the document from web you need to create WebRequest and WebResponse objects and use methods in these objects to load the document.
You also need a stream object to read data.
Hope this Helps!
Agni
InfoPath Dev India