CodeSmith Community
Your Code. Your Way. Faster!

Multiple filters in Many-to-Many relationships

Latest post 09-22-2007 10:34 AM by bgjohnso. 2 replies.
  • 09-20-2007 11:13 AM

    • kushal18
    • Not Ranked
    • Joined on 08-27-2007
    • Posts 7
    • Points 165

    Super Angry [8o|] Multiple filters in Many-to-Many relationships

     Hey guys,

     I am having tough time using NetTiers on the front end of a website. The CMS works perfectly fine.

     

    Problem

    I have a table - 'Music' and two more tables: 'MusicCategory' and 'MusicInstrument'.

    Multiple instances of 'MusicCategory' and 'MusicInstrument' can exist for 'Music' (Music can be found under more than one category and have more than one instrument).

    I have built a custom control for the filtering with 2 databound EntityDropDownList controls. However, now I want to be able to perform filtering on the 'Music' table with the values selected in the EntityDropDownLists.

    Furthermore, other search filters will be added in the near future, on fields found in the 'Music' table, such as 'length' or 'title'. 

     

    I have tried using MusicCategoryFilters and MusicInstrumentFilters but with no success so far.

     

    I have included the SQL script required to create the 3 tables in question.

     

    If anyone can advise me as to what the best way to go about it would be, I will be very grateful and it will help me make progress in the project.

     

    Thanks in advance :)
     

    • Post Points: 35
  • 09-22-2007 6:40 AM In reply to

    • kushal18
    • Not Ranked
    • Joined on 08-27-2007
    • Posts 7
    • Points 165

    Re: Multiple filters in Many-to-Many relationships

    Bump! 

    • Post Points: 5
  • 09-22-2007 10:34 AM In reply to

    • bgjohnso
    • Top 10 Contributor
    • Joined on 09-15-2005
    • Spokane, WA
    • Posts 764
    • Points 22,530

    Re: Multiple filters in Many-to-Many relationships

    I think that a custom stored procedure is probably your best bet right now.  This will allow you to pass in whatever parameters you want.  Unfortunately, we don't currently have a good solution for this type of scenario (that I know of).  If you have ideas of how this could/should work, let us know.

    Ben Johnson
    ------------------------------
     Member of the .NetTiers team
     Visit http://www.nettiers.com
    ------------------------------

    • Post Points: 5
Page 1 of 1 (3 items) | RSS
Copyright © 2008 CodeSmith Tools, LLC
Powered by Community Server (Commercial Edition), by Telligent Systems