Results 1 to 10 of 16

Thread: DynaScrollTable

Hybrid View

  1. #1
    Member
    Join Date
    Dec 2009
    Location
    athens
    Posts
    14
    Hi
    actually the problem is that the same items are subscribed in more pages with MERGE and DISTINCT mode
    what i am doing is to have tables with stocks and a scroll table where scrolling all the updates for all items
    so if an item is subscribed in MERGE table is not available in DISTINCT table and the opposite.
    Is this normal !!?? because with the previous versions I didn't have a problem.
    Thanks

  2. #2
    Administrator
    Join Date
    Feb 2012
    Location
    Milano
    Posts
    716
    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.

  3. #3
    Member
    Join Date
    Dec 2009
    Location
    athens
    Posts
    14
    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 !!??

  4. #4
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    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

  1. Formatting of unchanged values in "DynaScrollTable"
    By hofmanna in forum Client SDKs
    Replies: 5
    Last Post: January 14th, 2010, 10:02 AM
  2. DynaScrollTable
    By georgeeapen in forum Client SDKs
    Replies: 2
    Last Post: April 9th, 2009, 12:19 PM
  3. DynaScrollTable
    By georgeeapen in forum Adapter SDKs
    Replies: 0
    Last Post: April 8th, 2009, 09:22 AM
  4. DynaScrollTable example
    By kastis in forum Client SDKs
    Replies: 2
    Last Post: April 3rd, 2007, 06:58 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 08:48 PM.