Received: from access1.lan2wan.com (bmccoy@access1.lan2wan.com [205.177.8.10]) by hub.org (8.9.2/8.9.1) with ESMTP id QAA97554 for ; Mon, 22 Feb 1999 16:40:04 -0500 (EST) (envelope-from bmccoy@access1.lan2wan.com) Received: (from bmccoy@localhost) by access1.lan2wan.com (8.8.5/) id TAA08577; Mon, 22 Feb 1999 19:08:26 -0500 (EST) Date: Mon, 22 Feb 1999 19:08:25 -0500 (EST) From: "Brett W. McCoy" To: Dan Parker cc: pgsql-sql@postgreSQL.org Subject: Re: [SQL] Stepping/Paging Through Rows In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Mon, 22 Feb 1999, Dan Parker wrote: > I learned about cursors and they solved part of the problem - I created a > form with Perl/Tk with buttons to move forward a row and backwards a > row and that seems to be fine. > > There are a couple of features I would like to have that I can't figure > out how I'd implement. For example, lets say I want to add a new row to > the table. I press an 'Add' button, the form goes blank, and I key in all > of the information. I press an 'Update' button and behind the scenes > things whirl around and update the record in the database. No problem. > But let's say now I want to return the user back to the browsing form and > place them on the row they just entered (while still being able to "page" > through the rows with the forward and back buttons). I'm stuck. If I > create a new cursor, I'm back at the beginning of the table - there > doesn't seem to be a way to find a particular row and placing the > cursor there after creating the cursor. Have you looked at pgAccess yet? It's an application written in Tcl/Tk that allows you to build and administer PostgreSQL databases in a manner very similar to MS-Access (hence the name, I guess...) The author of that software has probably already done a lot of what you are trying to do. It can be found at http://www.flex.ro/pgaccess. I believe there may even be a mailing list for it, but you can definitely get more direct information on the INTERFACES mailing list. Brett W. McCoy http://www.lan2wan.com/~bmccoy ----------------------------------------------------------------------- Love at first sight is one of the greatest labor-saving devices the world has ever seen. ----- BEGIN GEEK CODE BLOCK ----- Version: 3.12 GAT dpu s:-- a C++++ UL++++$ P+ L+++ E W++ N- o K- w--- O@ M-@ !V PS+++ PE Y+ PGP- t++ 5- X+ R+@ tv b+++ DI+++ D+ e>++ h+ r++ y++++ ------ END GEEK CODE BLOCK ------