You searched for the word(s): 2
-
Please help someone.
Thanks
-
I tried to see how userName is implemented via reflector but it seems like the most interesting bits are obfuscated :)
Nonetheless, I was able to dig out this:
return SPControl.GetContextWeb(HttpContext.Current).CurrentUser;
This may give you the idea of what is going on... also, like you have mentioned, you might want to make sure that ...
-
Thanks for the quick reply.
Yes....using InfoPath 2003. Any code that you might be able to throw my way for both items would be appreciated.
Thanks again.
Lou
-
Hi Lou.
In IP2007 you have the option of having the view in the body or the attachment, I am guessing you have 2003 probably. I believe you can do it using code in 2003.
It is a trust issue for the email acknowledgement. So that viruses cannot send email without the user's consent. You would need to use code and ...
-
Thanks, but we are using a custom provider - which I think is the source of the problems.
-
Hey Peter.
Here is an Active Directory Web Part that can be used codelessly. One advantage it has is getting the Domain Account the user is using rather than the local user like UserName() does, if you have remote users.
http://www.qdabra.com/en/products/ADWebService.aspxI believe there is also a Sharepoint 2007 web service that can be ...
-
Hi,
I have a form with one submit button submitting to multiple data connections. One data connection is to a sharepoint form library and the other data connection is an email attaching the xml file.
Question 1.
Is there a way to have the body of the email populate with the content of the form instead of having an ...
-
Oh, and I dont think this will work as userName() is returning a blank string in web mode so Application.User.UserName will probably be the same.
Instead I will pass a parameter from the web part that launches the form. Ah, but crap, that wont work either as I need to write code to do that.
Cheers
-
Hi
It's not that I'm afraid of coding but a) it will make the process require a developer which we are trying to avoid and b) InfoPath is the worst development tool imaginable. The UI is so incredibly poor it's only a passable forms editor. Who ever thought of allowing managed code in these things should be shot!
Cheers
-
I tried it and it blew up when I tried to view a UDC or create a new one. Needs a bit more work I think...