-
November 24th, 2008, 03:15 PM
#1
On addTable() receveiving updates from previous group
Hi lightstreamer team !
We are using DynaMetapushTable for receiving updates for around 500 Stocks in COMMAND mode where entries may be added/updated.
After we subscribe to another group of stocks in the same table before receiving all 500 stocks from previous group, the remainig stocks from group1 gets mixed with group2.
I've tried to clear all data by setting:
table.setClearOnRemove(true);
table.setClearOnAdd(true);
and also before subscribing to another group I've also removed previous table:
page.removeTable(id);
I've also tried removing visual effects, but there is no change.
On my page I have a select box witch lets users subscribe to another group of stocks in COMMAND mode, and if the user changes a group of stocks before receiving all stocks from previous group, user receives a mix of stocks from previous group.
The only solution I see now is to wait for all stocks to get loaded witch takes about 30 secs and then let user subscribe to another group.
I'm not sure how to fix this problem.
Any help is very appreciated!
-
November 25th, 2008, 10:27 AM
#2
Hi Jakov
We can't replicate the case. After calling
table.setClearOnRemove(true);
page.removeTable(id);/
the table should disappear and trailing updates should be ignored.
If we understand well, the problem happens to you when you call those lines while the previous table is still loading. We also tried simulating this case, but we didn't notice any update from the previous table mixed with updates from the second one.
We need more details on your case.
Are you using Web Client Library version 4.3?
If you, for testing, only issue
table.setClearOnRemove(true);
page.removeTable(id);/
without adding the new table, can you see the table complete loading?
Does the table loading take 30 seconds because of bandwidth restrictions? Or because of CPU overload on the client? Or because of slow data generation by the Data Adapter?
Can you exclude any issue in the Data Adapter, perhaps mixing updates for different items?
-
November 25th, 2008, 02:38 PM
#3
After further tests we could replicate the case
and recongnize it as a Web Client Library bug.
Trailing updates pertaining to the previous association for the screen table are not filtered out correctly. This may affect any kind of screen table and subscription mode.
We'll make a patch available as soon as possible.
-
November 26th, 2008, 05:14 PM
#4
Hello all,
a patch for the problem described in this thread is available.
If you are using the Lightstreamer Web Client v.4.3 build 1346 and think you are in the situation described below, you may want to apply the provided patch:
On the Master Push-Page, if you call addTable() more times while using the same "id" parameter, there exist cases where the last updates pertaining to the previous subscription life are delivered as part of the new life. An example of this is if you define a screen table through your HTML cells, bind it to a Lightstreamer table, then remove the Lightstreamer table and add a new one in order to chnage the group name. If this is done in rapid sequence, the latest updates pertaining to the old group could be displayed after the new group has been subscribed to.
If you find yourself in this kind of scenario and you are using Lightstreamer Web Client v.4.3 build 1346 (previous version are not affected by this issue), please contact support@lightstreamer.com to get the patch.
Similar Threads
-
By bhathiya in forum Client SDKs
Replies: 2
Last Post: April 11th, 2011, 08:38 AM
-
By peaks2006@gmail.com in forum Client SDKs
Replies: 1
Last Post: October 6th, 2010, 09:18 AM
-
By hofmanna in forum Client SDKs
Replies: 3
Last Post: January 21st, 2010, 12:25 PM
-
By Alessandro in forum General
Replies: 6
Last Post: July 1st, 2008, 02:26 PM
-
By rsouissi in forum Adapter SDKs
Replies: 4
Last Post: January 10th, 2007, 06:11 PM
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 06:00 PM.
Bookmarks