Check documentation for the latest version of dhtmlxSuite Multi-User Sync DHTMLX Docs

Multi-User Sync

APPLICABLE TO: Grid, TreeGrid, Tree, Combo, Scheduler, DataView, Chart, Form

Starting from version 1.0, dhtmlxConnector can work in multi-user mode that allows users see changes of each other in real-time.

To enable the mode you need to write additions both fro the client- and the server-sides:

Client side

1) init component with dataprocessor (if it hasn't been initialized yet)

dp = new dataProcessor("myconnector.cfm");

2) call the setAutoUpdate() method where input parameter is the delay between update calls


Server side

1) call the enable_live_update() method

<cfinclude template="../config.cfm">
<cfset grid = createObject(
<!--- this line! --->
<cfset grid.enable_live_update('actions_table')>

"actions_table" - table in database, which will be used for sync. data storage.

It should have the next structure:

CREATE TABLE `actions_table` (
  `dataId` int(11) NOT NULL,
  `type` varchar(255) NOT NULL,
  `user` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
Back to top