darrenN Posted October 23, 2000 Posted October 23, 2000 Firstly is there any resources were I can get a "dictionary" on scriptMaker? Secondly I need a script a script that takes a user to a certain layout depending on the password they entered on opening the file. Any ideas of how this could be done?? Thanks
Kurt Knippel Posted October 23, 2000 Posted October 23, 2000 quote: Originally posted by darrenN: Firstly is there any resources were I can get a "dictionary" on scriptMaker? Secondly I need a script a script that takes a user to a certain layout depending on the password they entered on opening the file. Any ideas of how this could be done?? A "dictionary" on ScriptMaker? Try the help file, it has descriptions of all of the script steps. For your other question, you can accomplish this 2 ways. One is to create some groups, and assign passwords to those groups. For example, say you have 3 passwords (User, Manager, Master) and you create the following groups: User - contains all passwords, Manager - contains Manager and Master passwords, Master - contains only the Master password. Now you can use the StatusCurrentGroups command to determine where to go. For example: If [ PatternCount ( Status (CurrentGroups), "Master" ) >= 1 ] GotoLayout [masterLayout] Else GotoLayout [userLayout] ------------------ =-=-=-=-=-=-=-=-=-=-=-=-= Kurt Knippel Consultant Database Resources mailto:[email protected] http://www.database-resources.com =-=-=-=-=-=-=-=-=-=-=-=-=
Chuck Posted October 24, 2000 Posted October 24, 2000 quote: Originally posted by darrenN: Firstly is there any resources were I can get a "dictionary" on scriptMaker? Secondly I need a script a script that takes a user to a certain layout depending on the password they entered on opening the file. Any ideas of how this could be done?? Thanks Besides the help files, a good reference is Scriptology (www.scriptology.com), which includes information about all of the scripts steps as well as examples on how they can be used. Chuck
darrenN Posted October 24, 2000 Author Posted October 24, 2000 Tried what you said, as follows: PatternCount (Status (CurrentGroups),"Design") >=1, but I keep getting the following error message. "This field could not be found" so it thinks that "Design" should be a field when it's the name of one of my groups and passwords.
Kurt Knippel Posted October 24, 2000 Posted October 24, 2000 quote: Originally posted by darrenN: Tried what you said, as follows: PatternCount (Status (CurrentGroups),"Design") >=1, but I keep getting the following error message. "This field could not be found" so it thinks that "Design" should be a field when it's the name of one of my groups and passwords. Retype your PatternCount statement, you must have missed a quote or something. ------------------ =-=-=-=-=-=-=-=-=-=-=-=-= Kurt Knippel Consultant Database Resources mailto:[email protected] http://www.database-resources.com =-=-=-=-=-=-=-=-=-=-=-=-=
Chuck Posted October 25, 2000 Posted October 25, 2000 quote: Originally posted by darrenN: Tried what you said, as follows: PatternCount (Status (CurrentGroups),"Design") >=1, but I keep getting the following error message. "This field could not be found" so it thinks that "Design" should be a field when it's the name of one of my groups and passwords. Make sure you have the quotes around the word "Design". Also, I like to use a slightly shorter version of the calc. Leave out the >= 1 portion, since if it's greater or equal to 1, the calc will be interpreted as true. Chuck
darrenN Posted October 25, 2000 Author Posted October 25, 2000 Tried what you have said but it still comes up with the same error, I have deffinitly got quetes around the word "Design". don't know what else I can do really??
Keith Shelton Posted October 25, 2000 Posted October 25, 2000 I am experiencing this problem of FM thinking the entry is a field even though quotes are used. I am also in UK (using FM4). Seeing your problem, I am wondering if there is something different about UK keyboard. Perhaps someone could give us a simple test calc that would confirm the problem?
Kurt Knippel Posted October 25, 2000 Posted October 25, 2000 quote: Originally posted by Keith Shelton: I am experiencing this problem of FM thinking the entry is a field even though quotes are used. I am also in UK (using FM4). Seeing your problem, I am wondering if there is something different about UK keyboard. Perhaps someone could give us a simple test calc that would confirm the problem? Also, make sure that you have the latest revision installed, this could be a bug. ------------------ =-=-=-=-=-=-=-=-=-=-=-=-= Kurt Knippel Consultant Database Resources mailto:[email protected] http://www.database-resources.com =-=-=-=-=-=-=-=-=-=-=-=-=
Keith Shelton Posted October 26, 2000 Posted October 26, 2000 I don't know about DarrenN but we are using FM4v3 which I think is the latest. Perhaps we need FM5 but it would be nice to know first if that would fix it.
darrenN Posted October 27, 2000 Author Posted October 27, 2000 I'm using version 5 on a Mac, I've also got the free updater. 5.0v3.
yafreax Posted October 30, 2000 Posted October 30, 2000 well i don't know about all this PatternCount mumbo jumbo, why not just use the following in the start up script: If [ Status(CurrentGroups) = "Master" ] Goto Layout (whatever layout) and go from there Jeremy
Chuck Posted October 31, 2000 Posted October 31, 2000 quote: Originally posted by yafreax: well i don't know about all this PatternCount mumbo jumbo, why not just use the following in the start up script: If [ Status(CurrentGroups) = "Master" ] Goto Layout (whatever layout) and go from there Jeremy Actually, that might not work because the Status( CurrentGroups ) could return more than one group. That's why the PatternCount is used. Chuck
yafreax Posted October 31, 2000 Posted October 31, 2000 You see that's exactly the kind of attitude that gets people beat up in this world! Just kidding, actually it's just the kind of response that proves that you make more money than i do. (he he) well, thanks for the info on why the PatternCount "mumbo jumbo" is so important. I'm sure that will come in handy. Now why they don't have a StatusCurrent Password function is beyond my comprehension. Oh, that's so they can make more money in v6.0. . . Jeremy
Vaughan Posted November 6, 2000 Posted November 6, 2000 Some version of FMP use the semicolon as delimiter insetad of comma. So instead of... PatternCount (Status (CurrentGroups),"Design") ... try... PatternCount (Status (CurrentGroups);"Design")
Recommended Posts
This topic is 8788 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