Solved

FM - Creating a List of Document via Container Field

Posted on 2011-02-22
4
492 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
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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

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…
Problem: You have a hosted FileMaker database and users are tired of having to use Open Remote or Open Recent to access the database. They say, "can't you just give us something to double-click on rather than have to go through those dialogs?" An…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

839 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