carol333 Posted November 29, 2006 Share Posted November 29, 2006 I have made a button to export records and some specified fields to an excel file on my desktop - the button and associated script works fine for me ( with administrator privileges) but it doesn't work for other users - they get the error message 'file is locked or in use' - can anyone tell me if I have made an error in the way the script works or is it a feature of Filemaker that you cannot make a button to export records? My script is very simple -> Export Records [Restore, "issue selection report.csv"] Other users can use File > Export records OK, but aren't successful using my button. Grateful for any help Carol Link to comment Share on other sites More sharing options...
Genx Posted November 29, 2006 Share Posted November 29, 2006 ... Most likely the file path is invalid? I.e. your desktop path is likely to be: C:Documents and SettingsCarrol WilliamsDesktopyourfilehere.csv Where as another users might be: C:Documents and SettingsAlex BabkovDesktopyourfilehere.csv Link to comment Share on other sites More sharing options...
carol333 Posted November 29, 2006 Author Share Posted November 29, 2006 hi many thanks for this - it sounds like you're right - if I edit the script so it uses a dialog before exporting could this be the way for individual users to nominate where to place their file? Carol Link to comment Share on other sites More sharing options...
Genx Posted November 29, 2006 Share Posted November 29, 2006 Likely yes... Link to comment Share on other sites More sharing options...
Inky Phil Posted November 30, 2006 Share Posted November 30, 2006 Carol I thought I would just mention that there is a function Get(DesktopPath) which returns the path to the desktop folder for the current user. You might be able to use this to keep things fully automated if you so wish Phil Link to comment Share on other sites More sharing options...
Genx Posted November 30, 2006 Share Posted November 30, 2006 In FileMaker 6? I'm pretty sure you can't use variable file names before 8... Link to comment Share on other sites More sharing options...
carol333 Posted November 30, 2006 Author Share Posted November 30, 2006 hi thanks for this suggestion - we will be moving to FM 8 in the next six months so this may be something I can learn to do then best regards Carol Link to comment Share on other sites More sharing options...
Inky Phil Posted November 30, 2006 Share Posted November 30, 2006 Oops sorry! My mistake - but you really are being picky now! Phil Link to comment Share on other sites More sharing options...
Genx Posted November 30, 2006 Share Posted November 30, 2006 Well no, I do that all the time It's just wrong to give people false hope hehehe. Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 6356 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 accountSign in
Already have an account? Sign in here.
Sign In Now