Skip to main content

Using CouchDB with Uniface

  • Nov 19, 2018 9:06 AM UTC
  • 0 replies
  • 13 views

Jan Cees Boogaard
Forum|alt.badge.img+2

Community Sample

Using CouchDB with Uniface

Author Eddy Knochs
Date submitted

 

Category Uniface Coding
Sample file

Description

Apache CouchDB uses a REST like API to store and manage documents, stored in JSON format. This sample contains one Uniface form that stores JSON documents (obtained from an internet jokes site) into a CouchDB server, and allows retrieval of these documents and the updating of these documents via CouchDB views. Prerequisites are Uniface 9.6.06, internet access (to download CouchDB and to subsequently obtain jokes), and the installation of CouchDB on a local server (localhost is the default). Doumentation on the sample includes a PDF document (including how to create the CouchDB views) , and various comments within the form source code. The Uniface scripting within this form shows extensive use of the UHTTP internal component to perform RESTful web services call-outs, and extensive use of Structs to transform JSON to Uniface component data structures.