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.

Featured Replies

  • Newbies

I’ve a FMpro 9v03 database where i’ve used in a script the function ‘Get useraccount’. The result of the function is always ‘Administrator’ even if another user connecting the database. In the list of the accounts&privileges are many different users with a name that match the names of the employees in the database. The database hold information about the absent of many employees. I want to make a startup-script that give employees the possibilities to view their own information (without viewing the rest of the information of the other employees). Can someone tell me why the function ‘Get useraccount’ don’t give me the name of the account who’s visit the database?

Thanx for your awnser

Roland Tempels

[email protected]

What are you using, Get(UserName) or Get(AccountName)? There are two different function. Get(AccountName) should return the name of the Account that opened the file.

Steven

  • Author
  • Newbies

Thank you for the awnser.

I use get(accountname). When i login with a accountname and password (know by accounts & privileges of the database)the result of 'get(accountname)' = Administrator, always!

I use a calculation field (global) with 'get(accountname)' to see the result, and also a script with the same function to find the user who's open the database with the same name in the database to give personal information.

get_account.JPG

Edited by Guest

Hi Roland

don't use global field.

Ann

  • Author
  • Newbies

Ann,

the global option is turned off now but the result is the same.

the database is transformed from FM version 6 to version 9. Could it be possible that in such case the get(accountname) doesn't work anymore? In version 6, i didn't use this function.

thank you for you help,

Roland

set unstored field.

Ann

sorry for my English

  • Author
  • Newbies

Ann,

you are the one!

Good knowledge don't need many (English) words.

It works!

Merçi beaucoup.

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.