-
Are you using Code to open the new form instance? If so, the call to open will return a handle to an XDocument to the new form, and you can write code to copy the attachment value from the current form into the new form using the returned XDocument handle.
-
I have never seen this behavior before. You might want to try designing this template on another box with InfoPath to see if you get the same behavior. I suspect that it is this particular installation of InfoPath that has the issue. That being the case, an Office Repair or a reinstallation of Office or InfoPath might be in order. If this occurs ...
-
Do you have SP2 installed? You might try reinstalling Office or InfoPath to see if that fixes it (or do an Office repair).
-
Strange. The typical steps are:
Extract your form files.
Edit the view .xsl file to remove the blank option, and then save.
Right-click the manifest.xsf file and choose Design.
Republish as an XSN or to SharePoint or whatever.
The Blank option should not come back unless you modify the drop-down list box control in the ...
-
Awesome! Glad its working for you now! Keep up the good work!
-
Anyway, glad to hear its working!
-
current() confuses most people. Once you understand it, it makes life much easier, however, always knowing exactly which node it represents can sometimes present a problem! It bites me sometimes too.
-
.SetValue() is the right choice... but DateTime.Today.ToString() fails to give an XML-compatible date string.... XML expects the format of the string to be "YYYY-mm-DD", which you can get from a slight modification of your code: DateTime.Today.ToString("s"). The "s" tells the string generator to use the ...
-
I think you are misinterpreting what you can actually do here.
First, there is not "InfoPath Server" (at least not by that name). You are perhaps referring to SharePoint 2007 wherein you can set up InfoPath forms to be delivered as browser forms. I don't know what that costs, but I'm sure it's not inexpensive.
Second, an ...
-
Your mistake is very common--which is not understanding how current() works.
If your XPath is a filter on the Hardware repeater, then current() = the repeating Order node.
The XPath current()/my:myFields/my:Order/my:HWID means absolutely nothing... it points to nowhere.
If current() points to the Order node, then you would want an XPath more ...