Jump to content

Can Username be scripted?


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

Recommended Posts

Hi all,

Just a quick question

Rather than using the menu item Application Preferences to change the Username I was hoping to set up a global field which when scripted would set the current username to whatever was in the global field.

I cannot find the set CurrentUsername function anywhere, does anyone know a way to do this please?

I'm on FM 6 on Win2K

Thanks all

Ed.

Link to comment
Share on other sites

open regedit, look for HKEY_CURRENT_USER/Software/FileMaker/preferences.

For instructions on how to implement this, search for registry in all forums.

see attachment for registry info (regedit.exe)

vbs-solution here

http://www.fmforums.com/threads/showflat.php?Cat=&Board=UBB15&Number=39227&Forum=All_Forums&Words=registry&Match=Entire%20Phrase&Searchpage=1&Limit=25&Old=allposts&Main=39227&Search=true#Post39227

Bild 16.jpg

Link to comment
Share on other sites

but: it's far easier to implement kind of a "lightweigt" login routine which requires the user to identify first, then put this into a global.

see custom login routine for this.

if you are using filemaker security, you can setup different passwords with same rights in different groups, then get the group name with status(currentgroup). This will also identify your users, but can be a pain to implement with many users.

Why not just trust them to select the right name from a popup list, and type a short password. no tight security necessary here.

Link to comment
Share on other sites

This topic is 7590 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.