File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can't retrieve value from JsonNode mapped via Ektorp

James Gibbs
Posts: 29
Android Ubuntu
  • 0
  • 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.
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic