-
First, check out this awesome XPath tutorial:http://www.w3schools.com/xpath/default.asp
To fix your XPath, try this statement instead:
XDocument.UI.Alert(XDocument.DOM.selectSingleNode( ''/dfs:myFields/dfs:dataFields/d:NEWJOB/comments'').text);
This will get the first comments node from the NEWJOB group. If you are trying to find a particular ...
-
I think the easiest way to do this would be to use several data connections to the same database, this way you can have ''summary'' queries and ''detail'' queries completely seperate. I did something very similiar to what you are describing in this ...
-
If you're talking about the weird extra margins it adds on the top and left sides, this is due to the necessity to add the ''Add rows'' widget to the left side.
Check out this HowTo for more info:http://infopathdev.com/howto/tutorials/default.aspx?i=16e98e03820545bdad8b1930b652a340
---------------
Matt Faus
InfoPath Dev Texas
-
Nice addition!
---------------
Matt Faus
InfoPath Dev Texas
-
I found this today in the InfoPath SDK - the code is:
objTaskPane = XDocument.View.Window.TaskPanes(4);
objTaskPane.Visible = true;
---------------
Matt Faus
InfoPath Dev Texas
-
To show all of your conditionally hidden sections, try this:
Add a new node to the schema named ShowAll. This will be a boolean node. Default to false.
Append the following condition to any of the conditions you already have on your conditional formatting sections:
AND ShowAll = false
Now, when you set ShowAll to true, the conditional ...
-
For number 1, you should be able to add conditional formatting on the submit button that disables it until at least one check box is checked. The conditional formatting will like this like:
field1 = false AND
field2 = false AND
field3 = false AND
...
Disable this control
For adding more than five conditional statements to a control, check out ...
-
Haha, ''master opinion'', thanks for the compliment, but I don't think I deserve it!
I also agree with Abhishek. If you're trying to do realtime data flow you will want to use a database, instead of a text file. You should be able to get much more performance this way.
This is what I see happening, you have two sections: The top section is a ...
-
This would almost certainly require full trust and managed code. Instead of writing to a text file why don't you just save the form as XML text? Either way, writing to the local hard disk requires full trust.
You would put the code into the onAfterChange event of the row to save the form as XML (probably over the previous ...
-
I think you'll want to do something like this:
if( Int32.Parse( thisXDocument.DOM.selectSingleNode( ''_XPATH_'' ).text ) > 10 )
{
//field is greater than 10
}
http://support.microsoft.com/?kbid=835454
---------------
Matt Faus
InfoPath Dev Texas