-
No coding needed if you install the AD Web service. See the HowTo posts in the following forum:http://www.infopathdev.com/forums/forum.asp?FORUM_ID=46
-
Hi Edove and welcome to our forum,
Greg has posted forum responses regarding this in the past and I suggest searching the forum (upper right). According to him:
it's just a matter of getting a ref to the other xdocument:
IXMLDOMDocument x = thisXDocument.(blah.open new document)
And, then you use the x to set the fields int the newly opened ...
-
Something more like:
Team_Members/@Employee_Email_ID[../@Employee_Name = xdXDocument:get-DOM()/my:myFields/my:Emp]
-
I'm glad you got it working, however I would like to make a corrective statement:
You can programmatically add them to an optional section -- provided the optional section exists in the DOM (i.e. it's optionally THERE as opposed to optionally NOT THERE).
However, as stated ealier, do not try to use 'ExecuteAction'. Instead build the nodes in ...
-
So are you trying to set the ''value'' of the rich text field, or append new nodes to the rich text field.. that's where I think the key difference is.
i.e. thisXDocument.DOM.selectSingleNode(''myRichTextField'').text = ''<div xmlns=\''http://www.w3.org/1999/xhtml\''>test</div>''; will only give you the text.
You need to create a new ...
-
Thanks Patrick,
So just some code behind the form to pull Active Directory values?
I'm still new to Infopath/coding, so I will have to explore Active Directory connections.
Thanks,
Brian
-
Maybe it can help somebody - add this as on click event to button:
string location = thisXDocument.Solution.URI;
XDocument oXdNewForm = thisApplication.XDocuments.NewFromSolution(location);
-
Hi Troy,
Thanks for the response. Let me see what I can do to get this fixed.
Regards
-
i have an infopath form load up forms from 2 different templates.. Using the line:
thisApplication.XDocuments.NewFromSolution(path)
path is a variable containing the URI.
The error is this:
System.Runtime.InteropServices.COMException
InfoPath cannot create a new, blank form.
InfoPath cannot load this form. The signature on this form is not from ...
-
Hi Bmerri19 and welcome to our forum!
Just buy our Active Directory Web service for a big $19.95. Then you can get this and other Active Directory values.
Cheers!