You searched for the word(s): 12
-
What I meant was something like this:
Dim mainNavigator As XPathNavigator = Me.CreateNavigator()
Dim codeInfoNavigator As XPathNavigator = ...
-
if you need to repeat a textbox element, using a repeating control like a repeating section or a repeating table.
I am not sure what you mean by combining all theh 5 files of the infopath form template in one single xml string...
-
Hi Potemkine,
Nice to hear from you again. Ok, noted about the rules vs code part. I'm still using your code to refresh this new form though :)
I was thinking of using code because my form has multiple sections and nested sections and thus using rules can sometimes take quite a lot of mouse clicks. Was just trying to find out if it ...
-
[quote user="Jimmy"]But what makes you think that this would be faster than using rules?[/quote]
I think it was my fault. I say that on a context that he have a lot of field to reinitialize, so instead of use a rules for each fiel.d I suggest to use code to replace the parent node with a empty reference node in this case using code is ...
-
Hi Jimmy,
I decided to just use rules :) but for knowledge sake, I'll still like to know how I can go about this in code?
Is it more efficient to use rules instead of code?
Thanks!
-
Hi, I convert it to j-Script:
var value = XDocument.DOM.selectSingleNode("/my:myFields/my:r").xml
if(value.indexOf("Bronze")!=-1)
XDocument.DOM.selectSingleNode("/my:myFields/my:t/my:t2").text="Low";
if(value.indexOf("Silver")!=-1)
...
-
Hi Jimmy,
Thanks for your help again. When you say variabled, do you mean:Dim oItem As XPathNavigator Dim oSecData As String
oItem = Me.CreateNavigator().SelectSingleNode("/my:myFields/my:Date_Letter", Me.NamespaceManager)oSecData = ...
-
Hi
C# is not an option, only VBScript and JScript are showing.
Do I need to install someting on my PC?
thanks
Anthony
-
Hi Stuart,
Yes, the DAT has two options for opening forms and the Open link fails for forms with code. One future idea for DAT is to remove the Open link altogether, since the Download icon will work for all forms.
Let us know if you run into any other issues. Good luck.
-
Hi Ernesto - when I clicked the Download (green arrow) button and then choose Open, the form opens without any errors and operates just as expected. When I looked at your instructions again, you clearly state to use the Download icon, so I apologize for not following instructions and wasting your time with this post. Just for my curiosity - when ...