Newbies karl00 Posted April 14, 2003 Newbies Share Posted April 14, 2003 i am looking for advice please. i wish to create a script 'a' which specifies an action based on which password the user has entered; e.g. if password=abc, perform script 'b', else if password= def, perform script 'c'. what i cant find anywhere is how to get the if statement to read the password which had been entered ...?? thanks !!! Link to comment Share on other sites More sharing options...
Fitch Posted April 14, 2003 Share Posted April 14, 2003 A quirk of FileMaker is that you can't actually check passwords, but rather you check Groups. So, the first thing you do is assign all your passwords to groups. Status (CurrentGroups) gives you a list of passwords that belong to the current group. To check a particular password per your example: If [ PatternCount (Status (CurrentGroups), "abc"] .. Perform Script Else ..If [ PatternCount (Status (CurrentGroups), "def"] .... Perform Script [c] etc. ..End If End If Link to comment Share on other sites More sharing options...
cjaeger Posted April 14, 2003 Share Posted April 14, 2003 Are you using the internal FileMaker password mechanism? FileMaker did not include a "Status(Current Password)" for obvious reasons. But here is a workaround: Define different groups for every password you have in your list. You can retrieve the current group (and thus identify the current user "ID") by Status(CurrentGroup). Link to comment Share on other sites More sharing options...
Newbies karl00 Posted April 14, 2003 Author Newbies Share Posted April 14, 2003 thanks .. i got it working!!! Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 7848 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