Solved

FM - Calculated Path for Container Field?

Posted on 2011-02-22
8
768 Views
Last Modified: 2012-05-11
I'm trying to write a calc for a container field so that whatever record I'm on the container will show the appropriate document.  I put the filewin path, but it just produced an shortcut icon (instead of showing the document) and when I clicked on the icon, a dialog box came up saying I didn't have the correct file path (yet I've used this file path in other situations).  See attached.

Also, dragging and dropping doesn't seem to be the answer because:  1) we will have over 700 records, and 2) when you do so, the pdf file shows nicely, but it doesn't give an option to store only a reference to the file.  I tried right-clicking, but this doesn't provide an option to store a reference either.  I've written calc paths for pictures, etc. in a web portal easily; what's the procedure for Container fields?
0
Comment
Question by:rvfowler2
  • 5
  • 3
8 Comments
 
LVL 2

Author Comment

by:rvfowler2
ID: 34956627
Adding image.
-Container.JPG
0
 
LVL 4

Accepted Solution

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

Right Click on the Container field and choose "Insert Fie..."

The resulting dialog box has a checkbox for "Store only a reference to the file"

store-reference.jpg
Start playing with a plain container field (not a calculated one).
0
 
LVL 4

Assisted Solution

by:challengeday
challengeday earned 500 total points
ID: 34956982
Here's an example file. I've used the IncomeExpense database that I had created earlier and added a document feature. Remember this is a quick example, but it should get you started.

 IncomeExpenseExample.fp7
0
Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 2

Author Comment

by:rvfowler2
ID: 34957516
I don't mind doing this to learn, but I don't want to do this 700 x 5 times (that's how many files we have to reference.  I'd rather do it via a calc so they all populate automatically.  I was able to do this with our pictures via a web portal.
0
 
LVL 4

Assisted Solution

by:challengeday
challengeday earned 500 total points
ID: 34957574
Hmm... How are those 700 X 5 files generated? Autmoatically? If so they could be attached when they are generated. ... Otherwise you could build a script to populate the database... Otherwise you can keep playing and troubleshoot the error you are getting (I haven't played with a calculated container field yet.)
0
 
LVL 2

Author Comment

by:rvfowler2
ID: 34958015
First, each file is generated by scanning it in as a pdf.  Then what I propose is to give it a naming convention, including a folder path by property and then by unit code as you see below.  I just used my calc in a web viewer that I use for images and it worked fine in a web viewer for a pdf file, so why do I even need a container field?  The drag and drop of the latter is nice, but it seems to automatically store it in FM; it does not give you the option of storing it as a reference only.  The following code worked fine in a web viewer.  Why not just use this for the 5 most standard docs, and then use ChallengeDays idea of a document table pulled over in a portal for all other docs?

"file://R:/TNTINFO/" & Tenants::PropCode & Tenants::EntityNum & Tenants::BldingRNum & "/" & Tenants::PropCode & Tenants::UnitCode & "/" & Tenants::PropCode & Tenants::UnitCode & "_InsCert.pdf"
0
 
LVL 2

Author Comment

by:rvfowler2
ID: 34971089
I still don't see the advantage of the container field, since it doesn't seem to take a script like a webviewer (when I use the same script I use for my webviewer in the autocalc of the container field, it just shows an icon and when I doubleclick on it, it says the path is wrong.).  In contrast, the webviewer is showing my pdf docs just fine.  The drag and drop of the container field is nice, but scripting is my first priority since we have 700 records x 5-10 docs each.  Or, maybe use both solutions?  Thanks.
0
 
LVL 2

Author Closing Comment

by:rvfowler2
ID: 35032384
Question not fully answered, but other valuable information received.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

840 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