-
Here is a Microsoft article on implementing CAPTCHAs in .NET (not InfoPath specific).
http://msdn.microsoft.com/en-us/library/ms972952.aspx
-
Another option would be to just publish the form to somewhere on a network share or your organization's intranet. Would either of those be an option?
-
Have you tried placing a rule on your userName field that queries the secondary data source and then uses the results of the query?
You might also want to consider using a Form Load rule instead, since the value of userName() should be available from the time the form opens. Like Clay, I'm having trouble understanding how a dropdown box ...
-
I'm not quite sure I understand why you want to use code here. If all you want to do is store a temporary value and not have it in the main data source, I'd suggest placing it in an XML secondary data source.
-
Please have a look at this thread:
http://www.infopathdev.com/forums/p/12113/49879.aspx#49879
-
You need to place the rows you want to remove in an array and remove them after the loop is finished. Otherwise, the loop will stop prematurely.
-
In that case I think you need to look into using a URN-based solution, either by publishing the form as an installable (MSI) template, or publishing it to e-mail.
-
It sounds like the problem is that you're having everyone save the XSN to their local drives and use them from there. InfoPath forms are intended to be published to a single location and then used from there. If you don't do that you're going to run into problems like this.
-
Have you tried String.Replace("\n", "test");?
-
The XML data types in your schema aren't relevant as far as XPath goes. XPath doesn't care if your data is an int, string, or floating point value as long as you use syntax that deals with numbers. You can explicitly cast a value to a number by using the number() function if you need to, but it sounds like your problem here ...