pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Brett W. McCoy <bmccoy@lan2wan.com>
To: Dan Parker <danp@town.ipswich.ma.us>
Cc: pgsql-sql@postgreSQL.org
Subject: Re: [SQL] Stepping/Paging Through Rows
Date: Mon, 22 Feb 1999 19:08:25 -0500 (EST)
Message-ID: <Pine.BSI.3.91.990222190400.27789B-100000@access1.lan2wan.com> (raw)
In-Reply-To: <Pine.LNX.3.96.990222153316.1844C-100000@mis1.town.ipswich.ma.us>

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 ------




view thread (2+ messages)

Message-ID: <Pine.BSI.3.91.990222190400.27789B-100000@access1.lan2wan.com>
Permalink:  ../Pine.BSI.3.91.990222190400.27789B-100000@access1.lan2wan.com/
Also on:    postgresql.org/message-id/Pine.BSI.3.91.990222190400.27789B-100000@access1.lan2wan.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: bmccoy@lan2wan.com, danp@town.ipswich.ma.us
  Subject: Re: [SQL] Stepping/Paging Through Rows
  In-Reply-To: <Pine.BSI.3.91.990222190400.27789B-100000@access1.lan2wan.com>
  References: <Pine.LNX.3.96.990222153316.1844C-100000@mis1.town.ipswich.ma.us> <Pine.BSI.3.91.990222190400.27789B-100000@access1.lan2wan.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox