You searched for the word(s): 2
-
I just posted this inquiry to a different thread in this forum (http://www.infopathdev.com/forums/p/8156/31383.aspx#31383) but thought I'd post it here as well...
I am at a loss. Is it really just my xpaths that are faulty or is it also the type of event handler I am declaring/working on? Well, all that and faulty ...
-
Hi, Patrick --
So the code you put in the post before this works for you? And your form has to be in full trust for it to work in preview? Is your machine part of a domain? I ask because of this post by Greg Collins on his blog -- apparently there are issues with that.
-
Hi, Catharine:
I suspect your xpath in that line does not point to a valid node. Given your data structure, I would expect "my:Name1" for the first line and "my:Comment1" for the second.
-
Hi, zeroecho:
The problem is your XPath. You are redirecting back to the root and selecting from there (which gives you the first one....) Let's say that your button is in a table connected to "my:TimeReporting". You would want e.Source.SelectSingleNode("my:PerActivity", NamespaceManager). e.Source will get you the ...
-
I am at a loss. Is it really just my xpaths that are faulty or is it also the type of event handler I am declaring/working on? Well, all that and faulty coding? Let me ask, will a changed event trigger each time a new row is added to a repeating table? Or do I need a different handler? Morever, is the handler ...
-
public void CTRL244_5_Clicked(object sender, ClickedEventArgs e)
{
string xpath = ...
-
A quick update:
I made my form Full Trust and Signed it, but I would rather have it in Domain Trust if possible. I got no errors when in Full Trust and the code worked correctly...so thank you Hilary!
Is there a way to make it work with Domain Trust?
-
Hi Hilary,
I am using InfoPath 2007. I used the code you wrote as a guideline for creating the text box that will designate the # of rows to add to a repeating table.
I should note that I have this group set up as a master/detail in one view, and a repeating table in another view (with different controls ...
-
Thanks, I actually would prefer to use VB as well.
I just tested the C# code in a new form and it DOES NOT change all the values in the field. I'm clueless as to why my other form went whacko on me. Anyways, thanks for all the input everyone!
-
Hi I am following this code as well - but I only know VB (and that not very well)
My Xml looks like this
<my:History1>
<my:Name1></my:Name1>
<my:Comment1></my:Comment1>
</my:History1>
<my:text1></my:text1>
<my:text2></my:text2>
I have ...