Tissot Posted December 3, 2007 Posted December 3, 2007 (edited) Hi, When User opens the File, the Current Users record should display. What am I doing wrong in the Relation? Regards Ron Edited December 4, 2007 by Guest
Matthew F Posted December 4, 2007 Posted December 4, 2007 Your post is a bit cryptic. 1. Why would a the current users information display when they open a file? Did you set a startup script with 'File Options..." 2. Perhaps what you mean to do is have users open the User_LoggedIn table which is populated by a single record. The user information should be accessible only when they enter u.AccountName. 3. Your relationship graph shows two tables connected with a sideways 'T' on the left side. This means that this is relating to a field that for some reason can't be generated by the relationship (probably its a calculation)
Tissot Posted December 4, 2007 Author Posted December 4, 2007 Hi 1. Yes ( I want to grab info like GUI Language, Access...) 2. No, the record dont even need to diplay, because the script only gets the info for setting (language etc.) up on startup. 3. Yes, Get(AccountName) Sorry for the confusion. Ron
Matthew F Posted December 4, 2007 Posted December 4, 2007 I still don't quite get it. Which file is the user opening? Which table will they viewing? What behavior are you trying to achieve? What happens when you try it?
bcooney Posted December 4, 2007 Posted December 4, 2007 Maybe you're after this: 1. User logins in. 2. Open Script has steps to go to users layout find in the AccountName field Get (AccountName) 3. Now you know the UserID. Publish it to a global variable, and any other "session" prefs that you'd like to either global fields or variables.
Tissot Posted December 4, 2007 Author Posted December 4, 2007 (edited) Exactly, but I'm obviously to dumb to do it. But can I not do that via a relation? (I hate Preform Find) Regards Ron Edited December 4, 2007 by Guest
bcooney Posted December 4, 2007 Posted December 4, 2007 (edited) Oh, come on! Just follow my steps. You'll need an AccountName field in your Users table. Sorry, it's a find, since you're making use of FM's Get (AccountName). Really, not a problem. Edited December 4, 2007 by Guest
Tissot Posted December 4, 2007 Author Posted December 4, 2007 I know how to do it via Perform find....... so it seems like it’s the only way?!?! Thanks for reminding me to stop thinking and get on with the job. How can you stop this syndrom? Regards Ron
bcooney Posted December 4, 2007 Posted December 4, 2007 Only way I know. SOP really. I think it's funny that you need to stop thinking to get on with the job. I have to try developing that way. btw, aren't periods in field names a no-no?
Tissot Posted December 4, 2007 Author Posted December 4, 2007 Well FM Developing is easy isn't it? Come on, you hardly need your Brain...(uppps... I must have forgoten about the previous post) I always use periods?!? Never been a problem. How do you do it? I'm always open to learn more. Ron
AudioFreak Posted December 4, 2007 Posted December 4, 2007 I think you'll find that alot of people have a different field naming scheme. There is a thread on it somewhere here. In fact I think Barbara started it. I prefer the "_" Such as "Name_First" Or "c_Total_Cost" "c" meaning it's a calculation field. Makes it easy to find fields if you have a lot of em. Michael
bcooney Posted December 4, 2007 Posted December 4, 2007 Did I start it? Oh, yes, the Best Practices thread. Have you read the FM Dev Conventions doc? They explore naming conventions in detail. I use the Name_First way.
AudioFreak Posted December 4, 2007 Posted December 4, 2007 Did I start it? Oh, yes, the Best Practices thread. Have you read the FM Dev Conventions doc? They explore naming conventions in detail. I use the Name_First way. No I haven't I just learned from getting help here over the years looking at others naming schemes and adopting what seemed logical. I'll have to read it though. Michael
Recommended Posts
This topic is 6257 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