Angel01 Posted July 7, 2011 Posted July 7, 2011 Hi there, Just wondering other than using a field that uses Global Storage, is there a way to create a dedicated variable to each user? For example user 1 his variable is 10 User 2 does something and his variable is 12.. Variable that entirely depends on what that person does. I know one way to do this is to create a field with global storage...
comment Posted July 7, 2011 Posted July 7, 2011 Your question is not clear. You can declare variables using the Set Variable[] script step as well as during a calculation. These variables are user-specific (or rather session specific).
bcooney Posted July 7, 2011 Posted July 7, 2011 If you tell us why you feel you need the technique, what you're trying to achieve, we can provide better answers and help you avoid painting yourself into a corner.
Fitch Posted July 7, 2011 Posted July 7, 2011 Some people use the term "variable" when they mean "field," is that the case here? If the idea is to have user data that persists between sessions, create a user table.
Angel01 Posted July 8, 2011 Author Posted July 8, 2011 Assuming you have 2 users using the database at the same time.. I have a set variable maybe say $name using custom dialog when they login wanting them to type that in. So 2 users were to use it at the same time, i mean type the same type, will the variable be dedicated to the each user? So far i have been doing that using Global storage for the field.. Example Case : User A Types James into $$name At the same Time User B types Johnny into $$name too since they use the database at the same time. What will the outcome be when i set a field to $$name? Will it show James for User A and Johnny for User B? Thats what i want.. Dedicated for each user that is online.
comment Posted July 8, 2011 Posted July 8, 2011 User A Types James into $$name Unfortunately, it's not possible for a user to populate a variable directly by typing in a custom dialog. But - as I said - variables are user-specific, so there will be no conflict if two users have a variable with the same name but different content. using custom dialog when they login I am not sure what that means. If you're trying to replace Filemaker's login process with your own, I'd advice against that.
Angel01 Posted July 8, 2011 Author Posted July 8, 2011 thats great to hear... Global Storage for a field works fine too.. Hmm i was just thinking of ways to block passware form doing its job... @_@
comment Posted July 8, 2011 Posted July 8, 2011 I'm not sure what (if any) those ways are, but I'd suggest caution: http://fmforums.com/forum/topic/46502-known-vulnerabilities/
Recommended Posts
This topic is 5238 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