jwillard Posted May 27, 2005 Posted May 27, 2005 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?
jwillard Posted May 27, 2005 Author Posted May 27, 2005 Excuse my ignorance, but do you want me to post the whole FM file? Or just paste pertaining parts?
Reed Posted May 27, 2005 Posted May 27, 2005 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.
jwillard Posted May 27, 2005 Author Posted May 27, 2005 Here is the file. The layout is "Buttons" and the Script is called "Find Jeffs Tasks" mytasklayout.zip
Reed Posted May 27, 2005 Posted May 27, 2005 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
jwillard Posted May 27, 2005 Author Posted May 27, 2005 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...
jwillard Posted May 31, 2005 Author Posted May 31, 2005 Dana, Did you set up a differnet script for each user? If not how is the user name calculated into the find? Thanks, Jeff
Recommended Posts
This topic is 7455 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 accountSign in
Already have an account? Sign in here.
Sign In Now