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.

User View + Editing

Featured Replies

Ok I have a database and want users to be able to edit their own records but not others, so when they log in I would run a script to only view the users records i.e. do a search and restrict the output to only their records. if somehow they manage to view others records, I would like to Get the user name and tie it to a field created on the record when they create it which contains their user name.

I have actually done the field creation and the users name is inserted into the field upon creation, however I cannot seem to find a way to get the name of the "Current User" and use it to find only their records based on the field with the user name inserted when the record is created.

Do I need FMP Advanced to do this ? If so even the trial download does not work and just gives me the FM Pro download.

So will I have to upgrade to FMP Advanced to achieve this ?? seems a bit odd...

Edited by Guest

You can use Get(AccountName) to return the Account Name of the currently logged in account, which you can use:

- in your record-level restrictions in Manage -> Accounts and Privileges

- in scripted finds

by comparing against a field defined to autoenter Creation Account Name.

You don't need FMPA to do this.

  • Author

When I do this a error is returned "This function cannot be found"

Get Account name does not appear in the functions list neither does Get Current user I typed in by hand but to no avail...

[color:red]Get ( AccountName ) is the very first Get Function. It's there. What version of the products are you using?

Steven

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.