-
Hello,
When you do a selectNodes you will get all of the nodes as a nodelist. Then you can have a for each loop that will walk through all of these nodes and get the information that you need.
-
Thanks Matt you confirmed my fear.
The problem is I am submitting to an Access DB on a shared drive and don't know that I could set up a webservice to do the additional submit.
It is a little clunky but I think I will have an intermediate form with a smaller data set as its data connection (I was trying to use views before). I don't have to pass ...
-
What are you submitting to?
I think this will call for two data connections, one will submit all of the data fields, and the other will only submit a select few of the data fields. Then, using the same conditions that your conditional formatting uses, you can decide which data connection to use in the submission process. Another method might be ...
-
Try this:
XDocument.DOM.selectSingleNode(''/my:myFields/my:field1'').nodeName
In this case, it should return ''my:field1''.
---------------
Matt Faus
InfoPath Dev Texas
-
Check out these threads and I think you will find what you're looking for:
Check out the last few posts of this one, it provides a copy+paste solution from one of the sample forms.http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=1006
http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=1435
I hope this helps! Welcome to the ...
-
Cool solution! The problem in the thread was a namespace issue, but this XPath is namespace-independent. I posted a link in the other thread to this thread.
---------------
Matt Faus
InfoPath Dev Texas
-
This might be helpful:
/*------------------------------------------------------------------------------
setNil() - Empty a nillable element.
------------------------------------------------------------------------------*/
function setNil(xpath)
{
var xmlNode = getNode(xpath);
if (!xmlNode || xmlNode.text === '''')
return;
// Create ...
-
Ok, I think I see what you're trying to do now. Sorry for misunderstanding earlier.
I was working on something similiar to this recently, actually. My goal was to call an InfoPath form from within an application, passing a parameter in to switch to a specific view depending on the state of the application, receive data in InfoPath, write to XML, ...
-
I have worked with Adobe's form designer before and I know that it has really good print support. However, the input and code functionality is aweful. One idea that I had would be to use InfoPath for form filling out and Adobe to read the XML generated, and perform advanced layout for printing. I know this would be a lot of trouble, but it would ...
-
Just throwing in my vote that I would also like this feature.
---------------
Matt Faus
InfoPath Dev Texas