Solved

FM - Creating a List of Document via Container Field

Posted on 2011-02-22
4
473 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
  • 2
  • 2
4 Comments
 
LVL 4

Accepted Solution

by:
challengeday earned 500 total points
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

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…
Having just upgraded from Filemaker 11 to Filemaker 12 over the weekend, we thought we would add some tips for others making the same move.  In general, our installation went without incident. Please note that this is not a replacement for Chapter 5…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

763 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now