Hi Mone,
I am using the latest version of Lightstreamer. I downloaded it just a week back.
Code:
Lightstreamer Flash/Flex (Native AS) Client Library version 1.1 build 33
Compatible with Lightstreamer Server since version 3.5
Also, I have attached a log on my first post which contains LightstreamerLogger.subscriptions as DEBUG and the Flex log of the above.
The code is this:
Here fields is an array of Strings with required fields.
And itemname is the subscription item.
Code:
public function subscribe(itemName:String,fields:Array):void{
var nonVisualTable:NonVisualTable = new NonVisualTable(new Array(itemName),fields,"MERGE");
nonVisualTable.setDataAdapter("MBTLSADAPTER");
nonVisualTable.setSnapshotRequired(false);
nonVisualTable.addEventListener(NonVisualItemUpdateEvent.NON_VISUAL_ITEM_UPDATE,onChange);
lsclient.subscribeTable(nonVisualTable);
if(!dictionary.hasOwnProperty(itemName)){
dictionary[itemName] = new ArrayCollection();
}
ArrayCollection(dictionary[itemName]).addItem(nonVisualTable);
}
Bookmarks