i haven't had much time to spend on moving to NonVisualTable, but i am getting an error (this.LS_gwJ has no properties lspushpage.js: Line 7)adding the table to the push page. the code is below. looking at the example that you cited, i think that my problem has something to do with passing null for group descriptor and schema or invoking createEngine instead of loadEngineMinimal (which doen't seem to be documented). what confuses me is that i can create an OverwriteTable with null group descriptor and schema.
//***** common *****
var lsPage = new PushPage();
var debugAlerts = false;
var remoteAlerts = true;
var pushHost = null;
lsPage.context.setDomain(domainName);
lsPage.context.setDebugAlertsOnClientError(debugAlerts);
lsPage.context.setRemoteAlertsOnClientError(remoteAlerts);
lsPage.onEngineCreation = function(lsEngine) {
lightStreamerEngine = lsEngine;
lsEngine.context.setDebugAlertsOnClientError(debugAlerts);
lsEngine.context.setRemoteAlertsOnClientError(remoteAlerts);
lsEngine.connection.setLSHost(pushHost);
lsEngine.connection.setLSPort(webServerPort);
lsEngine.connection.setAdapterName(adapterName);
lsEngine.policy.setMaxBandwidth(5);
lsEngine.policy.setIdleTimeout(30000);
lsEngine.policy.setPollingInterval(1000);
lsEngine.changeStatus("STREAMING");
}
lsPage.bind();
lsPage.createEngine("SLEngine","ls/","SHARE_SESSION");
//***** common *****
function addPushTable(tableName, updateFnc, formatFnc) {
var newTable = new OverwriteTable(null, null, "MERGE");
newTable.setSnapshotRequired(true);
newTable.setClearOnDisconnected(false); //default is false
newTable.setClearOnRemove(false); //default is false
newTable.onItemUpdate = updateFnc;
newTable.onChangingValues = formatFnc;
newTable.setPushedHtmlEnabled(false);
lsPage.addTable(newTable, tableName);
}
function addNonVisualPushTable(tableName, updateFunction) {
var newTable = new NonVisualTable(null, null, "MERGE");
newTable.setSnapshotRequired(true);
newTable.onItemUpdate = updateFunction;
lsPage.addTable(newTable, tableName);
}