core_grades_update_grades: componet and activityid for manual grade item

core_grades_update_grades: componet and activityid for manual grade item

by Roberto Bravo Diaz -
Number of replies: 4
Picture of Core developers Picture of Moodle HQ

Hello.

I'm trying to update a student manual grade item using the webservice but the 'core_grades_update_grades' function requires component and activityid, a manual grade item don't have activityid and I don't know the string I have to use as component/module for a manual grade item (someone of the mdl_modules?).

Does anyone know if it is possible to modify the values of a manual grade item using a webservice?

I can update a scorm grade without problem.

Regards,

Roberto.

Average of ratings: -
In reply to Roberto Bravo Diaz

回复: core_grades_update_grades: componet and activityid for manual grade item

by spoony liu -

Can you tell me how to  to update a student activity grade item using 'core_grades_update_grades' function?

thank you!

In reply to spoony liu

Re: 回复: core_grades_update_grades: componet and activityid for manual grade item

by Roberto Bravo Diaz -
Picture of Core developers Picture of Moodle HQ
Hi Spoony Liu.

Look this screenshot


Average of ratings: Useful (1)
In reply to Roberto Bravo Diaz

回复: Re: 回复: core_grades_update_grades: componet and activityid for manual grade item

by spoony liu -
The correct grade value is posted successfully. However, the feedback string doesn't show. Can you help with this please?
In reply to Roberto Bravo Diaz

Re: core_grades_update_grades: componet and activityid for manual grade item

by Jesus Marquez -

Hi Roberto,

Did you achive updating a student manual item?

Thanks.