1

I am new to Edx and its internal architecture.

I am looking for, creating a custom Edx XBlock which has a form. On form submit it will POST a REST-API call and store the result for the student view. Student will see only the result part (not form part)

I am able to create XBlock and call REST API. But I am not clear that how and where I have to store the result part. I believe it should be stored inside edx mongodb (Please correct me if I am wrong). If so, how should I access the db from XBlock.

I would greatly appreciate any suggestion.

4

1 回答 1

2

使用 XBlocks,数据存储是通过 XBlock 字段处理的。您设置字段值,框架将自动将该值存储在数据库中,并在重新加载 XBlock 时恢复它。

值的存储位置和方式取决于每个 XBlock 字段的范围。请参阅有关 XBlock 字段范围的文档

于 2015-05-08T08:36:51.793 回答