Use our Google Custom Search for best site search results.
Search
-
When I email the ''submit.xml'' to myself, I can select the XML file and view it, as long as InfoPath is currently running in the background.
If I close InfoPath and attempt to select the XML file,
it attempts to find an additional file in ''C:\Documents and Settings\dwheeler\Local Settings\Application ...
-
According to what you're saying, if I use what I currently have and add another line...
Dim domFoo As IXMLDOMDocument2 = CType(thisXDocument.GetDOM(''SelectEmployeesWithHardwareSoftwareRequest''), IXMLDOMDocument2)
domFoo.setProperty(''SelectionNamespaces'', ...
-
I see your point, but my results from my watch window appear to be pretty much the same. I've changed my Web Service to reflect dataset2 instead of dataset1 for differential purposes.
Dim domFoo As IXMLDOMDocument2 = CType(thisXDocument.GetDOM(''SelectEmployeesWithHardwareSoftwareRequest''), IXMLDOMDocument2)
...
-
Actually it does help. InfoPath creates a form template for publishing and not a form. For example in Word, the Document would be like the form template, and the saved document would be like the form. When you're in Sharepoint, a normal Document Library would consist of a single or multiple forms that someone might have uploaded to a central ...
-
I believe that .Net has already declared these items that you mentioned.
The point I'm at currently is: I have the following 2 statements
Dim domFoo As IXMLDOMDocument2 = CType(thisXDocument.GetDOM(''SelectEmployeesWithHardwareSoftwareRequest''), IXMLDOMDocument2)
domFoo.setProperty(''SelectionNamespaces'', ...
-
First Off... My stored procedure looks something like this...
CREATE PROCEDURE udp_SelectEmployeesWithHardwareSoftwareRequest
(@User nvarchar(50))
AS
SET NOCOUNT ON
SELECT NameAndRequest
FROM viewAllEmployeesActive
UNION
SELECT tblHardwareSoftwareRequest.RequestedForEmployeeID
FROM tblHardwareSoftwareRequest
SELECT ...
-
I attempted what you suggested and I get a syntax error...
'selectSingleNode' is ambiguous across the inherited interfaces 'Microsoft.Office.Interop.InfoPath.SemiTrust.IXMLDOMDocument' and 'Microsoft.Office.Interop.InfoPath.SemiTrust.IXMLDOMNode'.
This occurs on my 3rd line
Dim domFoo As IXMLDOMDocument2 = ...
-
I'm trying your example to see what happens.
I can't compile it because it doesn't recognize SetProperty as a Method of DOM.
Defined as
Private thisXDocument As XDocument
thisXDocument.DOM.setProperty(''SelectEmployeesWithHardwareSoftwareRequest'', ...
-
I'm kinda lost at what your talking about. The SelectionNamespace is just the XML node path correct? It seems that what I have below would take care of this issue.
Currently the Namespace is defined up top as
<InfoPathNamespace(''xmlns:xsf=''''http://schemas.microsoft.com/office/infopath/2003/solutionDefinition'''' ...
-
Just tried what you suggested:
Dim myUserNode As IXMLDOMNode = thisXDocument.GetDOM(''SelectEmployeesWithHardwareSoftwareRequest'').selectSingleNode(''.//ns1:EmployeeID'')
And received the following error
Run-time exception thrown : System.Runtime.InteropServices.COMException - Reference to undeclared namespace prefix: 'ns1'.
I also tried ...