Re: Problems with Structures_Datagrid!

From: Date: Mon, 10 Jan 2005 16:23:29 +0000
Subject: Re: Problems with Structures_Datagrid!
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-16862@lists.php.net to get a copy of this message
On Mon, 10 Jan 2005 17:15:18 +0100, Søren Jepsen <sje@luminans.dk> wrote: > Hi all PEAR people! > > I've recently been introduced to the PEAR framework - and have been experimenting with the > structures_Datagrid 0.6 beta. > > I've stumbled upon a problem: > > Been trying to set up a datagrid with a delete button for each item in the grid. > > When pressing a delete button on an item, the page calls itself and checks if > $_GET['mode'] == 'delete' and > deletes the item before displaying the grid again - all fine. > > My problem is when i afterwards press a Column in the grid for sorting - the page trieds to > delete the previous > deleted item. Showing the datagrid inherits all the querystrings on a reload of the page. > > Is there a workaround for this? Or maybe a feature where you tell the datagrid which parts of > the querystring to > inherit? > I suggest redirecting after you do any processing. This way you have exactly what you want in the URL and you can get rid of the "delete" page in the browser's history. I don't think there's any way to change the URL it sets. -- Justin Patrin

« previous php.pear.general (#16862) next »