Pescador Posted June 14, 2007 Posted June 14, 2007 Right now I have the database set up to only allow users to see records according to username. What I am hoping to do is when they login in I want the it to open up their employee page. I have tried a couple of things but no success. So if their username is sunshine then when they login into the database it takes them the sunshines employee page. I tried creating a script so that under file options I could have it run the script but I am not having success.
Ender Posted June 14, 2007 Posted June 14, 2007 If you store the username in a field in the Employee table, you can set up a relationship from a globally stored gUserName and the username field in Employee. Then have the startup script populate the global with the current username, and use a Go to Related Record[] script step to jump to the related record.
Pescador Posted June 14, 2007 Author Posted June 14, 2007 In fear of looking a little dumb. I have tried to use your suggestion. I am not completely clear on what you are saying. Is it possible to put together a short example of how it might work. Thanks.
mr_vodka Posted June 15, 2007 Posted June 15, 2007 As Ender said, create a global text field and then on the opening script, store the username in this field. Create a relationship between this global field and the user name in the Employee table. We are assuming that each Employee record has a user name associated with it. Now again as part of the opening script, you could use a Go to Related Record Step based on the relationship you created to the Employee table occurence. This will show each user's emloyee record.
Andragoras Posted August 6, 2007 Posted August 6, 2007 (edited) How would this work for records that have already been created? I created a field that captures login info, but previously entered records don't display who created the record. Hence a user logging in won't see anything they did in the past. Ideas? Edited August 6, 2007 by Guest
Vaughan Posted August 7, 2007 Posted August 7, 2007 You'll need to add that information to each existing record.
Recommended Posts
This topic is 6319 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now