-
Please try the attached XSN. No code needed.
-
I hadn't heard of this feature before, but it intrigued me, so I decided to experiment with it and came up with the same results as you. I even tried invoking the dialog from JScript (which most of the examples seem to do), or casting thisXDocument to an object (which one example did and sort of made sense), and no luck.
What ...
-
It sounds like you can store the various comments in a secondary data source, and then use a formula that incorporates the user's answer to retrieve the right one from that secondary source.
-
http://msdn.microsoft.com/en-us/library/bb509311.aspx#InfoPath2007XPathNavigatorClassFormTemplates_WorkingWithCurrentNode
-
You can't access controls directly. The only way to modify InfoPath data in code is to use the variety of XML manipulation methods made available by XPathNavigator.
-
This is happening because you're using absolute XPath. Try usingwriteval = CIField.selectSingleNode("@GrossIncome").text
-
One of the properties of the event object (eventObj.Source, or something along those lines) should give you a reference to the node or row where the event occurred. From there you can use relative XPath to get at the node you want.
-
The current() function can't be used in code like this, and there is no concept of a "current" row when you're accessing the XML from code. What would you expect current() to indicate in this situation?
-
Placing "hide this control" conditional formatting on a repeating section hides the individual rows, not the entire section. You should place your repeating section inside a non-repeating section and hide that instead.
-
XML data sources are great for storing values that you don't want stored in the main data source and they certainly do allow controls to modify their values. Are you saying that a checkbox bound to a field in the secondary source is unclickable? I'm not experiencing this behavior, though I am previewing my form in the InfoPath ...