Newbies jrobie23 Posted July 11, 2008 Newbies Posted July 11, 2008 I'm trying to have the contents of a field (container, global or otherwise) show an image based on the person logged in (username). If "bob" is the user, his associated image (stored on the server) will be shown on a given layout. I've read a bunch of the posts in here and in the container sub group, but can't seem to nail down this answer. My initial guess was a calculation "if" statement with the test results simply referencing the filename (bob.jpg), but can't seem to get that to work either.
mr_vodka Posted July 12, 2008 Posted July 12, 2008 I would start with a user preference/session table where you could store the user's image. Make sure that each user's account name is unique. Then as part of the opening script, capture the user's account name in a global text field and with a relationship keyed from this global field to the session table, you should be able to set another global container field with the associated image from the session table. Since the set field is a global field, you can now reference this field anywhere in your solution and it dispaly individual data for each user.
Newbies jrobie23 Posted July 14, 2008 Author Newbies Posted July 14, 2008 Thank you, Thank you!! You are a gentleman and a scholar Mr. Vodka. I mistakenly used the "Get Username" for a bit until I realized the error of my ways. Now we're cookin' w/ gas. -jason.
Recommended Posts
This topic is 6036 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