Skip 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.

Username problem

Featured Replies

  • Newbies

I need to setup a login for an application. The login is not so much from a security perspective but more from the point of view of determining which user is using the database. The login name will then be inserted into various database records created by the user. The username needs to be common across many related databases.

I was hoping to use the "User name" field in the application preferences. However I can't find a way of editing this field via a script.

Hi Stephen,

If you want to edit the username (as set in the 'Application Preferences' dialog) via a script, you will need to use a plug-in such as DialogMagic from New Millennium Communications.

DialogMagic:

http://www.nmci.com/Product_Overview.htm?pid=P62XAGWYVVA6V34XWFP5&-session=dwc:72AE1457F79F341E651D4760F5EE5413

...which provides the function External ("DM-AppPrefs", paramenter) for automatically setting various prefs including the user name via a script.

However there are a couple of other options.

One would be to set up a different group for each user (ie assign every password to a different group) and then use the Status(CurrentGroups) function to identify who it is that is logged in.

Another would be to use your own separate login and password arrangement, and have the username of the person who logs in written to a global field. Then you will be able to reference the relevant global field whenever you want to access the name of the current user. In this scenario, an auto-enter field for creator would use the auto-entry by calculation option to pick up the value from the global username field, rather than the standard creator name option.

Hope that gives you some ideas and options to work with.

It really depends on what you want to do and what's your set up

- "simply" record username of who created/modified a record: use built-in Username; despite its limitations it might be good enough

- reliably record username of who created/modified a record in a user-proof way

-- Subhypothesis 1: you've a "constant" and limited number of users:

Create a password for each user, associate it with a group, retrieve user by the Status (currentGroupus) function

-- Subhypothesis 2: you've a "variable" and/or large number of users:

Create you own login scheme, with a Users.fp5 file.

The example CobaltSky mentioned is an excellent one

Get a file named "The Gateway" at www.fmfiles.com for an open source one

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.