-
Fred,
Try something a little more like this:
var idx = eventObj.Source.parentNode.selectSingleNode( ''@idavance'' );
You can use the eventObj to do relative selecting of XML. I hope this helps, let us know how if you have any more questions. Also, if you search around on this forum you might find several code examples to help you out a little ...
-
Haha, I just can't get over the lack of grouping symbols, such as brackets and parentheses! I love brackets!
---------------
Matt Faus
InfoPath Dev Texas
-
Heh, don't you hate it when something stumps you and then when you figure out how to do it, it's incredibly simple? I know I do, haha.
Let us know if you have any more questions!
---------------
Matt Faus
InfoPath Dev Texas
-
Does the form environemtn change folders often? I would think that an absolute path would be prefereable if you had several forms referencing the same XML.
Do the names of the data files change frequently? If they stay the same name you can add the XML document as a secondary data source via the wizard in InfoPath:
1) Choose Data Connections ...
-
Do you want to display this message in a pop-up box? I think you will have to use code to put this functionality behind a button, but use these steps to make an expression box that computes this number:
1) Open the controls task pane and insert an expression box.
2) Click the function button the the dialog box that appears.
3) Click Insert ...
-
This article will get you started publishing to SharePoint:http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odc_ip2003_tr/html/odc_INF_Lab_03.asp
Using SharePoint as a secondary data source (in your Admin Hour Viewer ...
-
OK, I think I found your problem. I think the node that your checkbox is referencing is a text node. This will mean that the value of your checkbox will be different than the boolean true/false.
1) Double-click on the checkbox
2) Notice the ''Value when checked'' and ''Value when cleared'' fields
3) Use these values in your code OR select ...
-
This XPath will access a ticketID, but you must specify which one you want. To use some of the SQL stuff that I suggested above check out the following code:
XDocument.QueryAdapter.Command = ''SELECT CustomerID FROM Customers ORDER BY CustomerID DESC'';
XDocument.Query();
XDocument.DOM.selectSingleNode( ''/dfs:myFields/my:lastID'' ).text = ...
-
I certainly do not mind answering questions, I just thought you might get faster and/or better response from a book or other refined resource. I spend maybe 2 minutes on these replies but people have poured over books for months and months to make them as easy-to-understand as possible and contain the best material.
If you are trying to access ...
-
Glad you figured it out!
http://infopathdev.com/forums/topic.asp?TOPIC_ID=1564
---------------
Matt Faus
InfoPath Dev Texas