-
-
Please see this thread:http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=3698
-
Hold on. Let's backtrack here. There's probably an easier way to do what you are doing built right into the master/detail control.
On the open the properties dialog for the detail section.
On the Master/Detail tab, you'll probably find that you have the relationship using the ''position''.
Change this relationship to use a ''key field''. Set the ...
-
Certainly. XDocument contains an Extension property which gives access to your methods.
var xd = window.external.XDocument;
xd.Extension.MyMethod(param1, param2);
-
Great! Glad to have helped.
-
As I look at the image of your data source, I see that you have a root node named myFields which you are not accounting for. When an XPath begins with a slash ('/'), that means to start from the root node. Since Produkte is not the root node, this will of course fail.
I'm not sure what the namespace for myFields is, but let's assume that it is ...
-
Modified:
sum(../../dfs:dataFields/d:TOSS[@employeeDepartment = ../SelectedemployeeDepartment]/@monthlyExpenses)
Note that the beginning slash forces the XPath to start at the root node, therefore /../.. means to go two levels above the root node, which is invalid.
Also note that employeeDepartment is an attribute, not an element.
Finally, I ...
-
For your second question, if you go into the properties dialog for the control, you should be able to set the date format there. There is a button for chosing the format.
-
Okay, obviously I'm confused. . . . :o)
The XPath needs to be placed in whatever field you are expecting to show the results of that XPath. (Sorry so vague).
-
If you are using managed code, C#/VB, you can use the AddMonths() method.