Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Can't retrieve value from JsonNode mapped via Ektorp

 
James Gibbs
Greenhorn
Posts: 29
Android Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm building an Android app which replicates a CouchDB using TouchDB. I create a view with all the documents and pass it to my own implementation of CouchBaseViewAdapter, which links it to my ListView:



In the SyncListAdapter I override getView() and try and extract the "header" field of each JsonNode which has each has been mapped to the results of my viewquery by Ektorp:



However item.get("header") always returns null, even though the same amount of list items are populated as the amount of docs in the DB, so I assume everything else is working.
 
You didn't tell me he was so big. Unlike this tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!