-
October 12th, 2007, 01:21 PM
#1
Hi
What is the problem is to subscribe for each item that we define in the html(i used the sdk_clientweb\doc\tutorial_resources to create a test webapp), a new thread starts in the Subscribe method defined in the "burst.cs". what i want is for the total number of items we define in the html page like "item1, item2, ...itemn(n is constant so i use merge mode only i am not using command mode right now)", only one thread should start in the subscribe method.
In the "/stocklistdemo/index.html" there is one object used "updateItem" but i can't find the definition of it.
and for the same item, i am having two fields (say buyprice, sellprice") the value of the two fields vary differently ie for a give particular instance, if both the values decreases, then i have to update the buy price field by green color and sell price field by red color. But now the background color changes for the total row corresponding to the updated items(either by green or red). can u give info regarding this.
-
October 15th, 2007, 04:20 PM
#2
Hi Naga,
the "updateItem" event handler is defined at line 152 in "/stocklistdemo/index.html".
Together with the "formatValues" event handler, defined at line 192, they take care of formatting the displayed fields based on the field values. By using the "setRowAttribute" and "setAttribute" APIs properly, you can change the behaviour to suit your needs. The full API documentation of the provided javascript library is available in DOCS-SDKs\sdk_client_web\doc\jsdoc.
The above answers to the Lightstreamer-related part of the question.
About how a scalable version of our sample data generator can be designed, we leave the question open to any contributor.
Dario
-
October 16th, 2007, 02:11 PM
#3
Thanks for ur reply.
I find the definition of "setAttribute". I am now able to change the background colors of the cells individually. Its working fine.
Similar Threads
-
By faa666 in forum General
Replies: 1
Last Post: February 20th, 2012, 09:53 AM
-
By abhijeetgk in forum Adapter SDKs
Replies: 1
Last Post: September 28th, 2011, 10:53 AM
-
By bartol82 in forum Adapter SDKs
Replies: 1
Last Post: August 30th, 2011, 10:15 AM
-
By lizsedley in forum Adapter SDKs
Replies: 1
Last Post: January 22nd, 2010, 02:16 PM
-
By rd2008 in forum General
Replies: 9
Last Post: October 10th, 2008, 10:38 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 12:23 AM.
Bookmarks