Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Nov 2010
    Location
    Amman
    Posts
    2

    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.

    example:
    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
    Location
    Cesano Maderno, Italy
    Posts
    784
    Hi,

    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
    Member
    Join Date
    Nov 2010
    Location
    Amman
    Posts
    2
    yes that solved the problem, and both of them gets updated

    Thank You

 

 

Similar Threads

  1. Update Table Problem
    By zun in forum Adapter APIs
    Replies: 3
    Last Post: December 9th, 2009, 05:43 PM
  2. Update Table
    By EWANG in forum Client APIs
    Replies: 1
    Last Post: August 19th, 2009, 11:17 AM
  3. Same data, more update stategyes
    By cbrogliato in forum Client APIs
    Replies: 4
    Last Post: April 2nd, 2009, 10:15 AM
  4. Dojo 0.9 Update
    By rakeshxp in forum Client APIs
    Replies: 1
    Last Post: August 27th, 2007, 12:42 PM
  5. order by update
    By jamesclinton in forum Client APIs
    Replies: 1
    Last Post: March 12th, 2007, 05:54 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 07:18 PM.