Hi,

Quote 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.

Quote 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).

Quote 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)
Quote 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