Dear all, I am trying to save data in the two tables of moodle externally for mdl_question_attempt_steps, mdl_question_attempt_step_data. However, I am not able to crack the logic of how the attempted choices are saved in the table - mdl_question_attempt_steps, mdl_question_attempt_step_data.
Please help as this only problem is creating an application to function improperly in the review page.
Basically, I am creating a group of students for giving the quiz in an external OMR sheet. I am generating an API to which talks with an external PHP application which scans and returns the results in a JSON format. Now I am trying to insert the values in JSON in the moodle tables, to generate the results. The overall score is showing correctly, but in the review page, the answers are being displayed erroneously.