-
Also, you want to change:
XDocument.SaveAs(txtpath & GMSRef & txtName);
to
XDocument.SaveAs(txtpath + GMSRef + txtName);
The & character is used in VBScript, the + character in JScript.
-
Try changing:
txtPath = ''Z:\My Documents\InfoPath Forms\'';
to
txtPath = ''Z:\\My Documents\\InfoPath Forms\\'';
The backslash character is an ''escape'' character, and the \'' combination means that you want a literal quote in your string, rather than closing the quote of the string. The \\ combination means that you wan the \ character.
-
Correct - rows are dynamic... they can be added, removed, whatever. Or in the case of InfoPath 2007, you can use the horizontal control which allows columns to be dynamic. But there is no control which allows both columns and rows to be dynamic. InfoPath 2003 only supports dynamic rows (unless you hack the XSL to make it dynamic columns).
What ...
-
Great, let me know the results.
-
More questions to help me understand...
What exactly is stored in TOC/toc_repeating_table/field1 ?? The reason I ask, is I'm wondering if your TOC can/should just be another repeating table in the view, bound to the same cube node. The TOC *SHOULD* be based off your existing structure, not off a secondary structure.
So you have a repeating group ...
-
That is one way -- probably the easiest. The other way is to use insertBefore() or appendChild() functions to add the nodes. But, of course, they must be valid nodes for that WebService query parameters. It's probably safest to just do like you already did.
-
I just ran some tests and it looks like I gave some misleading information earlier. XDocuments(0) is NOT always the current document, but rather the first document open. In your case though, since Form A was open first, that would indeed be XDocuments(0). However, for Form B, you don't want to use XDocuments(1) as this will point you back to ...
-
PS. Double-posting in these forums is a no-no. Please only post once...your post will be seen.
-
What search function are you referring to?
-
You cannot dynamically add controls to the form. Add it in the designer, and use conditional formatting to choose when to show it.