Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 38026 invoked from network); 15 Jul 2010 16:53:53 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 15 Jul 2010 16:53:53 -0000 Received: (qmail 14411 invoked by uid 500); 15 Jul 2010 16:53:53 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 14314 invoked by uid 500); 15 Jul 2010 16:53:52 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Delivered-To: moderator for dev@couchdb.apache.org Received: (qmail 56441 invoked by uid 99); 14 Jul 2010 18:38:18 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) From: Jyoti Venkatesh To: "user@couchdb.apache.org" , "dev@couchdb.apache.org" Date: Thu, 15 Jul 2010 00:07:14 +0530 Subject: Query relating to Show/List function Thread-Topic: Query relating to Show/List function Thread-Index: AQHLI4OUrdJusUCYO0OZEypyvZhiJQ== Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginalArrivalTime: 14 Jul 2010 18:37:16.0506 (UTC) FILETIME=[95708BA0:01CB2383] X-Virus-Checked: Checked by ClamAV on apache.org I am a newbie to couchDB. I am trying to write a show function. Following is my sample document, which i have saved as record1.json. { "parent1type" : "1", "parent1property" : [ {"heading":"System Performance","level":"1","open":"true","icon":"green= ","nochild":"false","child":"true","visible":"true"}, {"heading":"SAP R3","level":"1","open":"true","icon":"green","nochild":= "true","child":"false","visible":"true"} ], "parent2type" : "2" } Following is my sample show function, which i have saved as recshow.json { "xmlshows": { "toxml": "function(doc, req) { var BasicData =3D ; BasicData.@parent1type =3D doc.parent1type; return { 'body': BasicData.toXMLString(), 'headers': { 'Content-Type': 'application/xml' } } }" } } I put this in couchdb using curl. But when i use GET to show my document. I= am getting this following error. {"error":"unnamed_error","reason":"(new TypeError(\"point is undefined\", \= "../s hare/couchdb/server/main.js\", 1388))"} Where am i going wrong..?? Regards J DISCLAIMER The content of this email and any attachments ('email') is confidential, ma= y be privileged, subject to copyright and may be read and used only by the = intended recipient. If you are not the intended recipient please notify us = by return email or telephone and erase all copies and do not disclose the e= mail or any part of it to any person. Email transmission cannot be guarante= ed to be secure, or error free as information could be intercepted, corrupt= ed, lost or destroyed as a result of the transmission process. The sender, = therefore, does not accept liability for any errors, omissions, viruses or = delay in transmission as a result of this mail. We monitor email communica= tions through our networks for regulatory compliance purposes and to protec= t our clients, employees and business. Opinions, conclusions, and other inf= ormation in this message that do not relate to the official business of NII= T Technologies Ltd. or its affiliate(s) shall be understood to be neither g= iven nor endorsed by NIIT Technologies Ltd. or its affiliate(s).