-
Use this formula as the default value for your AllOk field:substring("FAILEDOK", not(/my:myFields/my:MachineList/my:Machine[my:MachineOk != 1]) * 6 + 1, 6) You might need to change the path if it doesn't quite match what's in your data source.
What this does is evaluate to a different part of the string ...
-
InfoPath will always do this if you go through the data connection wizard to update a data source like the one you describe.
The two options you have are:
Remove the unneded resource files afterward
Edit the form's source directly, making the necessary changes to the XML resource and its corresponding XSD file (this requires an ...
-
A section can be bound to any node in any of your data sources. Just drag any node into the view with the right mouse button and select the Section option. If your repeating group has a non-repeating parent, that would be an ideal node to bind the section to.
-
Place the table inside a section control, and then conditionally hide that.
-
Qazi Anis is correct. InfoPath controls do not work like WinForm or ASP.NET controls. You cannot access them directly from code. If you want to modify the set of items a Dropdown list contains, you must bind it to a node in one of your data sources and modify that node.
-
In C#, it would be thisXDocument, which is an object in your code, not a class.
-
Use a count expression with filtering:
count(/path/to/repeating/node[dropdownField = 'yes'])
-
The IsNode property is a bit of a pointless property because it is always true. I think it's more conventional to check whether the result of SelectSingleNode() is null (or Nothing in vb). You don't really need a try...catch block. Try ...
-
What happens if you use NewForm.View.SwitchView("View 2");
-
Well,for one thing, your XSLT doesn't use any namespaces (except xmlns:xsl), and the fields in your form surely have a namespace.