跳至内容
菜单
此问题已终结
2 回复
4094 查看

Greetings,

If I want to show for example selections to the user that are not part of the model shown by the view, how can I save the user's selection and send it back to the server upon saving?


Is there a way to do it without using computed fields?


Thank you

形象
丢弃

can you please more explain, what you want to do?

编写者 最佳答案

Hi,

I have a list of courses that I want the user to mark as either ALEAEDY STUDIED, NEED TO STUDY or CAN TEACH using for example radio buttons or a drop down list. However, I do not need to store the user selection in each course model. Rather, I need to take different course of actions in the server side depending on the value selected for each course when submitted. In other words, the selections are not related to the model but rather to the form but I will take action in the server based on them without really storing them in the database.

Any clue how I can achieve this? maybe through context?

形象
丢弃
相关帖文 回复 查看 活动
1
3月 15
5924
2
9月 23
9079
1
9月 23
3289
2
3月 22
7303
1
11月 19
7936