Zum Hauptinhalt gehen

BUG? - Links in map tip broken when using related table replacement token

Kommentare

11 Kommentare

  • Tyson Schoepflin
    Another point of data for this link behavior.  If the map service for the layer is a feature layer the link works the first time in the map tip. If the service is a map service the link does not work in the map tip.

     

    We switched the service in Geocortex between Map Service to Feature Layer and the map tip link worked.  We switched the service back from a Feature Layer to a Map Service and the map tip link doesn't work.
    0
  • Allison Charko
    We are experiencing a similar issue. 

     

    If I try to use <a href> with a field from a related table, the URL does not open; nothing happens.

     

    If I hardcode an <a href> it works (as long as 'http' is included in the address). 

     

    I haven't tried switching it to a feature layer but I will.

     

    The odd thing is, the map tip will read the related table in the <img src> without any issues.  I wonder why the behaviour is different in the <a href>. 

     

    Anyone else have this problem?
    0
  • Permanently deleted user
    This was an issue (GVH-15819) that was fixed in version 2.9.1 of the HTML5 viewer.  Please upgrade to avoid this issue.

     

    Regards,

     

    Wayne Richard

     

    Latitude Geographics Group Ltd.

     

    Head Office: 300 – 1117 Wharf Street  Victoria, BC Canada V8W 1T7

     

    Tel: (250) 381-8130 | Fax: (250) 381-8132 | wrichard@latitudegeo.com 

     

    Developers of Geocortex web-based mapping software | www.geocortex.com

     

    An Esri Platinum Business Partner

     

     
    0
  • Chris Slavin
    I'm still haing the issue with 2.10.1, anyone else?
    0
  • Tyson Schoepflin
    @Chris Slavin

     

    Back when we were still using 2.6 we just creating a new dataset and avoiding related table tokens.  If you inspect the link does it have the ignore click code in it again?
    0
  • Chris Slavin
    Yes, here is what I get: {@event-onclick: handleHyperlinkClick}{@event-mouseup: ignoreEvent}{@event-mousedown: ignoreEvent}
    0
  • Tyson Schoepflin

    @Chris Slavin

     

    Did a quick search for part of that string in 2.10.1.  Mapping.Infrastructure.js has a method insertLinkAndImageBindings (m.prototype.insertLinkAndImageBindings).  Within that is a bunch of regex for links.

    var d = /(<a.*?href\s*?=\s*?")(command:.+?)(".*?)(\/?>)/,

     

                c = a.replace(/<a[^>]*(\/?>)/g, function (a, c, g, e) {

     

                        return (c = a.match(d)) ? (g = "", (a = a.match(/(title|aria-label)\s*?=\s*?"[^"]*?"/g)) &&

     

                            (g = " " + a.join(" ")), '<a _key="' + b.keyForUri(c[2]) + '" href="javascript:void(0)" data-binding="{@event-onclick: handleHyperlinkClick}{@event-mouseup: ignoreEvent}{@event-mousedown: ignoreEvent}"' + g + c[4]) : a

     

                    }),
    0
  • Longguang Fan
    Hi Allison or Chris,

     

    Could you guys please give me some examples how you use href with the related table data? What I did is <a href=http://www.google.ca/?q={Trees.COMMON_NAME}>test</a>, which works for me. Tested in GVH 2.10.1. 

     

    Thanks

     

    Long
    0
  • Chris Slavin
    In our application, we use releated records to create the links that match to different images, such as:

     

    <a href="https://xxx.org/gisdata/Scaned-Documents/As-Built/Maintenance/{layers.ATLAS.ATTACHMENTS.DOC_NAME}.tif">

     

    If we create links using the way you mentioned, we don't see an issue. This did worked in 2.7.2
    0
  • Stefan Schweigert

    Hello Chris,

    Can you provide an update on your status with this issue?

    Thanks, Stefan

    0
  • Chris Slavin
    We are on Viewer for HTML5 2.11.0 and the link still does not work.
    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.