Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / March 2007

Tip: Looking for answers? Try searching our database.

Can I limit access to a form to just certain users?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Meg - 27 Feb 2007 21:23 GMT
I developed a form for training and I would like to know if I can limit
access to just certain users?
S.Y.M. Wong-A-Ton - 27 Feb 2007 23:52 GMT
What kind of access to you have in mind? Access can be set on a network level
down to roles in a form. If you want to keep it simple, you can publish the
form template to a network location that is only accessible by the users who
you want to allow to use the form.
---
S.Y.M. Wong-A-Ton

> I developed a form for training and I would like to know if I can limit
> access to just certain users?
Meg - 28 Feb 2007 14:06 GMT
I guess I can get our network people to limit the access.  I guess I was
thinking I could set up a UserID and Password for each person.  Am I thinking
wrong?

Thanks,

MEG

> What kind of access to you have in mind? Access can be set on a network level
> down to roles in a form. If you want to keep it simple, you can publish the
[quoted text clipped - 5 lines]
> > I developed a form for training and I would like to know if I can limit
> > access to just certain users?
S.Y.M. Wong-A-Ton - 01 Mar 2007 04:56 GMT
No, you could, but it is not easy to set up, since you would have to build
(read: code) it in yourself using a task pane that has a way to check
usernames/passwords against a data store containing credentials.
---
S.Y.M. Wong-A-Ton

> I guess I can get our network people to limit the access.  I guess I was
> thinking I could set up a UserID and Password for each person.  Am I thinking
[quoted text clipped - 13 lines]
> > > I developed a form for training and I would like to know if I can limit
> > > access to just certain users?
Meg - 01 Mar 2007 13:04 GMT
Thanks I read and copied the code yesterday and it did work, but I just done
the password.html.

However, I am not sure I understand how it works exactly.  
Can a user change their own password and/or where exactly does it store the
passwords, etc?  do you know?

Thanks,

MEG

> No, you could, but it is not easy to set up, since you would have to build
> (read: code) it in yourself using a task pane that has a way to check
[quoted text clipped - 19 lines]
> > > > I developed a form for training and I would like to know if I can limit
> > > > access to just certain users?
S.Y.M. Wong-A-Ton - 02 Mar 2007 06:14 GMT
Which code did you copy?
---
S.Y.M. Wong-A-Ton

> Thanks I read and copied the code yesterday and it did work, but I just done
> the password.html.
[quoted text clipped - 30 lines]
> > > > > I developed a form for training and I would like to know if I can limit
> > > > > access to just certain users?
Meg - 05 Mar 2007 11:38 GMT
Here is the code I copied:

<html>
   <head>
       <script language="javascript">
           var thisXDocument = null;
           function initialize()
           {        
               thisXDocument = window.external.Window.XDocument;
           }
           function changeView()
           {    
               var userName = tbUser.value;                    
               var password = tbPassword.value;                
               /*Access your database to find out if the logged in user is
a valid user or not.        */        
               thisXDocument.View.SwitchView("Main Form");
           }
       </script>
   </head>
   <body onload="initialize()">
       <table>
           <tr>
               <td>
                   Username:
               </td>
               <td>
                   <input type="text" name="tbUser" id="tbUser" size="15">
               </td>
           </tr>
           <tr>
               <td>
                   Password:
               </td>
               <td>
                   <input type="password" name="tbPassword" id="tbPassword"
size="16">
               </td>
           <tr>
               <td></td>
               <td>
                   <input type="submit" value="Submit"
onclick="changeView();">
               </td>
           </tr>
       </table>
   </body>
</html>

Thanks,

MEG

> Which code did you copy?
> ---
[quoted text clipped - 34 lines]
> > > > > > I developed a form for training and I would like to know if I can limit
> > > > > > access to just certain users?
S.Y.M. Wong-A-Ton - 06 Mar 2007 06:50 GMT
The code does not seem to contain anything to retrieve/store user names and
passwords. Where the comment

/*Access your database to find out if the logged in user is a valid user or
not. */    

is located, is where you have to write your own code to find and check the
user's credentials.
---
S.Y.M. Wong-A-Ton

> Here is the code I copied:
>
[quoted text clipped - 87 lines]
> > > > > > > I developed a form for training and I would like to know if I can limit
> > > > > > > access to just certain users?
Meg - 06 Mar 2007 11:24 GMT
Thanks so much for your help.  I write some code but not much and it would
certainly take me forever to write this.  Do you by any chance have an
example of code of what I would write to do this?

MEG

> The code does not seem to contain anything to retrieve/store user names and
> passwords. Where the comment
[quoted text clipped - 98 lines]
> > > > > > > > I developed a form for training and I would like to know if I can limit
> > > > > > > > access to just certain users?
S.Y.M. Wong-A-Ton - 07 Mar 2007 06:04 GMT
Unfortunately, I do not have an example of this, since I've never done it.
Where did you get the code. Did the site or book not list an example?

I guess it all depends on what data store you're accessing. Currently, I do
not see an easy way to call such code from javascript embedded in an HTML
page. Have you already tried searching the web on "retrieve records database
javascript" or something similar?
---
S.Y.M. Wong-A-Ton

> Thanks so much for your help.  I write some code but not much and it would
> certainly take me forever to write this.  Do you by any chance have an
[quoted text clipped - 104 lines]
> > > > > > > > > I developed a form for training and I would like to know if I can limit
> > > > > > > > > access to just certain users?
Meg - 07 Mar 2007 12:14 GMT
I copied it I thought from someone on this site, however I am not sure.  I
don't think I need it now, because I gave access to only certain people on
the network.

anyway I may do some more searching after I get this form done.

Thanks,

MEG

> Unfortunately, I do not have an example of this, since I've never done it.
> Where did you get the code. Did the site or book not list an example?
[quoted text clipped - 114 lines]
> > > > > > > > > > I developed a form for training and I would like to know if I can limit
> > > > > > > > > > access to just certain users?
S.Y.M. Wong-A-Ton - 07 Mar 2007 21:18 GMT
Okay. If I find a solution on my end, I'll let you know.
---
S.Y.M. Wong-A-Ton

> I copied it I thought from someone on this site, however I am not sure.  I
> don't think I need it now, because I gave access to only certain people on
[quoted text clipped - 124 lines]
> > > > > > > > > > > I developed a form for training and I would like to know if I can limit
> > > > > > > > > > > access to just certain users?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.