kangkulbir Posted December 28, 2012 Share Posted December 28, 2012 Hi All,In my prob i have 3 columns say ID, name and Links. for one ID and Name, i have multiple links. i.e ID =1 , Name = Test, Link = http://www.yahoo.com, http://www.google.com, http://www.community.jaspersoft.com. i want to see this record as one row, three lines in link column with all three links. and need all three links as hyperlink to their corresponding internet links.currently, i have just shown a valid internet links in single column, Adobe Reader makes them links as it has property to show hyperlinks as link, but this has one problem that my column length is specific and when length of internet URL is more than this column length, it automaically wraps it to next line. when links wraps into next line, it gets cut.Please respond, need immidiate solution.Thanks in advance Link to comment Share on other sites More sharing options...
Anuj Dudhakawale Posted December 28, 2012 Share Posted December 28, 2012 You didn't mesioned about what database you are using.If you are using Oracle 11g, then do following.Write following query in your dataset on which your table is depending.SELECT ID,NAME , LISTAGG(LINK, ',') WITHIN GROUP (ORDER BY NULL) AS "LINKS" FROM emp GROUP BY ID, NAMEAfter writing query, take all these fields into your table. After you take LINK textfield into your table set it's following properties.1) Markup -> htmlAfter setting above property, preview your report. Link to comment Share on other sites More sharing options...
kangkulbir Posted December 28, 2012 Author Share Posted December 28, 2012 hi sir.. i m using sql 2008 and i tried using markup as html.. it shows link in report but prob is that when link is very long, it wraps into second line and when i place cursor on it in report.. link breaks after first line... thanks for ur rply...please comment Link to comment Share on other sites More sharing options...
kangkulbir Posted December 28, 2012 Author Share Posted December 28, 2012 hi sir.. i m using sql 2008 and i tried using markup as html.. it shows link in report but prob is that when link is very long, it wraps into second line and when i place cursor on it in report.. link breaks after first line... thanks for ur rply...please comment Link to comment Share on other sites More sharing options...
ajinkya_c Posted December 29, 2012 Share Posted December 29, 2012 May be possible with crosstab becouse it makes grouping automatically. Add id & name in rowgroup & column group create with any name keeping with value expression of column group keeping blank, then add your links column in measure with calculation nothing.Let me know if works. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now