-
IMPORTANT 1:
It is good practice to set EVERY namespace used in your data source, whether you use them or not. This saves headaches later when you decide you need to access other fields, but never set the namespace required to access for them.
IMPORTANT 2:
Also, any ''default namespace'' -- one without a prefix, should ALWAYS have a prefix added ...
-
Again... I'm only guessing... I really don't have a real answer for you... I'm just hoping to help you stumble onto the solution.
I know secondary data sources are essentially second-class citizens in InfoPath right now. There's a lot of things grayed out for them that aren't for the main data source.
Patrick asks whether your table that you ...
-
I've not used the feature very much... so I don't know... but I'll guess and ask: ''Is your repeating table from a secondary data source?''
Greg Collins [InfoPath MVP]
-
Thanx for sharing that!
Greg Collins [InfoPath MVP]
-
Each of those namespaces you see need to be defined for the DOM:
* dfs
* ns4
* ns1
I'm assuming that there will also be a ns2 and ns3 in there somewhere.
You must set all of these namespaces at the same time.
Greg Collins [InfoPath MVP]
-
You are setting a selection namespace for ''ns4'' but are trying to use ''ns1''. Why is that?
Greg Collins [InfoPath MVP]
-
I think you two are getting mixed up with the coding languages you are using...
sakiboy, you started this post using VB.NET (managed code).
jonbrave, you are using JScript.
The two are not compatible.
Once again, let me state that you should NEVER set the selection namespaces for thisXDocument.DOM (BAD! BAD! BAD!) InfoPath and Visual Studio do ...
-
You placed the rule on the drop-down list box? If so, and if you set NO condition, the rule should be run each time a change is made to the value of the node the drop-down list is bound to.
Greg Collins [InfoPath MVP]
-
If you want the data value to be identical in both, set a rule on one to populate the value of the other with the same value as the first.
Greg Collins [InfoPath MVP]
-
If you use script, .NET is not necessary. If you use managed code, you and your users MUST have .NET.
Greg Collins [InfoPath MVP]