TechSpoken
"Any ideas?" is the most frequently-asked question in technical forums. My answer is: yes.

Walkthrough: When groups behave, they're groovy. Multilinks!

May 31, 2009 17:25 by LSN

When I wrote, a few months ago, that group bands are a real PITA, I didn't mean to imply that you should never use them.

Recently we had a requirement for a list of items that should each be linked to a different request to an external application.  As you know, and if you don't you can read this other recent post, SSRS has lots of ways to provide linkage and jumps to external content.  The question, this time, was how to put multiple links in one cell.

I'm going to leave RS 2008's placeholder control out of this discussion.  Obviously, if you can fashion the HTML in another application and just dump it all in one field, you can use a placeholder control to display whatever HTML, including multiple links, you need.  But it's not always so easy, especially when the items to be linked occur in separate rows in the first place.  That's the scenario we're considering here.

0. Sample data for this walkthrough 

I've used the MySQL World tutorial database as well as NorthWind, occasionally, to illustrate this particular point to VFP folks, because you can always find some way to fashion a link from geographic data, for example:

"http://encyclopedia.thefreedictionary.com/" + city

... but I'm getting a little bored with it and our needs for this walkthrough are really simple.  So I've chosen an example that's a little closer to home, in fact it's downright self-referential:

SELECT 'Dynamic Page Breaks in SSRS: Going to Eleven' Label,
           'http://spacefold.com/lisa/2009/03/08/default.aspx' Link , 
           'March' CMonth
UNION
SELECT
'Coming back into the light',
           'http://spacefold.com/lisa/2009/05/10/default.aspx' , 
           'May'
UNION
SELECT
'Whitespace occasionally can jump',
           'http://spacefold.com/lisa/2009/05/17/default.aspx', 
           'May'
UNION
SELECT
'Buddha''s dream',
           'http://spacefold.com/lisa/2009/05/22/default.aspx', 
           'May'
ORDER BY 2

... that's all you'll need to follow here.

1. Consider the base case

The normal way to provide a link is to use the "Navigate" or "action" facility on an RDL display object, such as a textbox.

In this case, we'll have a textbox with the expression Fields!Label.Value in it, and we'll link to the expression Fields!Link.Value.  That seems simple enough.

Here's the equally simple-minded result. I'm going to cut and paste the output right out the MHTML export rather than using a screenshot, just for fun, so you can click on the links.  (The other shots in this post are regular images, but I've used the underline style for the links so you can recognize them easily):

MultiLinks - LSN Recent Posts

 

simple table

 

     

March

Post

Title

 

2009/03/08

Dynamic Page Breaks in SSRS: Going to Eleven

May

Post

Title

2009/05/10

Coming back into the light

2009/05/17

Whitespace occasionally can jump

2009/05/22

Buddha's dream

 

2. Nest one data region inside another

The trick to having some elements repeat multiple times against another, in an RDL, is simply to nest data regions. 

In the following example, I've put a List inside another list. A list will repeat once for each relevant row of data, and it can contain free-form content by, in turn, containing other RDL display elements, such as text boxes and images.  In this case I've used the inner list to create a "bulleted list" of links. I've used a different color for the bullet just to make sure you can see the distinct textbox elements within the single list container. 

The outer list is distinguished from the inner content because it repeats on a different basis (in this case, I've grouped the posts by month, using the expression =Fields!CMonth.Value). 

The outer list must be grouped. But, as the note on the report surface says, you can use containers to group report display elements to make them easier to move as a unit.  If you don't happen to need a grouping value, just group the outer container on a constant.

3. Now build a better table

So now you can take that inner list container that we used above, and put it right into a cell of a (group) row of a table.  The result gives us exactly what we're looking for in the table, without any fancy or finicky HTML-generation code to bring together the multiple data rows.

 

See how easy that was? It was almost fun. And we owe it all to group expressions.

Poor, dear little group expressions. So terribly misunderstood.

They don't want to be evil.   


Comments

June 17. 2009 17:55

club penguin

Thank You very much! Now it works. I wish, I had found this document a few hours earlier.

club penguin

June 24. 2009 01:53

Filing back taxes

i agree with the author.i had a tough time controling these

Filing back taxes

June 25. 2009 04:55

Horst Dusseldorf

Multi links makes the greats to your site. Thanks for posting this suitable and important post.

Horst Dusseldorf

June 27. 2009 20:48

personal injury lawyer ct

Creating multiple links by using HTML in the page code is always a challenge when the content is limited. Thanks for providing the MySQL code for accomplishing this complicated task in an easy way. I will be using it for some of my clients' sites.

personal injury lawyer ct

June 30. 2009 01:11

wongsableng

i'm interesting about your article, keep posting

wongsableng

July 1. 2009 10:48

Life Insurance

Very good information which you have discussed in your article.Which one is the best for health insurance like price and service part ?

Life Insurance

July 2. 2009 23:18

Klauss Boehler

You have a great review. It can really help a lot.

Klauss Boehler

July 3. 2009 01:31

Stop Dreaming Start Action

hello, this is my first time i visit here. I found so many interesting in your blog especially its discussion. keep up the good work.

Stop Dreaming Start Action

July 3. 2009 13:27

Life insurance

Hi,

Can you write something more? It will be my pleasure if I can read from you about Latest .NET technology. I really believe that you're very good at that field.

Life insurance

July 4. 2009 18:14

web design

Bookmarked Smile because its excellent.

web design

July 5. 2009 11:08

links of london

Browse our extensive collection of Links Of London,including Links of London Charms,Necklaces,Bracelets, and Earrings at outstanding prices.

links of london

July 5. 2009 12:52

Free Government Grants

Nested table really make me crazy, any way nice post !

Free Government Grants

July 7. 2009 05:09

Rusli Zainal Sang Visioner

this to hard for me to understand.. but thanks for share. Smile

Rusli Zainal Sang Visioner

July 13. 2009 03:11

Wills

I am trying to run reports but it sometimes gets me bugs, learned a lot from this blog.

Wills

July 19. 2009 23:28

Leather Living Room Furniture

Very well written advice post, expecting more from you. I will check this in my new blog.

Leather Living Room Furniture

July 24. 2009 14:05

Toenail Fungus Infection

It is a great walkhrough. I will test it out. Thanks for sharing.

Toenail Fungus Infection

August 17. 2009 08:10

travelling

what a great blog, i really like it.

travelling

September 3. 2009 17:28

College Term Papers

Thanks for sharing your views on the topic. It makes one think and look the other side of the story.

College Term Papers

October 18. 2009 00:52

Melissa

I very much appreciated your writings and sharing your thoughts to everyone. I expect more articles to read for the next time.

Regards,
Noah Group

Melissa

October 19. 2009 14:51

Manny

I fount the information on this article very usefull. Thank you for the great information. www.nxgcrm.com

Manny

Manny

October 31. 2009 09:52

otimização de sites

It´s really easy!
Not fun, but really easy and that was a amazing tutorial!
Thanks for helping me.

otimização de sites

November 13. 2009 16:34

Homework Helper

I really impressed by your post. Thank you for this great information, you write very well which i like very much.

Homework Helper

November 15. 2009 17:32

marquee tent

Admiring the time and effort you put into your blog and detailed information you offer!

marquee tent

November 16. 2009 00:40

criacao sites

i love this post about the multi links.

criacao sites

November 16. 2009 00:57

boutique arte angels

good article.

boutique arte angels

November 16. 2009 08:13

hosted crm

Nice post I Like your site very well and continue to do so. I have bookmarked your site.

hosted crm

December 12. 2009 12:05

gladiator shoes

What do you mean in the phrases "if you can fashion the HTML" and "fashion a link". What's the meaning of the word fashion on that??

gladiator shoes

December 12. 2009 14:00

>L<

fashion as a verb = "make", create.

In French, the verb *to make* looks like this in present tense: Je fais, tu fais, il fait, nous faisons, vous faites, ils font.

>L<

December 16. 2009 07:17

fap turbo scam

Thanks for the Sample data for this walk-through. That helps me in the assignments in Software Engineering Module.

fap turbo scam

January 22. 2010 03:05

Net

Interesting post. Thanks

Net

January 27. 2010 11:51

Pete Zingaro

Nice website by the way.

Pete Zingaro

January 27. 2010 12:58

Sell Clothes For Cash

Cool, there is actually some good points on this post some of my friends might find this relevant, will send them a link, many thanks.

Sell Clothes For Cash

January 27. 2010 18:40

Credit Repair Experts

I would like to thank you for the efforts you have made in composing this article. I am going for the same best work from you in the future as well. In fact your fanciful writing abilities has prompted me to start my own blog now. Actually the blogging is spreading its wings rapidly. Your write up is a fine example of it.

Credit Repair Experts

January 28. 2010 23:16

Eliana

Most helpful site and information

Eliana

January 29. 2010 23:09

free plrs

Post itself and article wasn't too bad, good job! I was just wondering if you sell advertising spots on here? If so, who do I need to contact get hooked up?

free plrs

February 2. 2010 09:22

Zahnmedizin Kevelaer

Wirklich sehr interessant geschrieben! Ich bin selbst Zahnarzt und starte gerade einen eigenen Blog, da bin ich über interessante Berichte immer sehr froh Smile

Zahnmedizin Kevelaer

February 2. 2010 09:42

Zahnarzt in Kevelaer

Als Anfänger, der selbst gerade einen Zahnarzt-Blog startet, freue ich mich über alle ähnlichen Blogs als Inspiration. Vielen Dank und "keep up the good work"!

Zahnarzt in Kevelaer

February 3. 2010 01:05

Laser Hair Removal Pricing

Thanks a lot for that exceedingly great editorial.

Laser Hair Removal Pricing

February 3. 2010 04:24

john

Hi Admin, interesting blog. Just curious why you chose a Microsoft server? http://www.stocktradingstrategies.biz

john

February 3. 2010 05:25

thomas

I wanted to thank you for this excellent read!! I definitely loved every little bit of it. I have you bookmarked your site to check out the new stuff you post http://www.youronlinecreditrepair.info

thomas

February 4. 2010 21:23

Bangalore Forex

Thanks for taking the time out to share this with the world. I really appreciate this. Keep doing what you're doing.

Bangalore Forex

February 5. 2010 10:35

blog

Very usefull Info Very Kind of You for sharing

blog

February 5. 2010 10:59

Bloger Online

Now I know why so many people enjoy this site, nice contribution. Thanks

Bloger Online

February 10. 2010 10:09

Online Doctoral Degrees

Excellent post.I want to thank you for this informative read, I really appreciate sharing this great post. Keep up your work.

Online Doctoral Degrees

February 10. 2010 10:10

Online Doctoral Degrees

Nice article.....this blog will helpful to every one.....You have selected wonderful article....

Online Doctoral Degrees

February 10. 2010 23:55

overseas removals

Very useful info. Hope to see more posts soon!

overseas removals

February 11. 2010 01:31

Ivan

Thanks for sharing information with all of us. I must say your idea behind the post is amazing.I would like to read more from you.

Ivan

February 12. 2010 19:33

wheelchair lift

Thanks for sharing wonderful information with us.Very interesting post. Thanks a lot for sharing. keep it up the good work.

wheelchair lift

February 12. 2010 19:35

wheelchair lift

Excellent post.I want to thank you for this informative read, I really appreciate sharing this great post. Keep up your work.

<a href="www.best-wheelchair-lift.com">wheelchair lift</a>

wheelchair lift

February 14. 2010 11:58

computer projectors

Nice article.....this blog will helpful to every one.....You have selected wonderful article....

computer projectors

February 16. 2010 09:24

Cath

This was informative. I feel warm feelings towards you for sharing.

Cath

February 18. 2010 02:29

computer printer ink

Excellent post.I want to thank you for this informative read, I really appreciate sharing this great post. Keep up your work.

computer printer ink

February 25. 2010 00:41

Black Caviar

Admiring the time and effort you put into your blog and detailed information you offer. I will bookmark your blog and have my children check up here often.

Black Caviar

February 26. 2010 02:05

Tim

Very informative. Thank you for sharing it I am so impressed w/evernote so far. really pro stuff. thx folks

Tim

February 27. 2010 11:08

Dog Tags for Dogs

Just learned dreamweaver, now I have to get into this. Thanks

Dog Tags for Dogs

February 28. 2010 04:14

moveis

This is a really good discussion! It is interesting that it has spanned over a few years and is still relevant. Thanks for the viewpoints – Happy 2010!

moveis

March 1. 2010 06:04

alas

It is indeed a great resource to obtain information on this subject. Keep posting. Thanks.

alas

March 2. 2010 10:41

live jasmin show

Wow...I appreciate so much your effort!
Great post

live jasmin show

March 8. 2010 08:59

Rehabs

I am just new to your blog and just spent about 1 hour and 30 minutes lurking and reading. I think I will frequent your blog from now on after going through some of your posts.  I will definitely learn a lot from them.

Rehabs

March 12. 2010 04:18

Kassandra

Post itself and article wasn't too bad, good job! I was just wondering if you sell advertising spots on here? If so, who do I need to contact get hooked up?

Kassandra

March 12. 2010 04:23

minoksidil

Very good article, indeed! I like your style of writing. Keep up the good work!

minoksidil

March 17. 2010 11:14

wheelchair lift

Excellent post.I want to thank you for this informative read, I really appreciate sharing this great post. Keep up your

work.

wheelchair lift

March 18. 2010 11:29

Sarkari Naukri

Very useful & informative...I appreciate ur great effort.

Sarkari Naukri

March 31. 2010 01:13

Tanja Hammerl

nice text Smile thanks a lot for sharing this Smile

regards
Tanja

Tanja Hammerl

March 31. 2010 19:03

Sacramento Car Loan

Nice work.  I work for a car loan company ( http://www.sacramento-car-finance.com/ ) and need some time to relax.  Your site helps me do just that.  Thanks and keep up the good work

Sacramento Car Loan

April 11. 2010 02:16

Agentii hostess

Groups are made because man is not very happy by himself. I a small group everybody is feeling a lot better.

Agentii hostess

April 26. 2010 19:22

lift chair

Excellent post.I want to thank you for this informative read, I really appreciate sharing this great post. Keep up your work.

lift chair

April 29. 2010 10:36

absolutely free credit report

Thanks for sharing nice stuff.info that u have given in this blog is really impressive..Iam very happy to visit your blog..

absolutely free credit report

April 29. 2010 18:59

fulfillment

I had no idea how multilinking works!!, thank you very much for that Smile
Regards,
Ronald Walker

fulfillment

May 1. 2010 12:03

Disney Games

Some good information here.

Thanks..

Disney Games

May 6. 2010 18:49

linkslondon

I had no idea how multilinking works!!, thank you very much for that Smile
Regards,
Ronald Walker

linkslondon

May 11. 2010 02:28

outsource medical billing

i think its worth to work on multi masking.

outsource medical billing

June 4. 2010 04:33

Robert Lane

Excellent post. Not just conceptual but useful on the ground.

Robert Lane

June 6. 2010 15:38

baltimore limousine

Excellent post.Just upgraded my uplinks postals.

baltimore limousine

June 9. 2010 00:45

xvid movies

Informative and interesting post , thanks.

xvid movies

June 12. 2010 12:50

Nursery School Supplies

Nice article.....this blog will helpful to every one.....You have selected wonderful article....

Nursery School Supplies

June 26. 2010 07:55

Hilarious Quotes

Excellent article...Anyway you should have included some more screenshots..

Hilarious Quotes

June 30. 2010 02:11

Mac torrents

Excellent work.I very much appreciated your writings and sharing your thoughts to everyone.Thanks.

Mac torrents

July 3. 2010 18:59

Xerox Phaser Ink

Thanks for sharing the article.

Bryan

Xerox Phaser Ink

July 3. 2010 19:00

Twilight Bedding

Thank you for the tutorial.

Mikey

Twilight Bedding

Add comment


(Will show your Gravatar icon)

  Country flag

Click to change captcha

biuquote
  • Comment
  • Preview
Loading