Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Get (SystemUserName)

Featured Replies

With Get(HostName) FM pulls up the computer name. FM will also get it's own login id or account name. What I need to pull the computer login id. Is there anyway to do this?

Hopefully someone can help.

thanks

If you are talking about the windows logon user id and its not in an Active Directory environment, you will have to use some kind of VB script.

Take a look at this link

Get Windows User Name

"With Get( HostName ) FM pulls up the computer name."

Not at all.

This function returns the name of the computer that is *hosting* the file. This is not necessarily the name of the computer that the client is using: in fact if the file is shared on another computer running FM Server, the function *won't* return the client computer's name.

  • Author

interesting, thanks

  • Author

Thanks for the link and tip of using VB. If I do that, then it will not work on Apple computers, correct? Is there some way of doing this that will work on both Apples and PCs? We have both in our network.

You will probably have to adjust your script or run either the VBScript or Applescript depending on system platform detection.

  • Author

OK, how would I do that? Sorry, I'm new at this. Will this work on FM or is this only a web publish technique?

Sorry to ask, but where do I enter this? How does script maker deal with VB & Applescript? I am assuming it does, but I just can't see where.

thanks

It is fairly easy to get on a Mac, especially the short name. Which, by the way, you could fairly easily parse using just FileMaker, from the Get ( DocumentsPath ). But if you need the "long name" also, then I think you'd need AppleScript. It runs (very well) in a Perform AppleScript script step. But it has some peculiarities, such as that it either needs the field on the layout, or be specified by table (TO); easiest (and least breakable) to go to the layout.

SystemUser.fp7.zip

  • Author

Thanks,

One of my mac users tried this, but the fields were empty. Is there anything special we need to do?

Did you run the script, in the Scripts menu? It won't happen otherwise. If so, what Mac OS are they running? It won't work on Mac OS 9.

  • Author

I am trying to get some other bugs worked our right now. Thanks for the help, I will come back to this.

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.