コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
3211 ビュー

Hello everybody,   I want to add a constraint but I don't have the idea of how to do it. I created a custom export which auto-generates external ids for each record I export. The export contains a list of students which the lecturer has to update their marks.. and re-imports the same excel sheet which also updates the marks of the students. 

However much there is some information which I don't want the lecturers to update but I have failed to restrict the lecturer from importing the data in case those field values have been updated. 

Any Ideas,  Thank you. 


アバター
破棄
最善の回答

Hello Brian,

You can modify the logic in write method and check that if the data is being written from Import and user has a group of lecturer, in vals there should ne only marks. If any other key found in vals, it should raise warning.

Thanks,

アバター
破棄
関連投稿 返信 ビュー 活動
1
8月 19
8758
2
12月 23
14756
0
11月 23
1755
0
10月 23
33
3
10月 23
788