[support] how to show a view in a table format

vibanu vibanu at gmail.com
Thu Jan 16 20:40:11 UTC 2014


I tried DataTables, tables format and now screen is using cross tabs, where
semester offered is a taxtonomy. The issue I am having in all these is that
semesters offered (fall, spring summer etc.) should be shown as column
headings, with its contents showing as YES or NO.

                                    Semester Offered
CSE 110           fall2013, spring 2013, summer 2013
CSE 102           fall2013, spring 2013
CSE 101           spring 2014

None of the suggestions are working for me. How can I acheive this with
crosstab?


On Thu, Jan 16, 2014 at 2:17 PM, Metzler, David <metzlerd at evergreen.edu>wrote:

>  @vibanu … No… your reasoning is sound.  I would not change the db model
> you have.   Try using the crosstab views module as I suggested earlier.  Or
> if you are comfortable with SQL give Forena  a try:
> http://drupal.org/project/forena  (shameless plug).
>
>
>
> IMHO, You have the right data structure… most flexible and most
> sustainable.
>
>
>
> Dave
>
>
>
> *From:* support-bounces at drupal.org [mailto:support-bounces at drupal.org] *On
> Behalf Of *Warren Vail
> *Sent:* Thursday, January 16, 2014 10:37 AM
> *To:* support at drupal.org
> *Subject:* Re: [support] how to show a view in a table format
>
>
>
> Not sure what the best answer would be here, in DB terms, you are trying
> to establish a many to many match, a course can be active during many
> semesters and a semester can have many courses in it.  In the form you
> showed me the student selects (or it's selected for him, based on the
> upcoming semester) a series of 5 semesters, and courses appearing in any of
> those 5 semesters are shown.  That was the reason I had suggested
> flattening one of the dimensions of the match bo coding each of the 5
> semesters as a separate column, and you are correct, you do wind up with
> redundant columns for as long as you keep the hidden columns, but
> implementing it in Drupal is simpler IMO.  for example; flattening the
> joins results in a simple test to see if any columns are checked (of the
> current 5 semesters) to decide whether who list the course, not listing
> courses that are not checked in any of the current 5 semester columns.
> Right or wrong that is the approach I would take.
>
>
>
> On Wed, Jan 15, 2014 at 6:34 PM, vibanu <vibanu at gmail.com> wrote:
>
>
>
> We added semester as taxtonomy term with values  Spring 2013, Fall
> 2013 and Spring 2014 for now to test this. Created a view of table format.
> We were thinking of showing a filter of semester for students to pick from
> and show one semester at a time. However, this also did not work because I
> could only see the courses that were offered. I was unable to list all
> courses with offered YES or NO next to it.
>
>
>
> On adding new field each semester, we will end up with so many redundant
> fields in this so called 'courses' content type. Is this a suggested
> practice?
>
> On Wed, Jan 15, 2014 at 2:09 PM, Warren Vail <warren at vailtech.net> wrote:
>
> It's easy to get tangled up in the details with Drupal, Datatables has a
> good interface with views, and hiding old columns, while not automatic, is
> simple.  I would add a single checkbox for each semester as a separate
> column and hide the old ones from displaying in the view, adding new
> columns each year or semester.  Displaying the checkbox (checked or not)
> would do the trick.  You might like the search box with datatables, it
> produces a very responsive filter that works with each character you type,
> and your table is not so large that response issues will show up.  You will
> need to play with CSS for styling, but nothing major as long as you don't
> mind manually hiding columns from time to time.
>
>
>
> On Tue, Jan 14, 2014 at 10:59 AM, vibanu <vibanu at gmail.com> wrote:
>
>   Hi All,
>
>
>
> We would like to replicate the following page into DRUPAL
>
>
>
> http://www.cs.stonybrook.edu/students/undergrad/CSEcourses.html
>
>
>
> We have content type of courses. We are struggling to find a solution on
> how or the best way to show the 4 semesters.
>
>
>
> Any ideas are appreciated.
>
>
>
> Thanks in advance.
>
>
>
> --
> [ Drupal support list | http://lists.drupal.org/ ]
>
>
>
>
> --
> [ Drupal support list | http://lists.drupal.org/ ]
>
>
>
>
>
> On Tue, Jan 14, 2014 at 1:59 PM, vibanu <vibanu at gmail.com> wrote:
>
> Hi All,
>
>
>
> We would like to replicate the following page into DRUPAL
>
>
>
> http://www.cs.stonybrook.edu/students/undergrad/CSEcourses.html
>
>
>
> We have content type of courses. We are struggling to find a solution on
> how or the best way to show the 4 semesters.
>
>
>
> Any ideas are appreciated.
>
>
>
> Thanks in advance.
>
>
>
>
> --
> [ Drupal support list | http://lists.drupal.org/ ]
>
>
>
> --
> [ Drupal support list | http://lists.drupal.org/ ]
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20140116/36c0acc7/attachment.html 


More information about the support mailing list