Solved

FM - Calculated Path for Container Field?

Posted on 2011-02-22
8
771 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Filemaker script send mail ATT00001.bin attached 7 836
Mysql ODBC Drivers for Mac 2 956
Filemaker record reorder popup 2 407
Filemaker Go 14 - Database Sync 4 355
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…
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…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

749 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