![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I would like to make a script that locks fields for a particular record, so that no data can't be entered any more. How can I obtain this? It is important to do this through a script. Data can be entered first, but after a validation script they should be locked. |
#3
| |||
| |||
|
|
Hi, I would like to make a script that locks fields for a particular record, so that no data can't be entered any more. How can I obtain this? It is important to do this through a script. Data can be entered first, but after a validation script they should be locked. I use FMP 8.5. Thanks in advance for any help. |
#4
| |||
| |||
|
|
In article <1hyb06f.alq4tlaeodeiN%hpuype (AT) gmail (DOT) com>, hpuype (AT) gmail (DOT) com (Hans Puype) wrote: Hi, I would like to make a script that locks fields for a particular record, so that no data can't be entered any more. How can I obtain this? It is important to do this through a script. Data can be entered first, but after a validation script they should be locked. By "locking", I suppose you mean to stop allowing users access, that is, clicking the "allow entry" checkbox in field format. I don't think you can do that with a script. However, you could make a global field that the users enter their data into. Then they click a "commit" button which would set the real field from the global, then clear the global. If the criteria for no longer allowing data entry are satisfied, this same script could set a hidden control field from zero to one. The script would begin with a test of this control field. If it contains a one, then a message pops up, "You are no longer allowed to enter data in this field", the global is cleared and the script exited. |
#5
| |||
| |||
|
|
Have your script change a Locked_Flag field. In the file's Accounts & Privileges, create a custom calc for editing and deleting that only allows the changes if the Locked_Flag field has not been set. Hans Puype wrote: Hi, I would like to make a script that locks fields for a particular record, so that no data can't be entered any more. How can I obtain this? It is important to do this through a script. Data can be entered first, but after a validation script they should be locked. I use FMP 8.5. Thanks in advance for any help. |
![]() |
| Thread Tools | |
| Display Modes | |
| |