Filemaker Info
276.3K views | +5 today
 
Scooped by David Anders
onto Filemaker Info
September 13, 2012 1:24 PM
Scoop.it!

Guide to a cross-platform container field

Guide to a cross-platform container field | Filemaker Info | Scoop.it

Guide to a cross-platform container field with reference to stored document

This keeps coming up as a question, either by itself or as part of the larger question of how to store files "as a reference" in a container field on one computer and have it available to other computers opening the db on a network.

a) The files that will be stored "as a reference" must be on a computer that is not the computer that any of the various FileMaker users actually sits at. That is because the path must be identical from all the computers (e.g., Mounted Server/Folder/Subfolder/File.xls), and if you are sitting at that computer ITSELF that is not the path to that file (e.g., Macintosh HD/Users/AHunter3/Documents/Folder/Subfolder/File.xls, instead!)

b) Moving on to the cross-platform issue: even when the document file sits on a file server as it should, if the reference is inserted by a PC user the path might be like so:

J:/Folder/Subfolder/File.xls

or like so:

//Mounted Server/Folder/Subfolder/File.xls

... and the Macs in the same office will not be able to reconcile that PC style filepath! Likewise if the Mac stores the file as a reference, the Mac style path will not work, either! So what you must do is create a calculation field of result type "container"; the calc field uses a formula that examines the platform of the current user, compares it to the platform used to store the reference (as I will show, you can determine that), and if they are a mismatch, converts the path. Here are the steps to setting that up.

c) Create a temporary button next to the regular container field you store documents in, with the button-function: Show Custom Dialog [ GetAsText (YourTable::ContainerField) / OK].

d) From a Mac, store a document as a reference, using a document that is on a file server that both the Macs and PCs can get to. Then click your button and jot down the exact path as the Mac perceives it. It will start with "filemac://" and the rest of it will be volume name, folder/, subfolder etc, then document name.

e) From a PC, store the exact SAME document as a reference and click the button and again jot down the exact path as the PC perceives it. It will start with "filewin://" and the rest of it will be volume name, which on a PC may be a logical "mapped" drive letter or it may be a network share name, then folder, subfolder, etc, then document name. Now you have both the PC and Mac versions of the path to the exact same document.

f) Create a formula that will evaluate GetAsText (YourTable::ContainerField) and then return that exact string if PatternCount (GetAsText (YourTable::ContainerField), "filemac")>0 and you are on a Mac — i.e., Abs(Get(SystemPlatform))=1 — and will also return that exact string if PatternCount (GetAsText (YourTable::ContainerField), "filewin")>0 and you are on a PC — i.e., Abs(Get(SystemPlatform)) = 2:

Let (
[filepath = GetAsText (ContainerField);
platform = Abs(Get(SystemPlatform))];

Case (PatternCount (filepath, "filemac")>0 and platform = 1, filepath; PatternCount (filepath, "filewin")>0 and platform = 2, filepath)
)

g) You're not done with that formula. So far you've only accomodated cases where it was stored by the same platform you are currently using. Now we make the translation part. Compare the exact PC and Mac file paths I had you jot down in steps d and e, and you'll see that only a bit at the front (the filemac or filewin parts plus how it references the front part of the path string) are different, and everything past that point is the same. So you use Substitute() to swap out the Mac part and the PC part. You end up with a formula something like this, although it will differ a bit for you depending on the exact file paths you get on your Mac and PC in YOUR office:

Let (
[filepath = GetAsText (ContainerField);
platform = Abs(Get(SystemPlatform))];

Case (PatternCount (filepath, "filemac")>0 and platform = 1, filepath; PatternCount (filepath, "filewin")>0 and platform = 2, filepath;

PatternCount (platform = 1; Substitute (filepath; "filemac://Server/", "filewin://J:/"); platform = 2; Substitute (filepath; "filewin://J:/", "filemac://Server/")
)

{aside: you'll note that in the part I just added, for the Mac part, I did not have to explicitly state that patterncount of "filemac" in filepath is NOT greater than 0. That's already been handled: if it were true that "filemac" occurred in the filepath and platform was 1, the first chunk of the Case() statement would have already caught it. So now that I am down here, saying "platform = 1" means "any remaining situations where platform = 1 that I did not already tell you how to handle". Likewise for the PC portion: we already know what we're doing with cases where platform = 2 and there's a patterncount > 0 of "filewin" in the filepath.}

h) Finally, your calculation field, like all calculation fields, has a storage option tab. Go to it and click "unstored, calculate as needed". You want it to make a fresh "right now" assessment of what platform the current user is currently using. If the value of this calc gets stored, it won't do that, it will evaluate once and not evalute again unless the fileref in the container field itself gets replaced!

Now you're done with the calcfield...

i) On your layout, place the calculated container field UNDER the regular one, and put a button labeled "Launch" or some such thing that goes to the calculated container field [select/perform] and that is how you launch the file. To store references IN the field, you do it the regular way, inserting the file as reference into the regular container field.

No comment yet.
Filemaker Info
Your new post is loading...
Your new post is loading...
Scooped by David Anders
May 31, 2018 1:20 PM
Scoop.it!

The Philosophy of FileMaker - Seven for Seventeen

The Philosophy of FileMaker - Seven for Seventeen | Filemaker Info | Scoop.it
There's a lot of FileMaker 17 content on YouTube. It's hard to tell which material is the best so you can optimize your learning. You could spend hours trying to find the right video to answer all your questions about FileMaker 17. I've gone through a lot of the videos on YouTube and here are my favorites. Hopefully this will save you a ton of time. Let me know in the comments area below if I've forgotten an incredible video.
Taskiy's comment, February 23, 2019 2:00 AM
http://sco.lt/5lWzx2
Mr.Amit Sharma's curator insight, March 8, 2019 3:17 AM
This institute was established in July 99 .since then we are providing tutors all over . After this successful journey we are proud to say that we are now here to provide our services all over in India. This is a registered institution from state govt. We provide tutors for all classes all sub. & all boards (C.B.S.E., I.C.S.E., IB and all other state and int. Boards.)
Scooped by David Anders
April 6, 2018 1:40 PM
Scoop.it!

(6) Popover Menu - How To - YouTube

No comment yet.
Scooped by David Anders
March 31, 2018 12:13 PM
Scoop.it!

FileMaker HubSpot Integration

FileMaker HubSpot Integration | Filemaker Info | Scoop.it
Learn how to integrate your FileMaker system with HubSpot and automate your opportunities to eliminate double data entry. Includes free sample database.
No comment yet.
Scooped by David Anders
March 19, 2018 3:49 PM
Scoop.it!

(6) Atlanta FileMaker Developer Meeting - Xero, Shopify, and WooCommerce integration - YouTube

No comment yet.
Scooped by David Anders
March 12, 2018 6:29 PM
Scoop.it!

FM Starting Point - Market

FM Starting Point - Market | Filemaker Info | Scoop.it
FM Starting Point is a completely FREE FileMaker template designed for use with FileMaker® Pro 15, and is focused on small businesses, work groups, and non-profit organizations. These templates were built with the experience gained from working with these target groups for over 26 years.
No comment yet.
Scooped by David Anders
March 12, 2018 6:25 PM
Scoop.it!

FileMaker and PayPal - Free Demo File

FileMaker and PayPal - Free Demo File | Filemaker Info | Scoop.it
Integrate FileMaker and PayPal in this free, downloadable FileMaker example file from RC Consulting's FileMaker Starting Point file.
No comment yet.
Scooped by David Anders
February 13, 2018 3:51 PM
Scoop.it!

FileMaker Coaches' Corner-Tip 9-FileMaker and REST-FileMaker Videos-FileMaker Training - YouTube

No comment yet.
Scooped by David Anders
February 7, 2018 2:21 PM
Scoop.it!

Creating Your Own SSL Certificates For FileMaker –

Typically, you buy an SSL certificate for a server from a SSL vendor. However, some companies may decide that they want to issue their own SSL certificates. Often this is because the domain is only used internally, and most vendors don't easily allow (if at all) the signing of server certificates
No comment yet.
Scooped by David Anders
January 9, 2018 1:43 PM
Scoop.it!

Storyboarding and estimating | FileMaker

Storyboarding and estimating | FileMaker | Filemaker Info | Scoop.it
This ebook is based on the presentation given by Deborah Zempel at the 2017 FileMaker Developer Conference, "Estimating & Storyboarding with Accuracy."
No comment yet.
Scooped by David Anders
December 1, 2017 2:55 PM
Scoop.it!

Download FileMaker Document Management Sample File

Download FileMaker - Document Management Sample File (w/Energy UI)
No comment yet.
Scooped by David Anders
December 1, 2017 2:53 PM
Scoop.it!

FM Starting Point

FM Starting Point | Filemaker Info | Scoop.it
FMSP Market Place UI Red Downtown
No comment yet.
Scooped by David Anders
December 1, 2017 2:49 PM
Scoop.it!

Integrating FileMaker with PayPal Webinar - Free Online FileMaker 16 Video Training - YouTube

No comment yet.
Scooped by David Anders
December 1, 2017 2:27 PM
Scoop.it!

What Works - Documenting Your Decisions - SeedCode

What Works - Documenting Your Decisions - SeedCode | Filemaker Info | Scoop.it
As we prepare to bring some new developers on board, it’s worth taking a look at a few of the things we do that make us successful. Sometimes we internalize these things and, not having had to explain them to anyone for a while, they kind of dissolve into habit. Or dissolve into habits we don’t [...]
No comment yet.
Scooped by David Anders
May 15, 2018 2:17 PM
Scoop.it!

FileMaker 17: Introduction to Default Fields | Soliant TV

FileMaker 17: Introduction to Default Fields | Soliant TV | Filemaker Info | Scoop.it
FileMaker 17 comes with a variety of new features and capabilities. Watch our video about the new default fields and how to leverage them in your solution.
TN_Scientific's comment, December 30, 2021 9:43 AM
nice
Scooped by David Anders
April 2, 2018 12:50 PM
Scoop.it!

(6) ccBegin overview video - YouTube

$900 Site License

 

  • A completely unlocked file structure for complete control
  • Professional, flexible industry standard interface
  • Robust user management
  • Multiple home screen options
  • Contact management with robust notes
  • Organization management with any number of related contacts
  • Powerful, flexible invoicing
  • Complete, flexible time clock
  • Simple flexible shipment tracking per invoice
  • Professional setup assistance available
  • Long term support available under either a contract or per event plan

 

No comment yet.
Scooped by David Anders
March 28, 2018 3:32 PM
Scoop.it!

(6) Semantic UI FileMaker - YouTube

No comment yet.
Scooped by David Anders
March 12, 2018 6:29 PM
Scoop.it!

Tesseract FileMaker OCR Sample Database

No comment yet.
Scooped by David Anders
March 12, 2018 6:26 PM
Scoop.it!

FMSP Market Place PayPal Demo

FMSP Market Place PayPal Demo | Filemaker Info | Scoop.it
FMSP Market Place PayPal Demo
No comment yet.
Scooped by David Anders
February 16, 2018 4:21 PM
Scoop.it!

FileMaker Webinar: Data API breaking down barriers and creating new business models - YouTube

No comment yet.
Scooped by David Anders
February 9, 2018 1:39 PM
Scoop.it!

How to Build a Dynamic FileMaker Navigation Bar - An Introduction

How to Build a Dynamic FileMaker Navigation Bar - An Introduction | Filemaker Info | Scoop.it

Download the sample file.

No comment yet.
Scooped by David Anders
February 2, 2018 3:52 PM
Scoop.it!

Portal In Portal Demo - YouTube

No comment yet.
Scooped by David Anders
December 3, 2017 5:25 PM
Scoop.it!

FileMaker Themes & Layout Templates - YouTube

No comment yet.
Scooped by David Anders
December 1, 2017 2:54 PM
Scoop.it!

FREE Digital Document Management Sample File | FileMaker Pro 16 Videos | FileMaker Pro 16 Training - YouTube

No comment yet.
Scooped by David Anders
December 1, 2017 2:51 PM
Scoop.it!

FileMaker UI Sample: Energy | Under-the-Hood | Part 6 | FileMaker 16 Videos | FileMaker 16 Samples - YouTube

No comment yet.
Scooped by David Anders
December 1, 2017 2:46 PM
Scoop.it!

Download Free FileMaker PayPal Integration Sample File

Connecting FileMaker to Paypal
Have customers pay for invoices online.
Free Sample File: http://bit.ly/2AAtrU0
Free Video: http://bit.ly/2hxdplU

No comment yet.