Select to view content in your preferred language

html popup issues with xsl template

3824
4
09-03-2010 10:12 AM
landscaperlandscaper
Deactivated User
I created a layerfile in Arcmap and set the html popup as a formatted page based on a xsl template.

here is a portion of my xsl template:

<xsl:when test="FieldName[starts-with(., 'COPROPCD')]">
<a <xsl:attribute name="href">file://isd10/share/ALLCOUNTIES.htm?ServerFilter="COUNTYCODE='<xsl:value-of select="FieldValue" />'"
</xsl:attribute><xsl:value-of select="FieldValue"/>
</a>
</xsl:when>


The code creates a link out of my COPROPCD field and opens a Microsoft Data Access Page to the info filtered by the current record's COPROPCD.  It works well in Arcmap.  However, in Arcgis Explorer Build 1500 (maybe all builds) when you click on the hyperlink that was created, it opens a new browser window with no server filter set. It redirects me to file://isd10/share/Scott/ALLCOUNTIES.htm and ignores everything after the "?".  I don't get it.  The interesting thing is when you right click on the link in the pop-up in AGX and click open, it works?!?  I just need it to work when the user clicks the link, not right click>open the link.
0 Kudos
4 Replies
MichaelBranscomb
Esri Frequent Contributor
Scott,

Are you able to post the XSL and data here? - if so I will happily test this. Alternatively email me directly on mbranscomb@esri.com.

Regards

Mike
0 Kudos
landscaperlandscaper
Deactivated User
Scott,

Are you able to post the XSL and data here? - if so I will happily test this. Alternatively email me directly on mbranscomb@esri.com.

Regards

Mike


Here you go...

You may have to mess with the paths to make it work (unless you unzip it to C: ).

Note: The zip file contains an mxd with a working html popup that filters the Data Access Page when the user clicks on the COPROPCD link.  When the layer file is opened in AGX and the user tries the same thing, it ignores the server filter.  P.S.  I could not reproduce the working right-click and open this time (might have something to do with IE security?? because I used relative paths in my version here and the filter works in AXE when you right click on the link and the click open, but not just clicking the link)
0 Kudos
landscaperlandscaper
Deactivated User
ok, so the xsl i posted...

may need to be changed from....

   <xsl:variable name="prefix_COUNTY">
   <xsl:text>\\isd10\share\Scott\ALLCOUNTIES.htm?ServerFilter=</xsl:text>
   </xsl:variable>

to...
   <xsl:variable name="prefix_COUNTY">
   <xsl:text>C:\test\ALLCOUNTIES.htm?ServerFilter=</xsl:text>
   </xsl:variable>


The more I look at this, the more I'm learning that I should be taking another approach.  If our department somehow upgraded to support SharePoint...but that's another story.
0 Kudos
AndreiIvanov
Deactivated User
Scott,

I am able to reproduce the problem. When Internet Explorer is opened, I see that filter is not working. Unfortunately, I think there is no walk around to this issue right now, we just have to fix in our code. I tried tweaking the code, and I am able to make it work (see pic below). Though, you'd have to wait for next release, if this request gets approved. Thanks for bringing this up, that's an interesting case.

[ATTACH=CONFIG]2639[/ATTACH]
0 Kudos