FM - Using Container Field vs. Web Viewer to Script Document Management

Breaking off this to its own questioni:  Since I have about 700 tenants x about 5 documents, I want to script a few of the most common documents in a calc field to show on a tab pane.  I've easily done it already with a web viewer and can view a pdf doc, for example, on the Insurance Certification tab no matter what record I'm on.  However, I can't seem to do this with a container field.  I enter the exact same calc in a container field and the field just shows an icon, but when I click on it, I get an error saying the file path is not correct.  For example, following is the calc that works in the web viewer, but not in the container field.  Anyone ever calc a container field, so whatever record you are on, it finds the doc in the correct file path?  (Maybe I need to use the web viewer for the tab panes, but for all the misc. files, use container fields brought over in portal rows from a document table as ChallengeDay has suggested.)  Thanks.


"file://R:/TNTINFO/" & Tenants::PropCode & Tenants::EntityNum & Tenants::BldingRNum & "/" & Tenants::PropCode & Tenants::UnitCode & "/" & Tenants::PropCode & Tenants::UnitCode & "_InsCert.pdf"
LVL 2
rvfowler2Asked:
Who is Participating?
 
jvaldesConnect With a Mentor Commented:
You should display the container from a different table than the table where you store the path. Then from the layout of the new table (no the original container table) link the tables by the reference ID that connects the two tables. Now create a global container in the new table that is global and make reference to locate the resource from the path field in the table. That should work
0
 
jvaldesCommented:
Is your container a global field?
0
 
rvfowler2Author Commented:
No, so it should show for every record.  However, possibly the calc box for container fields don't accept the above calc or the above calc needs to be modified (possibly different for a web viewer than a field).  I've tried several iterations and they do not work.
0
All Courses

From novice to tech pro — start learning today.