Bill_misc_IT Posted May 9, 2008 Posted May 9, 2008 I have a database that multiple employees use to submit their expense reports. I'm trying to write script to only show the records for the employee who logs in: Get (Account Name) Find records: name=Account Name Not sure the best way to do this, so an employee doesn't see everyone else's expenses? Thx
Highbury Posted May 9, 2008 Posted May 9, 2008 Hi, How about setting the 'find' script to run at startup? (File/File Options/then the Open/Close tab where you can set any script to run at startup or closedown).
Bill_misc_IT Posted May 9, 2008 Author Posted May 9, 2008 That's what I'm trying to do, but can't figure our how to make a find request that searches based on get function? Here's my example: Perform Find[Restore] Find records when: Employee name: Get(Account Name) How do I insert functions or calculations in the find request criteria? It only appears to allow fixed values or boolean symbols?
mr_vodka Posted May 9, 2008 Posted May 9, 2008 Enter Find Mode [] Set Field [name; Get(AccountName)] Perform Find []
bcooney Posted May 9, 2008 Posted May 9, 2008 To answer your question about Find, you can set fields in find mode by scripting (pseudo-code) Go to Layout Find Enter Find Mode Set Field or Fields Perform Find Go to layout List View However, protecting one user from seeing a record created or "belonging" to another user is typically handled by privilege set record access. For example, users can view a record if the AccountCreated field = Get (AccountName). This supposes that you have the AccountCreated field set to auotenter the Get(AccountName).
Recommended Posts
This topic is 6043 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