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.

script step and passwords

Featured Replies

Hi,

I'm tweaking the access levels of a couple related databases. One is a timecard where each entry (via a portal) is a record in a related database. I have a script which is run after a timecard is filled out which goes to the related records, loops through them and performs a the setfield function and a calculation and, lastsly, "sendmail." When I run it as the non-administrator user it says "Your password does able enable you to do this, or this file is not modifiable." I can run this script fine as admin fine and I was able to trooubleshoot the problem to the "Go to related record" script step. I've given the user access to the necessary layout and fields in the related db (though I'd prefer only the script to have access to these), but cannot figure out what is causing the error. Any ideas or other things to double check?

thanks in advance

Nate

I would probably throw some pauses into the script or perform the operations manually to narrow the problem down to which scripted operation is failing.

-bd

If the password (and access privileges) don't allow certain action than it is valid also for the scripts and not only if manually executed by the user.

For ex, if the user password don't allow creation of new records than this cannot be done neither by some script.

As LiveOak suggested you disable error capturing and individuate the offending step. Be aware, however, that, as I said above, if the action is not permitted by the password and access privileges, than it cannot be performed neither by the script.

Dj

  • Author

Nuts! I really wanted to allow scripts to do things that I didn't want people manually messing with. Is there any workaround for this? I assume I'm not the only one who's wanted to do stuff like this. I tried giving the password access to the fields, but not the layout but that didn't work either. Any ideas?

thanks again

Nate

Hi Nate,

Control access through your layouts and navigation buttons. Allow the non-admin pass to have access to the layout, but remove that layout from the layout menu in browse mode. Set the "available commands" for the non-admin pass to "none", but do not uncheck the edit records or delete records boxes.

  • Author

Alrighty, I'll give it a go.

thanks!

Nate

Hi Nate,

Control access through your layouts and navigation buttons. Allow the non-admin pass to have access to the layout, but remove that layout from the layout menu in browse mode. Set the "available commands" for the non-admin pass to "none", but do not uncheck the edit records or delete records boxes.

IMHO -- I will uncheck the Delete records and allow only admin or manager to delete something.

Much better is to hide status area and run everything from scripts.

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.