DHTMLX Touch HowTos

How can I add extra tags/sections to data?

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.

How can I use connector functionality for DHTMLX Touch components?

There are 2 connector types you can use for touch components:

  • JSONDataConnector
  • DataConnector

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.

How can I save data changes made in form (simple way)?

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