Jump to content

Renaming file can break references


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

Recommended Posts

This post is to let others know about Developer Utilities (DU) since, in all my years in reading several forums, this potential problem has only been mentioned a few times and I keep running into folks (including developers) who are unaware of the importance of using DU to preserve file references when you must rename files.  

 

This is another strong reason that all developers should use FMPA (Pro Advanced).  The following can break if you manually rename a FileMaker file:

1. Relationships

2. Functions:
   GetField()
   Evaluate()
   ExecuteSQL()
   Design functions ...

3. Script steps:
   Set Field By Name
   Open File
   Close File
   Import Records

4. Value lists using a value list in another file

Using Developer Utilities will properly modify file names in your paths in External Data Sources ( relationships).

 

It is my understanding that all files in a solution should be properly closed and added within the DU dialog so that, as you change ANY file's name, all references in all other files will change accordingly.  If there is an external file which isn't included in that batch then its reference to the file being renamed will NOT change.

 

I've always handled it by placing all solution files into a folder (even if I don't think there is the *need) then adding them all (by using shift-select) into the DU dialog and then changing names as needed  Note that, after changing the file names, the Create stays disabled until you specify a Projects folder.

 

* Since there are many places which could be effected, it would be easy to miss a file reference.  By including all files, you are safe.

  • Like 1
Link to comment
Share on other sites

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