-
May 3rd, 2011, 06:04 PM
#1
PushTable seekEngine Disconnect Problem
Hello,
I am subscribing to a created engine and adding some tables and everything works great until the engine gets disconnected (connection dropped and reestablished). At this point the engine successfully reconnects but only the last table added to the pushTable is working. Also I was wondering, shouldn´t the onEngineLost of my pushTable be called when this happens? No event is called nor when the connections is dropped or when the connection is restablished.
Just to make it more clear, until the point of disconnect, everything works as expected!
The code I am using is this:
var pushPage = new PushPage();
pushPage.context.setDebugAlertsOnClientError(true) ; // (set false in production)
pushPage.context.setDomain("xxx.com"); // (set the domain when deploying on web server)
pushPage.onEngineCreation = function(lsEngine) {
alert("onEngineCreation");
};
pushPage.onEngineLost = function() {
alert("onEngineLost");
};
pushPage.onEngineReady = function(lsEngine) {
alert("onEngineReady");
};
pushPage.bind();
pushPage.seekEngine("DemoCommonEngine"); //Same name as used on CreateEngine
//Add several tables on a loop like this
var schema = ["c1", "c2"];
var tableName = "xxx";
var dataAdapter = "yyy";
for(var i=0; i<3; i++)
{
var table = new NonVisualTable(tableName + i, schema, "MERGE");
table.setDataAdapter(dataAdapter);
table.setSnapshotRequired(true);
//Set the event to be consumed on update
table.onItemUpdate = function()
{
alert("onItemUpdate");
}
// bring the table to running state
pushPage.addTable(table, "T_" + tableName + i);
}
Am I missing something?
Regards,
Sebastian Andres
Similar Threads
-
By mnenchev in forum Client SDKs
Replies: 1
Last Post: March 8th, 2012, 09:25 AM
-
By LS_Developer in forum Adapter SDKs
Replies: 2
Last Post: April 19th, 2011, 11:03 AM
-
By webfg in forum Client SDKs
Replies: 2
Last Post: April 13th, 2009, 11:07 AM
-
By ddhanis in forum Client SDKs
Replies: 1
Last Post: April 3rd, 2008, 03:08 PM
-
By riaanj in forum Adapter SDKs
Replies: 15
Last Post: September 26th, 2007, 09:30 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 11:16 PM.
Bookmarks