Jump to content

Is there a way to lock a layout after info input?


stann

This topic is 7302 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Hello

I would like to have a layout that is used to input information that can only be put in once.

After the information is entered and proven to be correct through a dialog. I would like the layout and those fields to be locked out and only then -is this possible ?

Thanks

STAN

FileMaker Version: 7

Platform: Mac OS X Panther

Link to comment
Share on other sites

You could script the data input by having the user enter data into globals which would then be used to create a new record in a script which runs with full access. After the record is created, users will not be able to edit it because you would only grant read access to those fields.

Is this what you're aiming for?

Link to comment
Share on other sites

Another approach:

You can create 2 identical layouts. The first allows input in the fields, the second has all fields set to not allow input. Create a global field gInputAllowed and initially set the field to "YES". When the user has completed input and it is verified, set gInputAllowed to "NO". In your script to that screen, send the user to screen1 if gInputAllowed="YES", otherwise send the user to screen2.

Link to comment
Share on other sites

For Ellen's solution, you just control access to layouts by only allowing navigation to them via scripts. (The input layout would not appear in the layout list menu)

For my approach, the creation of the new record is controlled via a script, so you could have the script logic controlled by the data input to the globals. (If there is already a record with the information you specify, the script will not create another record) You could also add show message or show custom dialog steps to inform the user of what the script is doing.

Dana

Link to comment
Share on other sites

Check out John Mark Osborne's site and search for the "Visibility" technique. You can set a field, when the data is validated, that toggles the validity of a relationship and, via portals, lock entry to fields.

Link to comment
Share on other sites

This topic is 7302 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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