Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Update file references of container field

Featured Replies

Hi

My question is about moving files that are linked in a container field.

Our company has recently restaructued shared network drives.

I have moved all of the linked.pdf or linkd.doc files to new folder structure, the link in the container field still points to the old location.

 

I have created a Calculted Text field to retrieve the patch using

GetAsText ( Document container)

 formula

i.e. filewin:/G:/XXXX Syd/ARCHIVE/XXXX SHARED/XXXX ONLINE/XXXXXXscreen/XXX Clearances/Correspondence with rightsholders/XXXXXXX16102012.pdf

 

Is there a way to update the container link to the new folder location?

Should be replaced to newer path.

 

Thanks

 

FileMaker Server 10

FileMaker Client 11

You can't update the link, you need to loop through the records and insert the file again.  Since you can calculate the new path, this should be a fairly hands off routine.

  • Author

Thanks Wim

So is it possible to do search a text pattern of the path and replace with another text/path for the container field? As the path is almost constant only file names are different.

You can do the search on the calculated text field and calculate a new file path with a replace.  But you then still have to insert the field into the container.

  • 2 weeks later...
  • Author

Following script resolved my issue:

Update FilePath
Go to Record/Request/Page [ First ]
Loop
Set Variable [ $old; Value:GetAsText ( Table::Document container ) ]
Set Variable [ $new; Value:Substitute ( $old ; "/old folder/" ;"/new folder/" ) ]
Insert File [ Table::Document container; “$new” ][ Reference ]
Go to Record/Request/Page [ Next; Exit after last ]
End Loop

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.