-
March 31st, 2010, 12:54 AM
#1
Issue with HelloWorld
Hi I am new to lightstreamer...my questions is:
I am using
<div source="lightstreamer" table="hellotable" item="greetings" field="message">loading...</div>
<div source="lightstreamer" table="hellotable" item="greetings" field="timestamp">loading...</div>
<div source="lightstreamer" table="hellotable" item="greetings" field="newitem">loading...</div>
and in my DataAdaptor I do this:
Map<String, String > data = new HashMap<String, String >();
data.put("message", c % 2 == 0 ? "Hello" : "World");
data.put("timestamp", new Date().toString());
data.put("newitem", c % 2 == 0 ? "NewItem" : "oldItem");
listener.smartUpdate(itemHandle, data, false);
However, only two of the fields show up on the screen? Where is the binding between the fields and the subscription? how do you add new fields?
Thanks in advance,
Alex
http://www.lightstreamer.com/vb/imag...lies/smile.gif
-
March 31st, 2010, 10:06 AM
#2
The fields to be requested in the subscription are defined in the table constructor.
However, if nulls are supplied, as in the HelloWorld example
var pushtable = new OverwriteTable(null, null, "MERGE");
the library looks for the fields reported in the available cells when addTable is invoked.
So, we can't explain why your new field is not managed.
Can you confirm that you didn't change the line above?
To shed more light, please show us the Server log, after setting the priority of the LightstreamerLogger.subscriptions category as DEBUG.
Similar Threads
-
By jim.macaulay@lbi.com in forum Adapter SDKs
Replies: 4
Last Post: January 6th, 2012, 10:57 AM
-
By rbg001 in forum Client SDKs
Replies: 3
Last Post: May 25th, 2011, 02:11 PM
-
By amoroso@forex.co.ke in forum Adapter SDKs
Replies: 3
Last Post: February 1st, 2010, 11:01 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 11:35 PM.
Bookmarks