XPages: Repeat inside Repeat - single category. Is this possible?

Hi all,

I’m new to XPages, and was wondering if the following is possible:

I have a repeat control (repeat1) that uses a view to render html for each item in the view. Inside this repeat, I want to have another repeat control (repeat2) that outputs items from another view - but repeat2 should be restricted to a category that is picked up from a field in repeat1’s view entry.

In essence I want a repeat control restricted to a view category, inside another repeat control, with the category filter being picked up from the view entry in the outer repeat control.

Is this possible, and if so how would I go about doing it?

Sorry if that sounds confusing!

Subject: Check the XPages wiki

Think this is what you are looking for.

http://www.youatnotes.de/web/youatnotes/wiki-xpages.nsf/dx/Work_with_repeat_controls#%20repeat%20control%20inside%20another%20repeat%20control

Subject: Perfect, thanks

Thanks for the responses and the help, I’ve got it working now.

Subject: I did that for a conference

You can download the sample database here (mine’s the one at the bottom)IT and technology | Cyber security | New technologies | Tools and programmes - blug.be

It’s the dashboardCards custom control. I have a view of people (which I’m already filtering based on other selected elements) and using to create a repeat control of business cards. Nested within that repeat control is information from another view, each time using the relevant person’s name from the outer repeat.

If you preview the dashboard, it doesn’t work in IE because of the method I used to create the chart.

Paul

Subject: Repeat inside a repeat

I did a video demo on this in Show 14 on NotesIn9.

My normal link would be:

http://notesin9.com/index.php/2010/03/30/notes-in-9-show-14-repeats-repeated/

But that’s not working at the moment. The show can also be found here: