Select to view content in your preferred language

Layer Packages & PDF's

2943
12
05-15-2012 05:46 AM
adamcampbell
Occasional Contributor
Morning,

Ive been stabbing away at this problem now for a day and cant get it to work, any help would be much appreciated.

I have a whole bunch of laptops that arent connected to the network to access our servers. On the servers is a ton of pdf information that is linked within our corporate database.

My solution was to create a layer package in ArcGIS, and then open it within ArcExplorer on each of the machines. Within the layer package, I created HTML popups to link to each of the documents. I then took all the pdf files and copied them over to my test machine. (Both my machine and test machine have the test files in the same location on the C: Drive)

No matter what I try, ArcExplorer does not recognize the link in the HTML popup

///file:/C:/xzy/doc.pdf ------- didnt do a thing (I really thought that one would work)

Ive explored the forums and cant find any sort of hyperlink format that works. It seems it wants a UNC path to a server which im not quite sure how to write when referencing a local machine.

Any help would be most appreciated.

Thanks,

Maxac8
0 Kudos
12 Replies
MichaelGlassman2
Deactivated User
Thanks that worked great! One last thing is there anyway to have the file open automatically so I do not have to click on the link created?
0 Kudos
MarkBockenhauer
Esri Regular Contributor
You could have it show up in the popup window by doing this or something similar, you could put it in the table if you still wanted to show other attributes.  Lots of possibilities...


<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:msxsl="urn:schemas-microsoft-com:xslt">
 <xsl:variable name="ignoreFieldNames" select="'|OBJECTID|Shape|Shape_Length|Shape_Area|ATTACHMENTID|REL_OBJECTID|CONTENT_TYPE|ATT_NAME|DATA_SIZE|DATA|'"/>
 
<xsl:template match="/">
 <html>
  <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
  </head>
  <body style="margin:0px 0px 0px 0px;overflow:auto;background:#FFFFFF;">
   <xsl:apply-templates select="FieldsDoc/Fields/Field" />
  </body>
 </html>
 </xsl:template>
<xsl:template match="Field">
    <xsl:if test="FieldName">
 <xsl:choose>
            <xsl:when test="FieldName[starts-with(., 'FID')]">
                 <iframe target="_blank">
                      <xsl:attribute name="src">
                           file:///C:/Users/me/documents/<xsl:value-of select="FieldValue"/>.html
                      </xsl:attribute>
                      <xsl:attribute name="width">500</xsl:attribute>
                      <xsl:attribute name="height">500</xsl:attribute>
                 </iframe>
            </xsl:when>             
 </xsl:choose>
   </xsl:if>
</xsl:template>
</xsl:stylesheet>
0 Kudos
MichaelGlassman2
Deactivated User
Thanks everything is working great!
0 Kudos