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.

Find based on creator

Featured Replies

Here's another one:

I'd like to implement a security feature:

I have records, all of which have a field called "Creator", that is automatically filled in when a new record is created.

Now I don't want people to see each other's records. So when a user logs in, I'd like to use the Status(CurrentUser) calculation somehow to create an Open-Document-Script that will automatically do a find on the field "Creator" to match the current user, so that only a subset of all the records is displayed, which only belongs to the creator. How would I be able to make that possible?

The "Find" script step only seems to offer "hard-coded" finds, not conditional ones (i.e. based on user input, calculation, etc.)

Thanks for your help guys! (and girls, of course)

Create Global Fields and reference them in the script instead of the hard coded one.

In other words,

Enter Find Mode

Set Field (Field1, Global Field1)

perform find

HTH

Lee

smile.gif

Hi Awayand,

What you are looking for is:

Enter Find Mode [ ]

Set Field ["Creator", "Status(CurrentUserName)"]

Perform Find [Replace Found Set]

That will give you a find based on calculation, which will locate all records created on the currrent workstation. cool.gif

Nobody here seems to like the record-based access feature introduced in Filemaker 5.5. You can use it to further restrict access to records for additional security.

take Lee's Global

g_Creator,

set it with CobaltSky's Skript step

Set Field [g_Creator; Status(CurrentUserName)}

and validate with a calulation (in Define Passwords)

Exact(g_Creator;Creator)

another hint:

Instead of Status(CurrentUserName) use a proprietary login system based on a name/password list. The UserName in FileMaker can be too easily changed or duplicated.

Actually, you don't need a g_creator to set record level access, if that's what you want to do.

All you need is a browse access formula in password privileges specified as:

Creator = Status(CurrentUserName)

No global fields required. wink.gif

That aside, there are probably at least two reasons why record level access was not mentioned on this thread. One is that it is only indirectly related to the question that was asked.

The other reason, however, is a more general one. The use of record level access limits the purview of the resuilting .fp5 files to use with FMPv5.5 and above - whereas there are many contexts within which users expect to be able to open and access .fp5 files with FMPv5 also. Whereas some v5.5 features simply limit or disable marginal or ancillary functions when a file is accessed with an earlier version, record level access is a show stopper, and therefore must be used with caution and 'context awareness', lest half the user base in an organisation be 'orphaned'.

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.