Forums

How could I get a data from ID save another

Dinhov3 16 Aug, 2019
Hi guys, I'm new in ChronoForms and i need to get a Data with the ID "x" that the user put in forms, add 1 and save again. How could a do this?
Max_admin 17 Aug, 2019
The data is already in the database table or it's coming from the form ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Dinhov3 17 Aug, 2019
The data is in the database table, in the form i have the ID that I wanna use to search the data
healyhatman 18 Aug, 2019
Why are you adding 1 and resaving? Sounds ripe for collision. Any reason you can't just leave the ID auto increment?
Dinhov3 18 Aug, 2019
I'm not adding the ID, I just use the ID to search the data in column "Y" and adding 1.
Max_admin 22 Aug, 2019
Read the data record, then use a "Save data" action and set the conditions to
pkey:{var:read_data_name.Model.pkey}
Then add the field to increment in the "Special fields" box
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.