Hi at all,
I think I have kind of a pretty genereic problem but I don't get the initial idea to build on.
So heres my situation:
currently I'm working on a workshop-management application based on SharePoint 2010. it stores some information about different workshops and customers who visited a workshop can rate the quality of it.
It's a relative simple application: a website which contains some lists and a custom aspx-form for the rating-formular. The data-model looks like this:
tutor-list:
- ID (Number)
- LastName (String)
- FirstName (String)
- ...
workshop-list:
- ID (Number)
- Title (String)
- ...
event-list:
- ID (Number)
- begin date (date)
- end date (date)
- tutor (lookup)
- workshop (lookup)
- ...
rating-list:
- ID (Number)
- event (lookup)
- firstQuestion (Number)
- secondQuestion (Number)
- thirdQuestion (Number)
- ...
Kind of a classical, normalized, relational data-model (maybe that's the problem) ;-)
The problem is this: I need to create a report which contains the following information:
- tutor
- workshop
- begin date / end date
- average of each question
Common task, I thought. So I created an ordinary listView for the rating-list. I added the event-list as a lookup-column which worked fine. Also included the begin- and end date-column of the event-list. But i couldn't include the tutor- and the workshop-columns of the event-list. They simply don't appear in the "Add a column to show each of these additinal fields:"-section in the event-column-settings. Hmpf...
So I opened SPD and tried with a join datasource but didn't work as well. It seem's that it's impossible to create a view, which contains a lookup-column of another lookup-column.
I have searched the web for a programmatical solution but i don't find the right starting point. Read a lot about SPGridView, SPQuery, caml with joins and XsltListViewWebpart but I don't get it how to combine these components.
I think it's kind of a generic task isn't it? Combining different lits which are related via lookup-fields to one listView with the common listView-features like sorting, filtering and grouping.
I would be deeply grateful for every tip I get!