Skip navigation
ndt.company
Currently Being Moderated

Error when caching data locally using LiveCycle Data Services

Mar 29, 2013 2:57 AM

Tags: #data #cache

Hi all,

I developing a mobile application support working offline. I using cache feature of LiveCycle Data Services.

This is my datasevice ( it has associate to others dataservice ) and autoSaveCache = true and cacheID = "xxx":

    

<destination id="expenseData">

          <properties>

                    <source>expense.ExpenseDataAssembler</source>

                    <scope>application</scope>

                    <item-class>expense.ExpenseData</item-class>

                    <metadata>

                              <identity property="id" />

              <one-to-many property="expenseItems" destination="expense-item" />

                    </metadata>

          </properties>

</destination>

 

when I run application in the first, it run nomarly but when I close and run it again , i get the errror message as below :

Error: Object instance needs an mx_internal::referencedIds property inorder to be managed: Object

          at mx.data.utils::Managed$/getReferencedIds()[C:\depot\DataServices\bran ches\milestone\adepds46_rc\frameworks\projects\data\src\mx\data\utils\ Managed.as:292]

          at mx.data::DataStore/restoreAssociations()[C:\depot\DataServices\branch es\milestone\adepds46_rc\frameworks\projects\data\src\mx\data\DataStor e.as:5010]

..............

 

- The error message not showed when I remove line <one-to-many property="expenseItems" destination="expense-item" /> .

Please help me if you know about this problem.

Thanks so much.

 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points