-
April 25th, 2011, 12:25 PM
#1
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.
-
April 26th, 2011, 09:29 AM
#2
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.
-
April 26th, 2011, 09:46 AM
#3
yes that solved the problem, and both of them gets updated
Thank You
Similar Threads
-
By zun in forum Adapter SDKs
Replies: 3
Last Post: December 9th, 2009, 04:43 PM
-
By EWANG in forum Client SDKs
Replies: 1
Last Post: August 19th, 2009, 10:17 AM
-
By cbrogliato in forum Client SDKs
Replies: 4
Last Post: April 2nd, 2009, 09:15 AM
-
By rakeshxp in forum Client SDKs
Replies: 1
Last Post: August 27th, 2007, 11:42 AM
-
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
-
Forum Rules
All times are GMT +1. The time now is 03:03 PM.
Bookmarks