-
values is a collection of all @ProductLineValue attributes (the actual attributes, not just their values).
value gets set to each item in the values collection, one-by-one, not ''every value in values'' -- just one value at a time.
When you say assign to button, what do you mean? Are you talking about a Button Control?
Also are you using ...
-
If your particular scenario current() is the same as ., so there's no advantage.
Did your XPath use ''./'' or ''../''? Because that makes a difference. As stated above ''.'' is the current node whereas ''..'' is the parent node (even for attributes).
-
Use a relative XPath... you should already have the object for the current node from the event handler parameters. Then you can use a relative XPath like ''../OtherField'' to get to the other field. The .. means to go up to the parent node.
-
selectNodes() will return a list of nodes... then you must step through them one by one.
var value;
var values = XDocument.DOM.selectNodes(''/dfs:myFields/dfs:dataFields/d:ProductLinesValu
e/@ProductLineValue'');
while(value = values.nextNode())
{
// do something with value node here...
}
-
If you are using managed code instead of script, date functions are built-in so you don't need to write them.
-
Glad you got that part working... be sure to check all your settings for the email, and maybe try creating a test form to see if you can get email working in it, and if so, compare the two to find differences.
-
I'm sorry to hear the issue. I don't know of any workaround. I did reply to another thread of yours (not sure it was here or on the MS Newsgroups) that you might try modifying the showIf value to see if you can get around it that way. I have low expectations that that would do any good... but you never know.
-
Did you try going to Tools | Form Options | Digital Signatures, and removing the signature areas from there?
-
Sorry - forgot to add the link. Here it is:
http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=4451
-
Great! Glad you were able to get it going. I'm glad to have been of help.