Formatting a web hyperlink

mennovhmennovh Junior Member
edited December 1969 in Designing Analytics Reports
I have a report that contains web hyperlinks. Birt formats these link a normal hyperlink (i.e. blue underlined and purple underlined when visited). I want to remove/override this formatting. I have tried importing styles using the Import CSS style functionality but without sucess. I have read online that it ispossible to alter the default style of web hyperlinks but haven't found a working example. Has anyone done this before? Any help would be appreciated.

Comments

  • VirgilVirgil Administrator admin
    edited December 1969
    You can right click the control that has the hyperlink and create a new style. I have been able to format the font size, color, background, border, etc... I still could not remove the underline with this method however.



    To get the most control, you could also use a Text control instead of a data control... Set the formatting of the control to HTML and then try something like this:



    " style="text-decoration:none;color:green;font-size:9pt"

    onMouseOver="this.style.color = 'tan'"

    onMouseOut="this.style.color = 'green'">

    row["POSTALCODE"]

    Virgil Dodson
    OpenText Analytics Developer Community
    https://communities.opentext.com/forums/categories/analytics

  • susqcsusqc Junior Member
    edited December 1969
    But what if the link I want to format is to a drill down to another report???
  • serafoserafo Junior Member
    edited December 1969
    Hello Guys.

    I need to do link to reports based on the value of the slice of the pie I click.
    ie. The pie shows three, or more, slides. But there is one that I need to link to a specific report. The other ones can link to another

    Is it possible?? Thanls for your help!
  • edited December 1969


    But what if the link I want to format is to a drill down to another report???


    Hello, Any luck with removing underline from drill-through link?
  • johnwjohnw Senior Member
    edited December 1969


    Hello, Any luck with removing underline from drill-through link?




    Bookmark the link to modify, drop in a Text element and set to HTML, and use Javascript to modify by using a document.findElementById().



    I suppose you could also modify it by putting in a script in the onRender event for the data element, and setting the this.getStyle() properties.



    John

    John Ward

    BIRT Expert

     

    Help us improve the BIRT Product and Community by taking this survey.

Sign In or Register to comment.