Forum OpenACS Development: Multiple Choice in Listbuilder

Collapse
Posted by Malte Sussdorff on
I would like to add in the table of tasks a column for priority which is set to the current priority of the task - in a select box!. This way you can see what is the current priority but can quickly change it from the overview page.

Once you do change the priority, an onChange event should be triggered which will store the new value in the database. The communication needs to happen in the background, so the user will not realize that the change has been saved.

Is this possible? And if yes, did someone do something like this already? And how would I go about it?

Collapse
Posted by Dave Bauer on
What you want to do here is put a form into the display template for that column. Then use some sort of AJAX to submit in the background. I am not sure why you want to make sure the user does NOT realize a change has been saved. Wouldn't it be better to notify the user that it was saved? Usually some sort of message appears temporarily at the top of the page, or near where the change was made.
Collapse
Posted by Malte Sussdorff on
Yeah. Notify is good. I just wanted to make sure that the whole page is not reloaded just because the user changed the priority. This would probably go into user_messages? Or should we do some of the fancy Ajax feedback I have seen on other sites (e.g mark the whole row shaded and once saved, add a green arrow to the right). Hmm.... probably too much work 😊
Collapse
Posted by Dave Bauer on
It should be easy with the ajaxhelper package.