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.

Script for Only Viewing Documents Created by Current User

Featured Replies

  • Newbies

We have 80+ iPads using the FileMakerGo app.

 

I've created a table that includes three different layouts.

All layouts include the field Employee Name.

Employee name = Get(AccountName)

 

I've also created a Privilege Set for users that limits the records they see to records created by their user name.

Custom Record Privileges -> View -> Specify Calculation -> EmployeeName=Get(AccountName)

 

Now the user is only able to see data created by their user account and all other documents still show but they have <No Access> in all editable fields.

 

I want users to only have to scroll through their own, viewable, documents.

In order to do this I believe I have to write a script.

This script should only pull up documents created by the current user.

 

I've spent hours trying to get this done with little progress. 

 

Any suggestions?

 

Val

Actually, any Find done, such as primary_key > 0, will return only the records the user has permissions to view.  The other records are automatically eliminated from the resulting found set.

 

Steven

Create an account or sign in to comment

Important Information

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

Account

Navigation

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.