You searched for the word(s): 12
-
I was thinking I had to include all the code on the MSDN page. Works now. Thanks.
Works with the exception of the security issue; I now have to convince my sys admin to allow signed InfoPath forms to run in Full Trust. Don't suppose you could help there (ha ha)?
~Dustin.
-
See, all I was figuring was you'd add a click event and add this sample line from the MSDN page.... I don't know why you are overriding Export?
Me.CurrentView.Export("C:\MyView.pdf", ExportFormat.Pdf)
-
No. I figured it was a Public Sub, so added under the default Public Class FormCode. See below.
Screenshot: http://rookery9.aviary.com.s3.amazonaws.com/14254500/14254724_48db_625x625.jpg
Nothing under the Click event yet.
~Dustin.
-
Ummm.... where are you putting your code, exactly? On a button? You opened the button properties and selected edit code and added the code to the button clicked event?
-
I can't explain the Email/Emails mystery, but I can say that . isn't going to work in this case. To clarify, . refers to the context node, but within the brackets, the context node is emails, so . refers to emails in this case.
Rather than setting up the brackets yourself, I suggest using the Select field... dialog to select ...
-
I started this form in InfoPath 2003. Rather than try to gut it and replace with 2010 functionality, I'm starting a blank project in 2010 to test this functionality.
I throw the code in my brand new blank form and get a vb error:
'MustOverride' cannot be specified on 'Public MustOverride Sub Export(fileLocation As String, ...
-
Thanks Jimmy... not completely surprised I didn't know that.
I tried the formula as is, but alas it isn't working. I'm basing it off of another formula from an IP form that works the same way. Apparently something is not correct... here's what I've got:
1. Data connection pulling back ID, Name, Email, Group ...
-
Anson: Being a newb, I have no idea how to go about using a substring...and...er...the rest you mentioned.
Jimmy: but would the string-compare work only on values that are like for like or would it be able to compare if a the logged in user is in the specific sharepoint group I specified in my UserGroup.asmx lookup?
-
Rather than translate(), a simpler and more reliable way to perform an case insensitive string comparison is to use msxsl:string-compare():msxsl:string-compare(firstValue, secondValue, '', 'i')This will return 0 if the values are the same (regardless of case) and -1 or 1 if they are different, so to check if they were the same, you ...
-
Thanks Hilary! It was one of your previous posts that pointed me in this direction. Credit goes to you!
CG