Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

Get user from file NOT computer....


This topic is 6978 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted (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 by Guest
Posted

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

Posted

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.

Posted

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

Posted

Set the calculation field to be unstored in Storage Options, if you want it to update automatically.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.