Skip 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.

writing a script that will find record based on a specific user

Featured Replies

Hi All~

My latest dilemma involves writing a script that will find all the records that were created by a specific user.

Basically it breaks down like this:

User logs into the database.

User wants to know what POs (records in this case) they've made and are still active (Y/N radio button).

User runs script that pulls in all records that match these criteria.

I can do all that. Easy with one user and one user ID. My issue is that in the script, how do I make a find step that will read the current user?

many thanks!

I've attached a file with the script I'm trying to make work. This is just a work file. NOT PRETTY!

POs test.fp7.zip

oh and since it's user specific I had to make each one password protected. the login and passwords are sb/sb once there you can make your own user/password

Does each user have a separate account? If so, then all you need is a field in the PO "CreatedBy" that auto-enter the current user account name. With each PO "stamped," simply search for POs where CreatedBy = Get (AccountName).

  • Author

Does each user have a separate account? If so, then all you need is a field in the PO "CreatedBy" that auto-enter the current user account name. With each PO "stamped," simply search for POs where CreatedBy = Get (AccountName).

ok... I have that and it seems not to be working. Will the Get (AccountName) pull in the name of the account that is logged in? for example if the account SB is logged in and i run the script that Finds Records based on "POs::PO_Requester: [Get (AccountName)]"

Thanks again for all the help!

  • Author

in other words....

http://t.co/Dis6RFp

that's a screen shot of what I'm fighting.....

Before the Perform Find script step, set a variable with a calculation of Get( AccountName ). Then you can enter that variable name in the Criteria field in your screenshot.

  • Author

thanks again for the help!

But I think I'm missing a step

Here's what I have

http://twitpic.com/65resn

then

http://twitpic.com/65rg81

Please oh please tell me the errors of my filemaker ways!!!

Does this work for you?

POs test2.zip

  • Author

YES!!!!

Thank YOU SO MUCH!!! i've been fighting with that all day! I now get beer.

I now get beer.

Is that how it works?

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.