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.

Featured Replies

I have a file with external data source as:

file:Company_Data

fmnet:/xx.xxx.xx.xxx/Company_Data

Originally I had them reversed but when I needed to design in the file and wanted to reference my local dummy copy of the program, I couldn't switch them once I had opened the file (I had to close the served version so it would find the local copy). So now I have the local version first and if I want to activate the file, I remove the Company_data file locally and when it opens, it then finds the served version.

But, while I'm testing, I'm afraid it might not always grab the local version. I would like a way to display which source is being used before I begin changing the data with my tests. It makes me very nervous and I just want to be SURE!

I realize I can specify a data source and even Open Manage data sources with script. Is this how I'll have to confirm which is being used?

All I want is a Custom Dialog (which I click a button) to display: file:Company_data OR fmnet:/xx.xxx.xx.xxx/Company_Data ... or even the words "local files" or "served files".

It's probably right in front of my face; sometimes its difficult to see up close. :laugh:

UPATE: Oh, I realize I can change some data and then check the date/time of the file but I don't want to find out THAT way because it would be too late; I'd be changing live data which could be bad. I just want to be SURE which source is being accessed. Maybe I can always trust that, if there is a local copy, it is being accessed but ... I don't do well with trust.

LaRetta

Edited by Guest
Added update

If you have a preference file in the solution you could put "Server File" or "Local File" in a "Location" field within it. Then you could just call up a Custom Dialog to display that fields data.

You could also use a Global, but you'll need to make the change in the file before hosting it on the server. (Unless you use a FileMaker Server-side script to set the global value -- those stick!)

I suppose another option would be to just have a script in the file that is different from the server copy vs. the local copy. Without modifying the schema at all, just call the script to display a dialog with the text you specify in the calculation (Server or Local message).

Edited by Guest

why not just have a global calculation using "Get (HostName)"?

  • Author

Thank you both for the suggestions!! In truth, I figured there must be a way to accomplish it without adding a field (which was my goal) and Mr. Vodka just handed it to me ... script in data file with (as Breezer suggested), Get (HostName ) in a Custom Dialog. I simply call the script (upon open) as subscript from my file. Now I have the best of both worlds ... I can feel safe when I open my file that I'm accessing the correct data file and I won't need to add an unnecessary field to do it.

Much appreciated. :smile2:

Create an account or sign in to comment

Important Information

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

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.