Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

Hi!

 

I have a file with 'Check OUT' and 'Check In' functionality.

I 'Check Out' a file from a container field to temp storage using 'Export Field Content' and 'Check In' from the same location(temp storage) using 'Insert File' after making changes.

If I Check Out an Excel or Word file, and try to 'Check In' while the 'Checked Out' file is still open, I get the error 'This file is locked or in use.' (please refer screenshot) but the script does not throw any FileMaker error.(It works fine with Text file)

How can I capture the error if file is open and FileMaker can not perform 'Insert File'? ( So that I can avoid setting flag fields)

 

I am using Windows 7 and FM Pro Advance 12.

I have attached a sample file.

 

Thank you.

 

sample check out.zip

post-105468-0-86021400-1363762905_thumb.

Posted

I don't think you can supress that error... not sure if that is a bug or not.

 

But something else: your check-out uses the get(temporarypath) folder.  Keep in mind that this path is generated for the duration of the script and that FM will attempt to delete that folder when the script ends... you should not expect that folder to be there for your "check in".  Read up on what is in the help file for get(temporaryPath)

This topic is 4264 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.