I guess there is a bug in quiz-views integration

1. I am not able to apply filters, getting error like "There are no filters available to add"
2. Not able to add all the fields to page view getting error like "Error: handler for quiz_node_results > result_id doesn't exist! "
3. There is not option (AFAIK) to display username and quiz title, it will be good to display username and quiz node name instead of showing user id and quiz node id.(feature request)

I am on quiz-6.x-2.1, php 5.2, drupal 6.9. I have attached an image to this issue which can convey more information.

Thanks
sivaji

CommentFileSizeAuthor
Screenshot.png105.42 KBsivaji_ganesh_jojodae

Comments

mbutcher’s picture

The views component needs some attention. My Views 2 integration was hasty at best.

B747’s picture

Hi mbutcher,

Have you had time to fix #2 yet? The rest of quiz views quite well, but this is quite a big setback....

Cheers.

mbutcher’s picture

sdboyer has been working on fixing up the views integration. He's begun patching already, but I think it will be later this week before all of the views patches land.

schefz’s picture

#3There is not option (AFAIK) to display username and quiz title, it will be good to display username and quiz node name instead of showing user id and quiz node id.(feature request)

seems like a very important flaw in the quiz system. Displaying the user's name is much more meaningful and useful to end users the the UserID. I cant wait til this gets updated!!

mbutcher’s picture

Can you not join on the quiz node nid and the node table to get the title? Likewise for username.

A huge views patch is about to land. sdboyer has added deep views integration with Quiz. That should take care of 1 and 2. For 3... you still have to join against the node and users tables.

schefz’s picture

I conceptually get how to link the username table and the uid table, but im a noob to the development side of things and dont think i know how to get that displayed in the view... i guess its time for some research!

bls20’s picture

Hi All,

I have the same problem with:
Error: handler for quiz_node_results > result_id doesn't exist!

Has anybody figured out how to fix this?

Cheers.

mbutcher’s picture

Views integration in Quiz 3 has been reworked. Is anyone noticing the problem there?

jinside’s picture

I am testing the views integration feature for Quiz 3 currently. Will let you all know my results as soon as I dive into it more. I see "The term ID used to select questions based on taxonomy." as a views field but not sure how to set it up to test it.

mbutcher’s picture

Version: 6.x-2.1 » 6.x-3.x-dev

Term ID:

On a quiz, you can assign a taxonomy term that will be used as a pool for random question selection. If you configure quiz this way, the term ID will be set in the table, and you will be able to use the term ID (and relate it to a taxonomy term) in the view.

Other quick update: sdboyer has done a TON of work getting view support working in Quiz. His changes have required some database table-level changing, so these new views will not be backported to Quiz 2.x. However, the jump from 2.x to 3.x will be relatively minor. You'll have to run update.php, but not many deep structural changes have been made.

Matt

mbutcher’s picture

Status: Active » Closed (fixed)