Skip 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.

Running a Script Automatic

Featured Replies

Is there a way to make a script run auto everytime you open a layout...

I know there is an easy way by putting the script on the script that opens tha layout... but there are so many different way to the same layout I thought there might be another way...

Example:

I have a script that will check certain boxes when a certain user has opened the layout... and when other users open the same layout nothing is checked.

Need like a auto run of a script.

Thank you,

Joseph

file/file options

you can define a start up script and such there

I don't think that will do it.

There isn't anyway to run a script using FileMaker's built in capabilities just because a user changes layouts via the Rolodex. The only way that I can think of is to script the movement from layout to layout via a button, or ScriptMaker's Dropped Down list (Key Combinations)). Perhaps one of the Event Plugins can do this, but I'm don't think so.

HTH

Lee

  • Author

I agree... But the thing is there is about 20 different ways to go to this layout...

Really do not know what to do..

All I want to do is hide a profit field from others but I can still see it...

Maybe that is what I should have asked to began with.

Thank you

You can limit what layouts they can't go to using Access Privileges.

  • Author

MMM... I will try that also... But what happends when they need to go to the layout that has a field that I do not want them to see...

My plan was to make a portal that sits over these fields and when the correct users goes to this page the portal disapears... I have done these kind of things before..

Is this the best way?

There are ways to control what user has access to based on their privileges. Do a search of Location: [color:orange]Main Index[color:blue] » Forum Index[color:blue] » Database Schema [color:blue] » Accounts & Privileges for limiting access.

My father in law is about to pass away any minute now, so I can't really help you with the how to's or even the find to try right now. Others I'm sure will jump in to help with your questions if you have any more.

Lee

  • Author

wow... Sorry

Thank you

In my application I removed access to all layouts from the "rolodex" and used my own scripts to perform ALL navigation steps.

Call me a "control freak" if you want, but it works well.

The best way to control field access is through Account setup, like Lee suggested. Go in, create a new priv. set and you will be able to customize access to tables, layouts, scripts, etc. If you choose to customize table access, you will be taken to an area where you can assign field-level access (or the lack there-of, as in your case.) Your other option would be to create multiple layouts and leave the "private" fields off of one and only allow certain users access to that layout (but again, done through Accounts). Your other users, who can see the fields, will go to the "full disclosure" layout. I'm sure there are other ways but FM7 has a good security system and I utilize it as much as possible. With field-level access controlled through Accounts, it doesn't matter how a user accesses the layout. Hope this helps.

:goodpost:

Thanks for saying it clearer, and a lot better than I did.

:iagree:

Lee

  • Author

Thank you Guys....

I will have to keep reading on this subject...

Joseph :

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.