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.

How can I lock fields of a record, but not all fields?

Featured Replies

Ok here is what I need to do.

I have a database with many fields used to controlling the disposition of material.

I also have a need to lock this data after it has been approved. (no problem with this).

Now here is the issue.

I need all those fields locked with the exception of 3 fields that need to be edited at a latter time,

These fields would be for such things as entering in a RMA number, when the date replacements have been brought in, or a closed date when the item record has been finished.

How can I lock fields of a record, but not all fields?

James

FM 8.5 Pro/Advanced

FM Server 8

You could go ahead and lock the record. Then for the 3 fields, enter the data via script and set the script to run with full access privileges.

Steven

  • Author

This might work. Will I have to have a new window for this or is there a way to enter the data from strait into what looks like the same fields?

Where do I set the script to run with full access privileges? I have seen it before but now I can not find where I saw it.

James

Use the custom dialog Script step to create your UI for this. Run script with full access privileges is at the bottom of the scriptmaker window.

Steven

  • Author

Are you talking about the custom dialog box in the script as the UI?

This would cause a problem as they slowly add additional fields say 5 or 6.

Or is there a way to create a layout and then run that layout with full access?

I have tried having a script open that layout however that did not allow the editing of the fields.

Thanks

James

Edited by Guest

Hi

it depends in wich manner you have loocked the record.

If you loocked it with the use of privileges, but still the user can see the fields, sure he can insert the cursor into those fields, too.

So a script:

Go to Portal Row [No dialog; Get(PortalRowNumber)]

Show Custom Dialog ["Complete the 3 fields"; DB::field1;DB::field2;DB::field3]

may solve your problem

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.