DataService with Flex

Avatar

Avatar
Level 1
Rafael_Viana
Level 1

Likes

0 likes

Total Posts

3 posts

Correct reply

0 solutions
View profile

Avatar
Level 1
Rafael_Viana
Level 1

Likes

0 likes

Total Posts

3 posts

Correct reply

0 solutions
View profile
Rafael_Viana
Level 1

19-05-2010

Hello,

I'm testing the DataService with LCDS and I'm experiencing some problems.

I built an AIR application and it works fine.I used this same code to built a Flex application but when I compile the Flex app the player throws me an error:

ReferenceError: Error #1065: Variable mx.data::LocalStoreFactory is not defined.
    at mx.data::DataStore()[C:\depot\DataServices\trunk\frameworks\projects\data\src\mx\data\DataStore.as:219]
    at mx.data::DataStore$/http://www.adobe.com/2006/flex/mx/internal::getSharedDataStore()[C:\depot\DataServices\trunk\frameworks\projects\data\src\mx\data\DataStore.as:1866]
    at mx.data::ConcreteDataService/get dataStore()[C:\depot\DataServices\trunk\frameworks\projects\data\src\mx\data\ConcreteDataService.as:522]
    at mx.data::ConcreteDataService/set channelSet()[C:\depot\DataServices\trunk\frameworks\projects\data\src\mx\data\ConcreteDataService.as:285]
    at mx.data::DataService/set channelSet()[C:\depot\DataServices\trunk\frameworks\projects\data\src\mx\data\DataService.as:354]
    at <anonymous>()[D:\Trabalho\Pesquisa\CRM\src\Teste.mxml:14]
    at Function/http://adobe.com/AS3/2006/builtin::call()
    at mx.binding::Binding/innerExecute()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\binding\Binding.as:375]
    at Function/http://adobe.com/AS3/2006/builtin::apply()
    at mx.binding::Binding/wrapFunctionCall()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\binding\Binding.as:287]


I didn't find in the Google some problem like this.Someone can help me?

How can I use the DataService with the Flex without errors?

View Entire Topic

Avatar

Avatar
Give Back
Employee
Umal_Kumar
Employee

Like

1 like

Total Posts

4 posts

Correct reply

0 solutions
Top badges earned
Give Back
Boost 1
View profile

Avatar
Give Back
Employee
Umal_Kumar
Employee

Like

1 like

Total Posts

4 posts

Correct reply

0 solutions
Top badges earned
Give Back
Boost 1
View profile
Umal_Kumar
Employee

26-05-2010

Are the classes which are defined in your app public, if not set the classes declaration to public and see if this resolves the issue.