-
September 10th, 2007, 01:47 PM
#1
Tibco Gi Demo
Hello Guys,
Several questions --
1. Where do I download the advanced TIBCO GI DEMO??
2. How do I change the simple demo to use the dot net adapter??
3. Please could you give me an overview of the four javascript files in the TIBCO GI Demo (simple)??
4. I would like to add more items and fields to the simple demo -- what changes do I need to make specially in the front end??
Saleem
-
September 10th, 2007, 02:52 PM
#2
Hi,
Originally Posted by
saleem145
1. Where do I download the advanced TIBCO GI DEMO??
The code is not available yet. It will be probably available soon.
Originally Posted by
saleem145
2. How do I change the simple demo to use the dot net adapter??
The .NET StocklistDemo adapter publishes the same items and fields as the java one. You just have to be sure that the demo points to the correct adapter.
So the id of the adapters_conf element inside the adapters.xml file of the adapter (under LS_HOME/adapters/AdapterName/) have to be equal to the string used to call the setAdapter javascript method (on the lslogic.js file).
Originally Posted by
saleem145
3. Please could you give me an overview of the four javascript files in the TIBCO GI Demo (simple)??
- lscommons.js and lspushpage.js are part of Lightstreamer web client library so you should not worry about those files.
- lslogic.js contains basic lightstreamer logic: PushPage instantiation, LightstreamerEngine configuration (lsPage.onEngineCreation) and table subscription.
The LS_startPush method is called on the onload event by the GI runtime. It creates the OverwriteTable that will feed the "numeric" tables.
The LS_onDialog method is called whenever a "popup" is created. It creates the ChartTable that will feed that popup - logic.js contains various tables' event handlers and the logic that handles the creation of "popups" (you can see a rough division on the file itself)
Originally Posted by
saleem145
4. I would like to add more items and fields to the simple demo -- what changes do I need to make specially in the front end??
The available fields are already subscribed, so to enlarge the schema you have to modify the adapter to let it publish more fields.
You can add more items in 3 steps
On lslogic.js enlarge the subscribed item/fields:
could become
Enlarge Lightstreamer Table view:
in appcanvas.xml search for
and modify the jsxtext value of the strings element adding more lines. I know it's a little bit cryptic, but what you are seeing is just an html table so you just have to add a tr element equals to the others except for the item value of the div elements
Finally enlarge GI table view by enlarging the height of the element in order to have enough space to show all the subscribed items. You have to enlarge the height of the block that contains the matrix:
Hope that helps
-
September 24th, 2009, 11:01 AM
#3
The source code of the TIBCO demo is now available from the link reported here: http://www.lightstreamer.com/demos.htm#GIDemo_Advanced
Similar Threads
-
By ganeshk in forum Adapter SDKs
Replies: 1
Last Post: September 22nd, 2010, 06:52 PM
-
By vdhinesh in forum Client SDKs
Replies: 1
Last Post: December 7th, 2009, 12:36 PM
-
By wmolde in forum Client SDKs
Replies: 5
Last Post: September 24th, 2009, 10:59 AM
-
By ericrosevear in forum General
Replies: 3
Last Post: June 18th, 2008, 10:41 AM
-
By Cerogil in forum Client SDKs
Replies: 1
Last Post: January 23rd, 2007, 05:16 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 10:08 AM.
Bookmarks