Spectrum Spatial (SSA/LIM)

 View Only
Expand all | Collapse all

Template Designer Hyperlink Target='_blank"

  • 1.  Template Designer Hyperlink Target='_blank"

    Posted 05-15-2019 19:53
    Hi,

    Can someone please give me some assistance?

    We are using attributes with  [Tel:] and [MailTo:] commands for Hyperlink callouts within Template Designer.

    When you click on these as new tab opens and stays open in the default browser.

    Where are the control files located for this function that could be modified to stop this from happening for these types of hyperlinks?

    Thank you

    Tim




    ------------------------------
    Tim Warfe
    GIS Officer
    MOORABOOL SHIRE COUNCIL
    ------------------------------


  • 2.  RE: Template Designer Hyperlink Target='_blank"

    Employee
    Posted 06-03-2019 04:05
    Hi Tim,

    I also observed the same behavior.
    Just curious what do you expect should happen when the link label is clicked?

    Also, have you tried looking in .ts, .html and .json file under \SpectrumSpatialAnalyst\customerconfigurations\analyst\theme\infotemplates?

    Thanks,

    ------------------------------
    Ruchi Mishra
    Pitney Bowes Australia Pty Ltd
    Melbourne
    ------------------------------



  • 3.  RE: Template Designer Hyperlink Target='_blank"

    Posted 06-03-2019 18:17
    Hi @Ruchi Mishra, thanks for the reply.

    I expect that a new tab in the Chrome browser either isn't opened or it disappears after the command has been executed. "tel:" and "mailto:"

    I have modified the controlling HTML, JSON and TS files of the info templates in question.  There was no change, there must be an overriding control file somewhere.

    Thank you

    Tim


    ------------------------------
    Tim Warfe
    GIS Officer
    MOORABOOL SHIRE COUNCIL
    ------------------------------



  • 4.  RE: Template Designer Hyperlink Target='_blank"

    Employee
    Posted 06-03-2019 20:02
    My assumption is if any label is shown as hyperlink in Template designer, this is expected behavior (I'll let Engineers also verify this!)
    I can also see in Template Designer, there is an option to show the label as Email but it then asks how we want to open the link with suggested applications.

    Is there a reason you are using label as hyperlink for Tel: and Email:?
    Wondering if you tried displaying the label as a normal text, I guess that would be what you are looking for? :)

    ------------------------------
    Ruchi Mishra
    Pitney Bowes Australia Pty Ltd
    Melbourne
    ------------------------------



  • 5.  RE: Template Designer Hyperlink Target='_blank"

    Posted 06-03-2019 20:15
    Thanks, Ruchi, yes we are using it this way because SSA Hyperlinks trigger (tel:) a Skype for business call and (mailto:) starts a new Outlook email based on the GIS record data.

    The normal text wouldn't work for these in this case.

    ------------------------------
    Tim Warfe
    GIS Officer
    MOORABOOL SHIRE COUNCIL
    ------------------------------



  • 6.  RE: Template Designer Hyperlink Target='_blank"

    Employee
    Posted 06-04-2019 20:07
      |   view attached
    Hi Tim,

    Let me log a support case for this inquiry and we'll keep you posted.

    My assumption is Hyperlink option is designed for URLs and may not help you in this scenario.
    For Email, I used Show as Email option and it takes me to outlook which is good behavior.
    For Phone also, I tried to use Show as Email but since I didn't had Skype installed, not sure if it'll work. If you have you can try in the mean time.

    Thanks,


    ------------------------------
    Ruchi Mishra
    Pitney Bowes Australia Pty Ltd
    Melbourne
    ------------------------------



  • 7.  RE: Template Designer Hyperlink Target='_blank"

    Posted 06-05-2019 18:07
      |   view attached
    Thanks for your comments @Ruchi Mishra.

    I tested with the phone number as "Email" type in Template Designer.    It trys to open Outlook, so that doesn't open Skype so won't work for me.

    I've attached a picture showing an example of the URL code I send to create an email.   It displays the whole URL in the Info Panel.  (Not very neat)  The functionality works though it opens Outlook with the "Email" option turned on.  I add the email address and derived Subject text from the data to the newly created email.

    If the engineers could work out something where the Tel: Mailto: functions from URL just kick off the functionality of the windows default programs that would be the best scenario.

    Thanks again.

    Tim

     



    ------------------------------
    Tim Warfe
    GIS Officer
    MOORABOOL SHIRE COUNCIL
    ------------------------------



  • 8.  RE: Template Designer Hyperlink Target='_blank"

    Employee
    Posted 06-18-2019 22:04
    Hi Tim,

    If you have any phone application such as Skype already installed, would you try creating a simple html page and see if the hyperlink work fine with Skype.
    If it does, there are chances the same tags will work in SSA after manually editing the info template.

    Thanks,

    ------------------------------
    Ruchi Mishra
    Pitney Bowes Australia Pty Ltd
    Melbourne
    ------------------------------



  • 9.  RE: Template Designer Hyperlink Target='_blank"

    Posted 06-25-2019 00:37
      |   view attached
    Solved:-

    Thanks to @Ruchi Mishra and @Daniel Butel for the ideas. 

    I've come up with some custom HTML that suits our needs. (Result in Picture)

    Can click on hyperlinks now and no extra browser tab appears.  tel: and mailto: functions work as they should.


    ------------------------------
    Tim Warfe
    GIS Officer
    MOORABOOL SHIRE COUNCIL
    ------------------------------



  • 10.  RE: Template Designer Hyperlink Target='_blank"

    Employee
    Posted 06-25-2019 00:40
    That's great to hear, Tim!
    So, now when you click on phone number, does it launch Skype?
    Would you like to share the HTML tags you used?

    Thanks,

    ------------------------------
    Ruchi Mishra
    Pitney Bowes Australia Pty Ltd
    Melbourne
    ------------------------------



  • 11.  RE: Template Designer Hyperlink Target='_blank"

    Posted 06-25-2019 00:52
    @Ruchi Mishra

    Yes, it launches Skype for tel: and Outlook for mailto:, which is set by PC Browser defaults.  (I have a URL field in the data, that includes other information for mailto:)

    <div class="multilabelrow col-xs-12 default-topbtm-padding">
    <label class="wordBreak no-padding container-flex col-xs-5">
    <i class="nc-icon-mini margin-r ui-3_phone"></i><strong>Phone AH: </strong> </label>   
    <span class="wordBreakInline container-flex default-left-padding">
    <a href [attr.href]="'tel:'+data.feature.App_AH.value">{{data.feature.App_AH.value}}</a> </span>
    </div>

    <div class="multilabelrow col-xs-12 default-topbtm-padding">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
    <label class="wordBreak no-padding container-flex col-xs-5">  
    <i class="fa fa-envelope margin-r" style="font-size:18px"></i><strong>Email Applicant:</strong> </label>   
    <span class="wordBreakInline container-flex default-left-padding">
    <a href [attr.href]="data.feature.ApplicantEmailURL.value">{{data.feature.App_Email.value}}</a> </span>
    </div>

    ​​

    ------------------------------
    Tim Warfe
    GIS Officer
    MOORABOOL SHIRE COUNCIL
    ------------------------------