-
Hi Thierry,
Just select the root node and replace it with the new one.
//get the root node
IxmlDomNode rootNode = thisXDocument.DOM.selectSingleNode(''/ns1:Case'');
//replace it with the new root node
rootNode.parentNode.replacechild(newNode, rootNode);
Agni
InfoPathDev India
-
Depending on the output of your condition (true/false) it it will allow users to add/delete rows in the repeating table.
Agni
InfoPathDev India
-
//get new value of the present row
string sNewValue = e.NewValue.ToString();
//get the repeating nodes, ''RepeatingNode'' here you need to write the xpath so that you will get only the nodes which are equall to the new value
IXMLDOMNodeList oNodeList = getNodes(string.Format(''//RepeatingNode[. = {0}]'', sNewValue));
//check if the ...
-
Hi Hilary,
Welcome to the Forum!
There is tutorial by Greg for removing duplicate values from the dropdown.http://www.infopathdev.com/howto/tutorials/default.aspx?i=51dce616335a4ff6a78f2d289baf4651
But for the list to appear in alphabtic order you need to sort the dataconnection xml.
Agni
InfoPathDev India
-
Hi Benny,
Welcome to the forum!
Even I had a similar problem before. I dint get a way to do this in InfoPath. So i had write code for this.
Agni
InfoPathDev India
-
Hi,
thisApplication.Version will give you the version of the form that you are using.
Agni
InfoPathDev India
-
Which solution did you use XSL transform or Childnodes?
Agni
InfoPathDev India
-
Hi,
Yes you can do this by having a conditional formating on the repeating table.
By default your repeating table will have the ability to add/delete rows. By adding condinal formatting you can diable this.
Agni
InfoPathDev India
-
Hi Ger Eielts, Welcome to the Forum!
Did you give Full trust to your form? When you are connecting to a DB through code you need to give Full trust to your InfoPath project, that is the reason that the exception is raised in the line where you are taking a DB connection.
There are many posts about giving full trust to your InfoPath ...
-
Here is the code to send an email via code
EmailAdapter oEmail = (EmailAdapter)thisXDocument.DataAdapters[''Email Submit''];
oEmail.To = ''email1@abc.com; email2@abc.com'';
oEmail.CC = ''email3@abc.com'';
oEmail.Subject = ''subject'';
oEmail.Intro = ''Intro'';
oEmail.Submit();
Note: Above code is in c#
Agni
InfoPathDev India