Solved

FM - Creating a List of Document via Container Field

Posted on 2011-02-22
4
505 Views
Last Modified: 2012-08-13
I asked this in a previous question, but, to be fair, it should be completely separate (not an aspect of my original question):  How can you create a list of documents that dynamically show depending on what record you are on.  Here is ChallengeDay's response with my followup question:

Sure, you could have a Document table, with a foreign key to tenants (or properties, or however you want to structure), so that for each tenant you could show a list of related documents in a portal. In the document have a field that calculates the filepath, with GetAsText ( FileContainer ). Then the portal shows all of the documents and their filepaths. Then if someone clicks on the icon of the file it opens it right up. (Files have to be stored as references for this scheme to work.)

This is really cool and seems straightforward enough (I'm very comfortable with portals and related tables), but I'm drawing a blank on what GetAsText (FileContainer) has to do with this.


0
Comment
Question by:rvfowler2
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 4

Accepted Solution

by:
challengeday earned 500 total points
ID: 34956772
Hi rvfowler,

The GetAsText ( FileContainer ) simply gives you a field that shows the filepath, nothing else. I'll throw together a fast example for you.

0
 
LVL 2

Author Comment

by:rvfowler2
ID: 34960567
Oh, I feel dumb.  You meant that (FileContainer) was simply the name of the file container field, correct?
0
 
LVL 2

Author Closing Comment

by:rvfowler2
ID: 34963969
ChallengeDay, the sample db you sent me is brilliant.  Can you post it in this question?  Though I may have 2-5 tabs and a web view or container field on each tab for the 2-5 most common tenant documents, your document table and portal allows for a large # of misc documents to be stored as a reference in FM.  I could even do both, listing my main 2-5 documents in the doc table/portal as well, since I could then bring this table into layouts other than the main Tenant one.  You should make an article out of this.
0
 
LVL 4

Expert Comment

by:challengeday
ID: 35019804
Hi rvfowler,

Sorry, I was out of town on a family issue that took all of my attention.

I'm glad you liked the sample db. I'm uploading it here.

Yes, I'd like to write an article and will when I can find the time. Thanks!

 IncomeExpenseExample.fp7

0

Featured Post

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Pop up windows can be a useful feature of any Filemaker database.  Though best used sparingly, they can be employed in a multitude of different ways, for example;  as a splash screen at login, during scripted processes to control user input, as pick…
Conversion Steps for merging and consolidating separate Filemaker files The following is a step-by-step guide for the process of consolidating two or more FileMaker files (version 7 and later) into a single file with multiple tables. Sometimes th…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question