Although I found a way of getting the gid and sid parameters of a student's submission from the userid (see previous post), this solution is not quite what I wanted as the url built in that way do not display any file attached as part the feedback, or the original submission from the student, for moderators and double marking.
To go directly to the student's file submission and the feedback including any attachment files, the user should have the capability of editing the feedback, which my block has.
In the new Assign 2.2, when you mark student by student, the url generated looks like:
It is easy to get the id number from the courseide and the assignment id:
However, I have been looking to all the tables for the assign activity and I cannot find how to generate the rownumber.
The rownumber shows the order in which the students submissions appear listed at:
For example if I have three students in my course, Student A,B and C
and one Assign 2.2 activity whose id was XXX
view.php?id=XXX&rownum=0 Student A is the first in the list of submission
view.php?id=XXX&rownum=1 Student B is the second in the list
view.php?id=XXX&rownum=2 Student C is the three in the list
Any advise about how to find the rownum that a student's submission has for an Assign 2.2 activity would be much appreciate it,