Results 1 to 10 of 10

Hybrid View

  1. #1
    Senior Member
    Join Date
    Sep 2008
    Location
    rmd
    Posts
    30
    yes it works

  2. #2
    Senior Member
    Join Date
    Sep 2008
    Location
    rmd
    Posts
    30

    Question get the list of subscribed items

    any way, in this method is there any way to get the list of all the subscribed items initially.
    or at least the number of items that is subscribed to that user?

    To create the table correctly, i need the number of subscribed items in the web client. is it possible to catch it in the onStart() method in js or in some other method. Also can you please elaborate the use of setSnapshotRequried(true) onEngineCreation. I think i may use it. can you please elaborate?

  3. #3
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    1,091
    This metainformation is not supplied, though your suggestion about onStart makes sense.
    At the moment, you would need to setup a separate item to get this information.
    The group names were introduced as shortcuts for known sets of items, like stock lists.
    Note that, for unknown sets, the COMMAND mode is also available, though it covers the more generic case of dynamic sets and requires specific handling by the Data Adapter.

    By issuing setSnapshotRequired(true), you ask for a preliminary update about the current state of the item (for each item in the table). The Server tries to send this update immediately.
    The snapshot is covered in the "DOCS-SDKs/General Concepts.pdf" document, paragraph 3.4.1.

    onEngineCreation allows you to perform Engine initialization (The Engine page connects to Lightstreamer Server on behalf of one or more Push-Pages). The Master Push-page, after creating the Engine through "createEngine", receives a call to the onEngineCreation callback, through which it can (and should) configure the Engine so that it can access the Server.
    Details can be found in the online documentation, but the normal usage is best described by the provided sample pages.

 

 

Similar Threads

  1. Automatic subscribe to different items
    By abhijeetgk in forum Adapter SDKs
    Replies: 1
    Last Post: September 28th, 2011, 10:53 AM
  2. Non-blocking IDataProvider.Subscribe
    By bartol82 in forum Adapter SDKs
    Replies: 1
    Last Post: August 30th, 2011, 10:15 AM
  3. Adding/Removing items dynamically
    By Otake in forum Client SDKs
    Replies: 5
    Last Post: December 17th, 2009, 02:15 PM
  4. subscribe to items not using threads
    By nagakumaran in forum Adapter SDKs
    Replies: 6
    Last Post: October 16th, 2007, 02:11 PM
  5. Dynamically size a table
    By Mone in forum Client SDKs
    Replies: 2
    Last Post: May 7th, 2007, 02:59 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 06:11 PM.