To add the first child tags, sections to data returned by the connector, use the add_section method:
$data = new JSONDataConnector($db,"SQLite");
$data->add_section("config", "some_data");
For more details read the chapter Adding tags/sections to data in the JSONDataConnector/DataConnector guide.
There are 2 connector types you can use for touch components:
For more details see the related chapter of this documentation.
To implement CRUD operation you should use the above-mentioned connectors together with Touch dataProcessor. For more details see DHTMLX Touch documentation.
Basically, to save data changes you can use code like:
dhx.ajax().post("connector.php?action=insert", $$('form').getValues());
For more details, see the guide 'Saving data changes made in form'.
Back to top