Thank you so much for your answer! Really apreseate it!It helped me a
long way and i'm now capable of creating LCDS driven AIR apps.Only
problem though with the Mobile section. Did everything by the book but
the list is still not getting populated.. The code: import
com.adobe.offline.ProductOfflineAdapter; import mx.events.FlexEvent;
import mx.messaging.Channel; import mx.messaging.ChannelSet; import
mx.messaging.channels.RTMPChannel; import
mx.messaging.events.ChannelEvent; import mx.rpc.AsyncToken; import
mx.rpc.events.FaultEvent; import mx.rpc.events.ResultEvent; public var
myOfflineAdapter:ProductOfflineAdapter; public function
channelConnectHandler(event:ChannelEvent):void {
productService.serviceControl.autoConnect=false; } protected function
app_preinitializeHandler(event:FlexEvent):void { var cs:ChannelSet = new
ChannelSet(); var customChannel:Channel = new RTMPChannel("my-rtmp",
"rtmp://localhost:2037"); cs.addChannel(customChannel);
productService.serviceControl.channelSet=cs;
customChannel.addEventListener(ChannelEvent.CONNECT,
channelConnectHandler); } protected function
dataGrid_creationCompleteHandler(event:FlexEvent):void {
getAllResult.token = productService.getAll(); } protected function
windowedapplication1_creationCompleteHandler(event:FlexEvent):void {
productService.serviceControl.autoCommit = false;
productService.serviceControl.autoConnect = false;
productService.serviceControl.autoSaveCache = false;
productService.serviceControl.offlineAdapter = new
ProductOfflineAdapter();
productService.serviceControl.fallBackToLocalFill=true;
productService.serviceControl.encryptLocalCache = true;
productService.serviceControl.cacheID = "myOfflineCache"; } protected
function list_creationCompleteHandler(event:FlexEvent):void {
getAllResult.token = productService.getAll(); }
It is just a
simple list component that needs to be filled, in this case by the LCDS
sample database. When I monitor the network connections, the trigger is
running succesfully with the following output: ServiceRequest: trigger
conn...