Lesson state

mwaindegwa
Am in the views and I want to use the lesson state in fields. Quiz Results: Lesson State The state of the lesson for the provided user. Calculated on the fly; can be "Finished," "In Progress," or "Not Started". Problem is the only state that shows is "In Progress" even when I have completed a course. Question is how do I calculate on the fly to achieve the other states? Thanks.
Profile picture for user James Aparicio
James Aparicio

Hi mwaindegwa,

Hi mwaindegwa,

Can you explain your specific case better please? You are looking at a view that comes with Opigno or you are creating a new view?

I just tested adding the field to the Opigno view "Opigno Quiz Student Views" it it worked correctly. I cannot reproduce this issue you are having.

 

Best regards

mwaindegwa

Am looking at a view that was

Am looking at a view that was shipped with opigno (/admin/structure/views/view/opigno_my_courses/) I want to add a field called Quiz Results: Lesson State which has states "Finished," "In Progress," or "Not Started" The only state that shows is in progress. How can i tweak it to display the other states? Thanks
Profile picture for user James Aparicio
James Aparicio

Oh ok,

Oh ok,

Now i understood you. You want to display individual students results for the required lessons a given course has.

For that i would create a new view with a block that has a contextual filter as the course. This view would lists the required quizes for that course and the current user state for that course.

After you have this view, render this view as a field view inside your main view giving it the course id.

You can also just create a php field in the main view and output what you want.

 

Best regards

yovwi

Converting lesson state to chart

Am trying to show member courses ,progress and course take button,Please how do i go about this as i tried creating a view and under lesson progress ,i only have 3 states.(I want the progress to be in form of a colored bar)