Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2010

    Exclamation update items with the same value

    is it possible to make lightstreamer make update on 2 items that have the same name on the same page.

    item 1:
    <span source="lightstreamer" table="mytable" item="timeItem" field="time"></span>

    item 2:
    <div source="lightstreamer" table="mytable" item="timeItem" field="time"></div>

    it work if only one of them is added, if i add the other item on the same page none gets updates.

  2. #2
    Power Member
    Join Date
    Jul 2006
    Cesano Maderno, Italy

    there is a limitation so that if two cells pertain to the same table, same item and same flled, only one of them will be updated by the client library.

    Your case looks like the one described above as you show us two cells with the same table/item/field names, so that it's strange that none of them gets updates.

    In any case the solution for such a case is quite simple:

    just declare the two cells so that one of them uses an extra field:

    then copy the value of the actual field to the extra one during the execution of the onItemUpdate

    let me know if you have any doubt or if your problem is different.

  3. #3
    Join Date
    Nov 2010
    yes that solved the problem, and both of them gets updated

    Thank You



Similar Threads

  1. Update Table Problem
    By zun in forum Adapter SDKs
    Replies: 3
    Last Post: December 9th, 2009, 04:43 PM
  2. Update Table
    By EWANG in forum Client SDKs
    Replies: 1
    Last Post: August 19th, 2009, 10:17 AM
  3. Same data, more update stategyes
    By cbrogliato in forum Client SDKs
    Replies: 4
    Last Post: April 2nd, 2009, 09:15 AM
  4. Dojo 0.9 Update
    By rakeshxp in forum Client SDKs
    Replies: 1
    Last Post: August 27th, 2007, 11:42 AM
  5. order by update
    By jamesclinton in forum Client SDKs
    Replies: 1
    Last Post: March 12th, 2007, 04:54 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
All times are GMT +1. The time now is 01:55 AM.