BUG
When attempting to use hyperlinks in a query result, a "page not found" error is returned.
The HTML Viewer code searches the hyperlink prefix and hyperlink suffix based on the hyperlink field name and returns the corresponding values from the last matching field name. As a result, if multiple layers have the same hyperlink field name, it will sometimes use the hyperlink prefix and/or hyperlink suffix from a different layer.
Code:
if (showHyper) {
Code:
if (showHyper) {
for (var s1=0;s1<t_id.hyperLinkFields.length;s1++) {
if (t_id.hyperLinkFields[s1]==fName1[f]) {
var theLinkURL = t_id.hyperLinkPrefix[s1] + fValue1[f] + t_id.hyperLinkSuffix[s1];
document.write('<a href="' + theLinkURL + '" target="_blank">');
isHyper=true;
}
}
}
Code:
if (showHyper) {
for (var s1=0;s1<t_id.hyperLinkFields.length;s1++) {
//New Line added to workaround hyperlink problem
if(t_id.LayerName[t_id.ActiveLayerIndex]==t_id.hyperLinkLayers[s1]){
if (t_id.hyperLinkFields[s1]==fName1[f]) {
var theLinkURL = t_id.hyperLinkPrefix[s1] + fValue1[f] + t_id.hyperLinkSuffix[s1];
document.write('<a href="' + theLinkURL + '" target="_blank">');
isHyper=true;
//new line added to workaround hyperlink problem
break;
}
//new line added to workaround hyperlink problem
}
}
}
Note:
For a description on creating hyperlinks in an HTML Viewer, see the "Creating Hyperlinks" chapter on page 26 in the "Customizing ArcIMS:HTML Viewer" document.
Note:
If the 'identify all' tool is being used, a similar change needs to be made in the displayAttributeDataAll.htm file.
Get help from ArcGIS experts
Download the Esri Support App