Jokez Posted October 14, 2005 Posted October 14, 2005 (edited) Hello! Im trying the function Get(UserName) but I only get the name of the user on the computer not in the database? How do I get it from the database? Regards Jocke Edited October 14, 2005 by Guest
Steven H. Blackwell Posted October 14, 2005 Posted October 14, 2005 There is no "user" per se in the database. The value from Get(UserName) is taken from the name in application preferences. You can use Get(AccountName) to return the name of the active Account, i.e. the Account that opened the file. If you want the value in some field that you created that is called "User" then you have to extract that in the normal manner through the calculation engine. HTH Steven
Jokez Posted October 14, 2005 Author Posted October 14, 2005 Works fine but the field doesnt update if I change the user, but thats probbably some setting I have to change :
BrentHedden Posted October 14, 2005 Posted October 14, 2005 From experience, using the Get(UserName) is a pretty unsecure way of providing credentials. Because any user can change this info at any time, with or without having your program open. Unless they are using a runtime, then that changes things. Make relog a scripted process. Then assign the field needed with the AccountName desired as part of the last script step.
Steven H. Blackwell Posted October 14, 2005 Posted October 14, 2005 Works fine but the field doesnt update if I change the user, but thats probbably some setting I have to change That's because there is no connection between the Account Name and the User Name from preferences. Steven
-Queue- Posted October 14, 2005 Posted October 14, 2005 Set the calculation field to be unstored in Storage Options, if you want it to update automatically.
Recommended Posts
This topic is 6978 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