Got it working by storing the last accessed coursekey string in meta field 
of UserProfile model. Meta field is a json dump kept for expansion (as per 
comments).  Not sure if there is any downside to this solution.

Regards,
Vinayak

On Friday, April 28, 2017 at 6:16:13 AM UTC, Vinayak Bhat wrote:
>
>
> Hi All,
>
> For the current project of mine, we have the following requirement. 
> Provide a Resume button which takes the student to the last accessed course 
> content. I know that there is a feature which stores the last accessed 
> courseware for a each user and course in FieldDataCache. But I am unable to 
> which was the course last accessed by the student by the current data 
> models i.e For any given course enrolled by the student, its possible to 
> get the last accessed content. But how to get the last accessed course id?
>
>  Any direction on how to go about implementing this feature is welcome.
>
> I am currently thinking of introducing a field in  student model to store 
> the last accessed courseId. And then accessing FieldDataCache to get last 
> accessed course for that content. 
> Any suggestions on this approach would be great. 
>
> I am working on forked eucalyptus code base .
>
> Thanks,
> Vinayak
>

-- 
You received this message because you are subscribed to the Google Groups 
"General Open edX discussion" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/edx-code/283ac77b-5742-43e3-8f49-4e543b609278%40googlegroups.com.

Reply via email to