-
I don't know exactly what your schema looks like, so I'm taking a stab in the dark here...
It looks like you are trying to perform the ''ALL'' functionality in this code. You don't want to waste time selecting a check box that is already selected, so you only want to get those that are not selected. So the XPath might look something ...
-
Does your schema have Requirement defined as being a child of Requirement?
Greg Collins [InfoPath MVP]
-
If you are submitting your main DOM... you would just call
XDocument.Submit() from code.
If you want to know what the result was you can do the following:
try
{
var sResult = XDocument.Submit();
if(<whatver_you_are_checking_for> == sResult)
{
<do_whatever_you_need_to_here>
}
}
catch(ex)
{
...
-
Sure thing!
Greg Collins [InfoPath MVP]
-
Thanx much!
Glad you got it working!
Glad to be able to help out.
Greg Collins [InfoPath MVP]
-
First off, during the OnValidate event, the DOM is read-only... so you must do this with the OnAfterChange event.
Secondly, so long as there is some metadata on each node to identify it as International or not, then you can do what you want.
OnAfterChange for the ALL check box would walk through each node and check it if it is not already ...
-
You will need to use code to submit if you want to be able to handle the response.
Greg Collins [InfoPath MVP]
-
You just need to specify a filter in the XPath you are selecting... as follows:
{
var oEnterName = XDocument.DOM.selectSingleNode(''//my:EnterName'');
var oNodes = XDocument.DOM.selectNodes(''//my:group/my:small_grp/my:grp_field[. = 'update' or . = '']'');
var oNode;
while(oNode = oNodes.nextNode())
{
oNode.text = ...
-
You can use code to make the task pane appear or hide (see help for available methods).
As for removing all the other task panes... it MIGHT be possible with a full trust form. But I really don't know for sure.
Greg Collins [InfoPath MVP]
-
You can try using an OnAfterChange event on the drop-down list box and placing the Query call in the event handler.
Greg Collins [InfoPath MVP]