-
July 11th, 2012, 10:35 AM
#1
Hi betasec,
I think you have just to change the subscription mode from DISTINCT to MERGE in this statement:
var scrollSubscription = new Subscription("DISTGINCT",page2Group,stocksSchema);
Please note that DISTINCT and MERGE are subscription modes not compatible between them, so you can not subscribe the same item both in MERGE and DISTINCT mode. I confirm you that this was not changed from previous Lightstreamer version.
For this reason it is good practice to implement the method modeMayBeAllowed of MetadataProvider to define
precisely subscription mode allowed for each item according to the nature of the data.
-
July 11th, 2012, 02:55 PM
#2
Hi , you have right
with previous version i use [MERGE] with the scroll table
var scrollTable = new DynaScrollTable(page1Group, stocksSchema,"MERGE");
when i use
var scrollSubscription = new Subscription("MERGE",page1Group,stocksSchema);
<table class="scrollContainer" id="scrollTable1" data-source="lightstreamer" border="1">
<tr>
<td>
<span data-source="lightstreamer" data-field="o_Sym"></span>
</td>
<td>
<span data-source="lightstreamer" data-field="o_ddeItem"></span>
</td>
<td>
<span data-source="lightstreamer" data-field="o_Last"></span>
</td>
<td>
<span data-source="lightstreamer" data-field="o_Bid"></span>
</td>
<td>
<span data-source="lightstreamer" data-field="o_Ask"></span>
</td>
</tr>
</table>
then in a scroll table i get the items but when i get update in a item its not scrolling but is update it in the all ready inserted row
how i can make the new value to scroll on the table and not to update the cell !!??
-
July 12th, 2012, 09:50 AM
#3
Well, that was unexpected.
Because of the nature of DISTINCT and MERGE subscriptions we decided to force the "scroll behavior" on the grid for DISTINCT subscription and the "table behavior" for MERGE subscriptions:
a DISTINCT item ideally is used to represent a list of things while a MERGE item represents something whose status changes. See section 3.1 of http://www.lightstreamer.com/distros...20Concepts.pdf for details.
In any case, if you can describe us your use case, why you want to use a MERGE subscription to feed a scrolling grid, we may re-evaluate our initial decision (well that's what the beta is for) or show you how to obtain the same effect without modifying the library on our side.
Similar Threads
-
By hofmanna in forum Client SDKs
Replies: 5
Last Post: January 14th, 2010, 10:02 AM
-
By georgeeapen in forum Client SDKs
Replies: 2
Last Post: April 9th, 2009, 12:19 PM
-
By georgeeapen in forum Adapter SDKs
Replies: 0
Last Post: April 8th, 2009, 09:22 AM
-
By kastis in forum Client SDKs
Replies: 2
Last Post: April 3rd, 2007, 06:58 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 08:00 PM.
Bookmarks