Odoo-mobile / framework

Odoo Mobile Framework
https://play.google.com/store/apps/dev?id=8607973775002477408
Other
327 stars 374 forks source link

Values are false when refreshing #312

Closed AsKaeternam closed 7 years ago

AsKaeternam commented 7 years ago

Hello dear,

Do you know why when refreshig a list with records, new records are fetched by values pass to false.

For example I've partners, Pierre Cardin, I swipe down the list, new records are fetched but Pierre Cardin pass to False, then to Pierre Cardin, then to False, then to Pierre Cardin, until the complete end of the synchronization ? It's not really userfriendly...

Do you also have the problem ? Do you have a solution for that ?

Best regards

capture

adam-nadar commented 7 years ago

@AsKaeternam y don u user logger or debugger to check tat out..... wat values are available in ur ODataRow...

AsKaeternam commented 7 years ago

Yes I do, but while data is loading and refreshing records permutly pass from values to false etc... until the end of the sync. At the end values are well displayed.

Thank you for your answer

adam-nadar commented 7 years ago

@AsKaeternam @Override public void onViewBind(View view, Cursor cursor, ODataRow row){ OLog.log(row.toString()); } why don u try tis

when as you are trying to retrieve data from ODataRow with key is not available thatz y it is returning false...

AsKaeternam commented 7 years ago

The problem was that I've use adapter.swapCursor instead of adapter.changeCursor