Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Nested Repeat Region Question

New Here ,
Apr 12, 2007 Apr 12, 2007
Hi,

I am trying to summarise the activity within a forum. The forum contains 4 different discussion boards you can post to, and I want to list each discussion board, along with the 5 latest threads within each discussion board. (each thread is assigned a forumid value which is linked to a 'forums' table containing the forum name)

I have created a page that almost works perfectly. It is made up 2 repeat regions: 1 for the 4 discussion boards, and another for the threads within them. As I said, this is working almost perfectly, but there is a problem. The second repeat region (for the threads) is not doing the repeat for each discussion board. ie, If I set the number of repeats to 20, it will display 20 threads from the first forum, rather than 5 from each of the forums. If I add 'GROUP BY forumid' to the query it returns only 1 result from each forum.

I have attached the code - if anyone can help me out on this I'd be really grateful - am so close and it's really frustrating!
Thanks a lot

TOPICS
Server side applications
228
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Apr 12, 2007 Apr 12, 2007
LATEST
You need to create a recordset for each discussion thread count that is filtered by a discussionID. So you will have 4 thread recordsets each filtered by a different discussionID.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines