October 14, 200520 yr 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, 200520 yr by Guest
October 14, 200520 yr 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
October 14, 200520 yr Author Works fine but the field doesnt update if I change the user, but thats probbably some setting I have to change :
October 14, 200520 yr 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.
October 14, 200520 yr 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
October 14, 200520 yr Set the calculation field to be unstored in Storage Options, if you want it to update automatically.
Create an account or sign in to comment