Hi everybody.
I'm trying out the new Flash Builder 4.5.1 and in particular the mobile section. Love to create a mobile app.
Been using LCDS for a while now to and loving it. Creating RIA's with the LCDS backend connected to a MySQL database works like a charm.
Now I want to enable LCDS for a new mobile project but i'm running on some trouble.
Things to know: LCDS is working 100%, including the MySQL backend. Can create web bases RIA's that works 100% (CRUD actions).
But when I create a mobile project with a LCDS backend there is no data to be displayed. I use a list component to show a single culomn but nothing.I figured out that the problem lies with AIR. When I delete the mobile project and create an AIR desktop application the problems return. It seems that LCDS only works when the created project is web based. When local AIR apps are created, LCDS doesn't return the from the MySQL database.
I monitored the network calls and these are the results:
ServiceRequest: trigger connect; MessageService; trigger connect
(mx.messaging.messages::CommandMessage)
body=(Object)#0
clientId=(null)
correlationId=""
destination="test2.Customers"
headers=(Object)#0
messageId="8B8011E1-3688-4F12-FCB1-B087B1CB9E51"
operation="trigger connect"
timeToLive=0
timestamp=0
Why is LCDS not working in combination with AIR apps?
EDIT
Finaly it spet out an error message. Within the AIR app:
Could not initialize DataService.
Cannot connect to the server to load configuration for destinations: ["test2.Customers"]
Hope that helps..