-
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
-
Thank you Agni!
But i didn't mean to send the whole form to an adress, but only a notification. Something like ''s filled form of XY.xsn has been filled out. You can find it under X:\shared\formsXY\''.
hade
-
Hi,
I am trying to create a table which will have a text box (name of asset), and 4 radio buttons. This will be dynamically created for each country (ie UK, North America etc.) and will contain between 60 and 180 assets per country.
I need the table to create the correct number of rows depending on the number of assets and populate the first ...
-
Hi Roy Lawrence,
You need to use the code for this, because you need to prepare an XML for the new form to be opened, and you need open with that XML.
If you want to open a new blank form you can use rules for that.
Hope this Helps!
Agni
InfoPath Dev India
-
Thanks to Agni, this now works,
function msoxd_d_lkpComments::OnBeforeChange(eventObj)
{
var oNetwork = new ActiveXObject(''WScript.Network'');
var strUserName = oNetwork.UserName;
if (eventObj.Operation == ''Delete'' && eventObj.Site == eventObj.Source && eventObj.NewValue == null && strUserName != ...
-
I have now figured it out, the problem was that the repeating group had been created once when the parent node (i.e my:Results) had originally been created, however there were other elements below the repeating group (i.e. my:Activity) that belonged to my:Results, therefore when I tried to add nodes to my:Activity I got a schema error as the node ...
-
Hi Hade,
Welcome to the forum!
To send form as an email you need to add a Email submit dataconnection.
To add an email dataconnection go to
Tools->dataconnection->SubmitData->An E-Mail Message
In the attachment type ''Form'', then your entire form will be sent as an email.
There are lot of posts which speak about email dataconnection, ...
-
Hi Thierry,
I dont think that we can have form fields value in the ''Print view header''/''Print view footer''. I have gone through Infopath sdk and googled but din't find any info regarding this.
http://office.microsoft.com/en-us/assistance/HA011227811033.aspx
Above link has some info about it, but doesnot specify about using form values in the ...