13 Replies Latest reply on Jun 26, 2015 7:29 PM by arosenthal

    Custom Hyperlinks






      I am trying to put an hyperlink in a notification coming from a simple string attribute.


      I put in my attribute the follwoing string (as suggested in http://techsupport.osisoft.com/techsupport/nontemplates/KB/article.aspx?id=KB00547):


      <Hyperlink xmlns='<http://schemas.microsoft.com/winfx/2006/xaml/presentation>' NavigateUri="http://bba.ca">"BBA"</Hyperlink>




      It does not show a "BBA" link in my notification email.




      Do I make something wrong in the string?




      Thanks in advance.




      Best Regards.





        • Re: Custom Hyperlinks

          Hi Gael,


          Could you please try to use one AF attribute to store the string "BBA", and another AF attribute to store the sting of your URL?  And then, you could create the final AF attribute as the string type with the following string: "<Hyperlink xmlns='<schemas.microsoft.com/.../presentation>& NavigateUri='";..|URL;"'>";..|Name;"</Hyperlink>" for example.


          Xi Wang


          v-Campus team

          • Re: Custom Hyperlinks

            Does this still work with the StringBuilder data type? When I trigger notification emails, I get "{Error inserting result}" instead of the link.


            This is my StringBuilder definition: "<Hyperlink xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' NavigateUri='";'.|URL';"'>";'.|Name';"</Hyperlink>";


            and this is the URL child attribute: '\Globals|DevCoresightURL';"#/Displays/AdHoc?";"DataItems=%5c%5c%System%%5c%Database%%5c%ElementPath%|%..|Attribute%";"&StartTime=*-1h";"&EndTime=*";"&mode=kiosk&hidetoolbar";


            Any help would be much appreciated.

              • Re: Custom Hyperlinks

                Hi Aaron,


                I have tested with a String Builder and it is working fine on my side.


                I have created:

                - 1 attribute called URL in my element of type string where I put the url: https://xxx.com/xxx/

                - 1 attribute called NotifURL to be added in the notification of type string builder and I put the following config: "<Hyperlink xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' NavigateUri='";'URL';"'>Mob-OT Home</Hyperlink>";


                I added the value of NotifURL attribute in the notification and it is working fine. It seems to be not a problem with the string builder.


                Try this with a simple URL with no parameter at the beginning then add parameters. Normally the value of the URL attribute must be valid --> you can ctrl+click on the attribute and check if it is opening correctly.


                Hope this will be helpful and keep us inform


                Best regards



                  • Re: Custom Hyperlinks

                    I've simplified my setup as you suggested to try and track down where I am going wrong.


                    When I send a test email through notifications, the link is displayed properly in the email. I can even look in the source code and verify it is correct:


                    <p class="OSINormal"><span style="font-weight:bold;">Link test: </span><a href="http://www.google.com">Test</a></p>


                    However, when I the notification email is sent as part of a running notification, I don't get the link. Instead, it says "{Error inserting result}":


                    <p class="OSINormal"><span style="font-weight:bold;">Link test: </span>{Error inserting result}</p>

                      • Re: Custom Hyperlinks



                        On my side, it is working with a running notification. I am using Af and PI Notif 2012.


                        I got the following in the source:

                        <p class="OSINormal"><a href="https://xxx.xxx.com/xxx/">Test Home</a></p>


                        Maybe check with the technical support if they know what the source of the problem

                        • Re: Custom Hyperlinks

                          Hi Aaron,


                          If you want a quick fix, try to restart the notification and/or the notification scheduler. I have seen multiple cases where this issue is resolved after a restart. If that doesn't fix the issue, enable logging for the notification and check the message logs.


                          As Gael says, contact Tech Support if the issue persists. Please post the resolution here if you do contact Tech Support and resolve the issue!

                          1 of 1 people found this helpful