Results 1 to 3 of 3

Thread: Tibco Gi Demo

  1. #1
    Member
    Join Date
    Apr 2007
    Location
    New York
    Posts
    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

  2. #2
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    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

  3. #3
    Administrator
    Join Date
    Jul 2006
    Location
    Milan, Italy
    Posts
    521
    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

  1. TIBCO AMS-GI data adapter issue
    By ganeshk in forum Adapter SDKs
    Replies: 1
    Last Post: September 22nd, 2010, 07:52 PM
  2. Tibco proxy pass issue
    By vdhinesh in forum Client SDKs
    Replies: 1
    Last Post: December 7th, 2009, 01:36 PM
  3. Tibco sample Code
    By wmolde in forum Client SDKs
    Replies: 5
    Last Post: September 24th, 2009, 11:59 AM
  4. Tibco Rv data adapter
    By ericrosevear in forum General
    Replies: 3
    Last Post: June 18th, 2008, 11:41 AM
  5. Tibco pausing with Lightstreamer
    By Cerogil in forum Client SDKs
    Replies: 1
    Last Post: January 23rd, 2007, 06:16 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 08:56 AM.