Results 1 to 10 of 13

Hybrid View

  1. #1
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    1,091
    Your projects consists in various parts, quite independent from one another.
    With respect to a basic javascript page using Lightstreamer, you have to:
    1. Extend the page by using Dojo and integrating the Lightstreamer Client Library into Dojo.
    2. Setup a Remote Data Adapter written in .NET and configure the Server for using this Data Adapter.
    3. Write your custom implementation of the Remote Data Adapter so that it gets data from your database.


    We provide examples and instructions for all these steps; in particular:
    1. As said, A demo of a front-end based on Dojo is available.
      Moreover, a full integration of Lightstreamer in Dojo, in the form of a Lightstreamer-backed Dojo-store, is about to be released;
      you may choose to wait for a few weeks in order to take advantage of a simpler tool.
    2. In addition to the aforementioned HelloWorld tutorial, examples of Remote Adapters for the StockList Demo are available in the sdk_adapter_dotnet folder of the distribution package.
    3. An example of a Data Adapter which gets its data from an underlying database is shown in a forum thread.
      Unfortunately, the example is in java; but it clarifies the rationale of the approach.


    So, you are on the right track.
    Unfortunately, you seemed to encounter various issues preventing your tests from working.
    Are you still struggling with those issues? We apologize for anything misleading you may have found in our documentation, but now we can only try to help you fixing the issues, starting with the suggestions included in my last post.

  2. #2
    Quote Originally Posted by DarioCrivelli View Post
    Your projects consists in various parts, quite independent from one another.
    With respect to a basic javascript page using Lightstreamer, you have to:
    1. Extend the page by using Dojo and integrating the Lightstreamer Client Library into Dojo.
    2. Setup a Remote Data Adapter written in .NET and configure the Server for using this Data Adapter.
    3. Write your custom implementation of the Remote Data Adapter so that it gets data from your database.


    We provide examples and instructions for all these steps; in particular:
    1. As said, A demo of a front-end based on Dojo is available.
      Moreover, a full integration of Lightstreamer in Dojo, in the form of a Lightstreamer-backed Dojo-store, is about to be released;
      you may choose to wait for a few weeks in order to take advantage of a simpler tool.
    2. In addition to the aforementioned HelloWorld tutorial, examples of Remote Adapters for the StockList Demo are available in the sdk_adapter_dotnet folder of the distribution package.
    3. An example of a Data Adapter which gets its data from an underlying database is shown in a forum thread.
      Unfortunately, the example is in java; but it clarifies the rationale of the approach.


    So, you are on the right track.
    Unfortunately, you seemed to encounter various issues preventing your tests from working.
    Are you still struggling with those issues? We apologize for anything misleading you may have found in our documentation, but now we can only try to help you fixing the issues, starting with the suggestions included in my last post.
    Thank you. I will take your suggestions and work on each part and post back when I have issues. Hats off to you guys for an exceptional service.

  3. #3
    Thank you. I will take your suggestions and work on each section; posting back if I have issues.

  4. #4
    Sorry if I am posting this in the wrong section but where exactly are these files and how are they accessible:

    "../commons/lightstreamer/lscommons.js
    commons/lightstreamer/lspushpage.js


    I checked all folders where I installed lightstreamer and cannot trace it.

  5. #5
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    1,091
    Unfortunately, we are still in the transition phase from the "Duomo" release to the "Colosseo" release and this introduces additional complication, both for you and for us.
    The JavaScript Client Library has changed significantly from version 5.0 (in Duomo) to version 6.0 (in Colosseo).
    Actually, the "dojo demo" provided in our demo list is still based on the JavaScript Client Library 5.0, whereas you have downloaded version 6.0, hence the problems you see.

    We suggest you waiting for us to publish the ported version of the Dojo demo, which, as said, also features a simpler integration strategy.
    As far as we can evaluate at this moment, it should be a matter of days; we will post upon the release.
    This does not interfere with the other adapter side activities.
    Sorry for the confusion.

  6. #6
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    jdepp,

    while the demo is not ready, you can start checking out a first version of the LightstreamerStore class from github: https://github.com/Weswit/DojoLightstreamer
    The class implements the dojo/store interface so you should be able to use it together with any dojo class that expects a store to work (like a dgrid)

    Here is a simple example to get you started:



    HTH

 

 

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 01:04 PM.