Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Calendar widget with multiple datasources

    Hello,

    I am using SmartGWT Power 2.4, and I want to do the following:

    I have multiple tables with timed data. Is there a way to aggregate this data into a single calendar, ie. is it possible to connect multiple DataSources?

    Or should the database be refactored / code be written that aggregates the data, and then adds it to the calendar (which is less preferrable of course).

    Could some1 suggest a good way to tackle this?

    #2
    Create a DataSource representing the data as you want it in the calendar. Then use either SQL tempting to do a join, Java logic to combine data together, or some mix. No need to refactor any existing code.

    Comment


      #3
      Okay thanks!

      My first attempt will be to create a LayeredCalendar, extending Calendar, and provide an API to add multiple DataSources.

      Comment

      Working...
      X