Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

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

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

=-=-=-=-=-=-=-=-=-=-=-=-=

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

  • Author

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.

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

=-=-=-=-=-=-=-=-=-=-=-=-=

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

  • Author

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

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?

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

=-=-=-=-=-=-=-=-=-=-=-=-=

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.

  • Author

I'm using version 5 on a Mac, I've also got the free updater. 5.0v3.

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

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

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

Some version of FMP use the semicolon as delimiter insetad of comma.

So instead of...

PatternCount (Status (CurrentGroups),"Design")

... try...

PatternCount (Status (CurrentGroups);"Design")

  • Author

Cheers for that it worked a treat.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.