-
January 11th, 2007, 09:17 PM
#1
Hi...
let me ask you something...
In a stockmarket company (broker) have 5 clients and each client wants to see diferent information in their pages.
For exemple:
- client "A" wants to see information from the company "W" and "X".
- client "B" wants to see information from the company "X" and "Y".
- client "C" wants to see information from the company "V", "W" and "Y".
- etc.
in a max range of 3 companys per page.
This information of wich companys my clients wants to view is stored in a database that have my client's ids and company's ids.
How can i show diferent information to diferents clients?
Is there any way to notify LS when a client start receving data that this connection belongs to client A or B?
Did you understand wich is my doubt?
thanks!!!
Rafael
-
January 12th, 2007, 09:02 AM
#2
Hi Rafael
The clients can identify themselves through the user credentials, by calling
setUserName and setPassword.
This information (the user name in particular) is then made available to the getItems method in the Metadata Adapter, which can transform generic "item groups" requests issued by the clients into specific item requests on a user basis.
This is not supported by the default Metadata Adapter and requires that you implement you own Metadata Adapter code.
Note, however, that if different clients also need to see pages of different shape (i.e. with a different number of tables shown), then some client side elaboration is needed and this is not provided by Lightstreamer Web Client Library.
Dario
Similar Threads
-
By leonardodar in forum Adapter SDKs
Replies: 3
Last Post: March 16th, 2011, 09:45 AM
-
By shayzweig in forum Client SDKs
Replies: 2
Last Post: February 9th, 2010, 02:50 PM
-
By zeos in forum Adapter SDKs
Replies: 1
Last Post: January 28th, 2010, 09:41 AM
-
By mnenchev in forum Adapter SDKs
Replies: 5
Last Post: September 1st, 2009, 09:36 AM
-
By vishnugs in forum General
Replies: 4
Last Post: April 6th, 2007, 11:06 AM
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 01:09 PM.
Bookmarks