-
November 11th, 2009, 07:53 AM
#1
the "addField" method
in the documentation:it's said that
a field name different than the name of any subscribed field
For example, in the stocklist page, there's:
updateInfo.addField("#trend_color",redColor,true);
or
updateInfo.addField("#fade","ON",true);
but there isin't a table row with a "field" named "#trend_color" or "#fade" like for the "#arrow " field !!
<span source="lightstreamer" table="main" item="'+i+'" field="#arrow">
what the method "addField" is used for ???
-
November 11th, 2009, 09:59 AM
#2
In the reported cases, we use extra fields just as "decorators".
In fact, we want to format some fields in a way that depends on the previous value of the field.
However, in the onChangingValues callback (the place where formatting instructions can be given to the VisualTable), the previous values of the updated fields are not available.
On the other hand, they are available in the onItemUpdate callback.
By using extra fields, we can store the needed information (for instance, the price trend) in the current update within onItemUpdate and retrieve it in the subsequent call to the formatting callback onChangingValues.
-
November 12th, 2009, 03:03 PM
#3
thank you
Similar Threads
-
By Mone in forum Client SDKs
Replies: 1
Last Post: July 10th, 2012, 06:06 PM
-
By enrico in forum Client SDKs
Replies: 2
Last Post: March 1st, 2012, 01:53 PM
-
By hofmanna in forum Client SDKs
Replies: 3
Last Post: February 18th, 2010, 11:14 PM
-
By jondcruz in forum General
Replies: 1
Last Post: September 18th, 2009, 09:13 AM
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 07:47 PM.
Bookmarks