Group:  Other Microsoft Office Products ยป microsoft.public.infopath
Thread: How to get user login

DotNetBag
.NET Development Newsgroups

HTVi
TV Discussion Newsgroups

Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
Rising Antivirus 2006

How to get user login
Patrick Temple 18.07.2006 17:49:01
I'm sure this is a stupid question, but how do I get the User's login when
they open the form? I need to run the login against an XML flatfile to
provide access level for the form. I know InfoPath has "User Roles" but they
fall short when crossing multiple Domains. So I'm going to have my own
library of users to check against. However, I can't seem to find out how to
capture the users login when they open the form. Anyhelp would be
appreciated.

Thanks
--Patrick Temple
RE: How to get user login
Kalyan Reddy 19.07.2006 01:52:01
Hello Patrick,

Please read the Links below
http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=2760
http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=2227

Hope this helps you.
--
Kalyan Reddy
Visit http://www.autonomysystems.com




"Patrick Temple" wrote:

[Quoted Text]
> I'm sure this is a stupid question, but how do I get the User's login when
> they open the form? I need to run the login against an XML flatfile to
> provide access level for the form. I know InfoPath has "User Roles" but they
> fall short when crossing multiple Domains. So I'm going to have my own
> library of users to check against. However, I can't seem to find out how to
> capture the users login when they open the form. Anyhelp would be
> appreciated.
>
> Thanks
> --Patrick Temple
RE: How to get user login
Patrick Temple 19.07.2006 13:37:01
Kalyan,

thanks for the links, I read through them and their subsequent links. I'm
not sure I found what I needed. Lots of references to VB and C#. I should
of been more specific. I'm using JScript in my forms. These are the
functions I saw being mentioned, maybe you can let me know if one of these
works with JScript or where to find the JScript functions.

Environment.UserName
Context.User.Identity.Name

I also saw some stuff about web services and what not, I don't want to get
that involved for a cross reference.

Anyway, if you or anyone else can point me in the right direction, I
appreciate it. Meanwhile, I'll try playing with these two functions.

Thanks

"Kalyan Reddy" wrote:

[Quoted Text]
> Hello Patrick,
>
> Please read the Links below
> http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=2760
> http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=2227
>
> Hope this helps you.
> --
> Kalyan Reddy
> Visit http://www.autonomysystems.com
>
>
>
>
> "Patrick Temple" wrote:
>
> > I'm sure this is a stupid question, but how do I get the User's login when
> > they open the form? I need to run the login against an XML flatfile to
> > provide access level for the form. I know InfoPath has "User Roles" but they
> > fall short when crossing multiple Domains. So I'm going to have my own
> > library of users to check against. However, I can't seem to find out how to
> > capture the users login when they open the form. Anyhelp would be
> > appreciated.
> >
> > Thanks
> > --Patrick Temple

Home | Search | Terms | Imprint | Contact
Newsgroups Reader - provided by WiredBox.Net