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.

Newbie: Using Username to find records

Featured Replies

I am trying to use the currently logged on username to do a find. I have added the currently logged on username to a field, then created a script to look for matching name in another field, and display records. When I execute, the user name disappears from the field and I get the "no matching Records" message. Is there another way I can do this to make it work?

Can you post your file?

  • Author

Excuse my ignorance, but do you want me to post the whole FM file? Or just paste pertaining parts?

If you can just paste the script that you're using to do the find, that might help. But it might ber easier if you zip and post the file so someone else can reproduce the behavior you're observing.

It sounds like your script might not be in the right mode (browse vs. find) when you're performing the find. But seeing the script or the file would make the problem easier to diagnose.

  • Author

Here is the file. The layout is "Buttons" and the Script is called "Find Jeffs Tasks"

mytasklayout.zip

Your script won't work because you put a field name in the find request. In a fixed find request you can only put literal values. I've added a new script to your system and put a couple of new buttons on the button layout. The top one allows you to login as different users to test the find. I added accounts for Li and Dana (me) None of the accounts have passwords.

Let me know how this works for you.

Dana

mytasklayout.fp7.zip

  • Author

Dana,

Ah I see (said the blind man). I didnt know I couldn't use field names in a find request. As my profile says I am very new to FileMaker.

Your script does just what I wanted. Now I can analyse each part and see how to do it myself.

Thanks alot for your help,

Jeff

BTW Cute Baby...

  • Author

Dana,

Did you set up a differnet script for each user? If not how is the user name calculated into the find?

Thanks, Jeff

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.