Forums

CF8 Save data action debugger get value of autoincrement

simelas 29 Dec, 2024

Hi Max,

in previous versions of chronoforms it was possible to read (in the debugger)  and get  (via var: ...)  the new value of the autoincrement when inserting a new set of data via the save data action. Not seen that in CF8 debugger. althoug it is possible to get it by doing a read data after a save data , it was more straighforward in previous version.

Can you consider implement it ? 

Best regards and happy end of the year celebrations

simelas

Max_admin 30 Dec, 2024
Answer

Hi simelas

it's implemented, you must set the primary key name in the Save Data settings for the auto increment column value to be set

Happy new year to you too! 😊

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
simelas 02 Jan, 2025

Hi Max,

I had done that, and save data with autoincrement is (was) performing correctly, but the  new value of the autoincremented field do not appear in the debugger...

Field 'category_id'  is the autoincrement, and it was appearing in previous versions of chronoform but not anymore unless i am doing something wrong....

(when updating  with Where statement,then 'category_id' appears in the debugger)  

 [save_data20] => Array
        (
            [category_name] => ΚΑΦΕaaa
            [eshop_category] => 0
        )

   
Max_admin 02 Jan, 2025

Hi simelas

This should be working, I have just tried to save to the chronoforms8_datalog table, the primary key is set to "id" and the Modify data source:

form_id=9999
ip=128.0.0.1

And it saves correctly:

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
You need to login to be able to post a reply.