Forums

Updating Record in Table

vividal 05 Feb, 2018
I am trying to update a field in a record in a table based on one of the fields in the form. I have changed the "write action" to Update but when I add the update condition nothing is written to the table/field. If I leave the update condition blank, the field I want to update gets updated for ALL records in the table (definitely not what I want). I am thinking my syntax is wrong. Can someone please look at it and let me know.
vividal 05 Feb, 2018
[file=10008]Field-Seed.jpg[/file]
[file=10009]Field-Team_id.jpg[/file]
[file=10010]Save_Action.jpg[/file]
[file=10011]write-debug.jpg[/file]
Max_admin 06 Feb, 2018
Hi vividal,
{Teams.team_id} has no value, you have a field named team_id and so you may want to use {data:team_id} to reference the value of that field!
Best regards
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
vividal 06 Feb, 2018
I just tried TDT.team_id:{data.team_id} as an Update Condition and that doesnt change the record either. any other thoughts?
Max_admin 06 Feb, 2018
Hi vividal,
A debugger after the "Save data" should show you the SQL command executed, you can then change it accordingly, or post it here.
Best regards
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Max_admin 06 Feb, 2018
Hi vividal,
A debugger after the "Save data" should show you the SQL command executed, you can then change it accordingly, or post it here.
Best regards
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Max_admin 06 Feb, 2018
Hi vividal,
A debugger after the "Save data" should show you the SQL command executed, you can then change it accordingly, or post it here.
Best regards
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
vividal 06 Feb, 2018
Answer
1 Likes
thx for the debug after Save Data. I have debugs all over but never occured to me to put one there. I figured out the issue.
This topic is locked and no more replies can be posted.