Jump to content

User View + Editing


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

Recommended Posts

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
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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