Forums

Replace column value

currucutaco 23 Jun, 2019
Hello, can someone help me
How to replace the values of a column ex. 0 to 1 in all registers

thanks
healyhatman 23 Jun, 2019
Use data save action, update, set the column to 1 and in where conditions look for rows where the column is 0
currucutaco 24 Jun, 2019
Hi Healtyhatman
I use a task button to make the switch Enable value=1 and Disable value=0 but I do not know how to configure the button for realize this task.


When I have the user ID he used the following statement.
URL and/or URL parameters
habilitar={var:tabla_estudiantes_no_evaluaron.row.NoEvaluaron.id}&value=0

but in this case I need to replace all the values without being attached to the id
healyhatman 24 Jun, 2019
Have a look at the dynamic actions demo in CCv6. Specifically:
events: publish

views:
quick_publish_button
quick_unpublish_button

functions:
choose_article_publish_link
publish_article
check_publish_result
This topic is locked and no more replies can be posted.