Please help me out which is the best approach to solve

Hi Club Members,

I have three custom modules events, event template, session

events module has one to many relationship with session module

event template has one to many relationship with session module

In the even template has session records in the subpanel, In events module we have checkbox has even template whenever has event

template checkbox is checked event template field will appear 

when I select even template what ever is there in event template subpanel session records should pass to the events subpanel session records

Thanks & Regards

G Varun Kumar

  • Hi Varun,

    I am trying to understand your requirement a little bit better.


    It sounds like you have:

    - a Relationship between Events and event Sessions, (one Event -> many Sessions)

    - a Relationship between event Templates and event Sessions, and (one Template -> many Sessions)

    - a Relate Field on Event linking a single Template to that Event. (many Events -> one Template)



    You want Event to inherit all the Sessions that are on the related Template.

    Should the Event have ONLY the Sessions that are related to the Template or could it have additional Sessions?

    My gut feeling is that you have more relationships than what you need from a Business logic standpoint. 

    It feels like each Event has a Template, and each Session for that Event will follow that one Template. Is that right?

    FrancescaS

  • Awww, love that thinking ,

    would like to add

    1. We have an event type ( template ) compared like a standard course

    2. A course is happening at a specific date ( event )

    3. a number of clients participate ( sessions )

    isn't this following the above described logic? I may absolutey wrong but I have a feeling...

    Bests

    Björn