Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

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

Posted

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

Posted

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!

Posted

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.

Posted

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!!!

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