-
Hi Greg Tuthill,
Here is the code sample to append text from two nodes into a third node with carriage return,
//Get Node1 value
var field1Value = XDocument.DOM.selectSingleNode("/my:myFields/my:field1").text;
//Get Node2 value
var field2Value = XDocument.DOM.selectSingleNode("/my:myFields/my:field2").text
//Assign ...
-
Hi,
As Patrick suggested put the ListBox control in one section and TextBox control in another section. Now have conditional formatting on the section.
Don't add conditional formatting to ListBox or TextBox.
quote:Originally posted by Mik
There seems to be some inconsistency with the conditional formatting. I had tried it, but the formatting is ...
-
If you see ''loesch'' is the person node and ''oParentNode'' is also person node, and your schema does not allow this.
Agni
InfoPath Dev India
-
Hi Mar,
Welcome to the Forum!
There is no direct way do run code before Rules.
But try this workaround and see if it works,
Add an Form Open rule which changes a DOM's field value, add an OnAfterChange event to that DOM field and write your code in that method.
If you try this please let me know if that works.
Agni
InfoPath Dev India
-
I dont think you can do the formatting, like bold and all, but you can have line breaks.
So write a wrapper method which prepares a string out of your dataset. Set output of this method to ''oEmail.Intro'' variable.
Hope this Helps!
Agni
InfoPath Dev India
-
Thanks for the reply vt_asparagus, its great to see many people answering in the Forums.
Agni
InfoPath Dev India
-
Looks like you are using thisXDocument instead you should use ''XDocument'' in the script.
Your code should look like this
dim oNode
set oNode = XDocument.DOM.selectSingleNode(''//my:repeatingtable1'')
I dont think you can declare object types in the script, mainly the way you have declared.
For ex:- ''IXMLDOMNode row'' is not allowed in ...
-
Hi wcotech,
How do you want place a dataset into email body, we can set text to email body. you need to Process the dataset and prepare a string out of it and place it in the email dialog.
Hope this Helps!
Agni
InfoPath Dev India
-
Hi jaredhanks,
Welcome to the Forum!
Create a IXMLDomDocument from template.xml file and Replace the main dom root node with the root node from IXMLDomDocument. This will refresh all of the fields in your main dom.
Hope this Helps!
Agni
InfoPath Dev India
-
Hi,
Please refer your another post about how to get secondary domhttp://www.infopathdev.com/forums/topic.asp?TOPIC_ID=728
Agni
InfoPath Dev India