Unix Technical Forum

Easier sorting & searching in the edit grid?

This is a discussion on Easier sorting & searching in the edit grid? within the pgsql Interfaces Pgadmin Hackers forums, part of the PostgreSQL category; --> Hi, I'd like to propose a tiny addition to the edit grid that shows tables and query results. The ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Interfaces Pgadmin Hackers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-18-2008, 09:53 AM
Andreas
 
Posts: n/a
Default Easier sorting & searching in the edit grid?

Hi,

I'd like to propose a tiny addition to the edit grid that shows tables
and query results.
The sorting&filter dialog is most of the time overkill when I just want
to look something up.

I'd be nice to have additional command buttons like you find e.g. in
MS-Office:
One clicks into a column and then

1) a) "A-->Z"
b) "Z-->A" to sort the grid by this column.


2) a) A button that asks for a value to search within this column.
b) continue


Or set filters on this column:
3) a) show just records that have the same value in this column as
the cell that has the focus right now.
b) NOT (1)

4) ask for an expression X and set a filter on the current column.
This might be more work so it isn't a priority but it'd be really helpful.
E.g. mouse click in column "some_number".
Then click button and enter : ">100 and <900 or null"
pgAdmin would expand this to:
(some_number > 100) AND (some_number < 900) OR (some_number IS NULL)


I think even just 1) - 3) would save a whole lot of typing and retyping
b/c of wrong spelling.


Regards
Andreas

---------------------------(end of broadcast)---------------------------
TIP 7: You can help support the PostgreSQL project by donating at

http://www.postgresql.org/about/donate

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-18-2008, 09:53 AM
Dave Page
 
Posts: n/a
Default Re: Easier sorting & searching in the edit grid?

Andreas wrote:
> Hi,
>
> I'd like to propose a tiny addition to the edit grid that shows tables
> and query results.
> The sorting&filter dialog is most of the time overkill when I just want
> to look something up.
>
> I'd be nice to have additional command buttons like you find e.g. in
> MS-Office:
> One clicks into a column and then
>
> 1) a) "A-->Z"
> b) "Z-->A" to sort the grid by this column.
>
>
> 2) a) A button that asks for a value to search within this column.
> b) continue
>
>
> Or set filters on this column:
> 3) a) show just records that have the same value in this column as
> the cell that has the focus right now.
> b) NOT (1)
>
> 4) ask for an expression X and set a filter on the current column.
> This might be more work so it isn't a priority but it'd be really helpful.
> E.g. mouse click in column "some_number".
> Then click button and enter : ">100 and <900 or null"
> pgAdmin would expand this to: (some_number > 100) AND (some_number <
> 900) OR (some_number IS NULL)
>
>
> I think even just 1) - 3) would save a whole lot of typing and retyping
> b/c of wrong spelling.


1 & 2 sound good. I'm on the fence on the usefulness of 3, and for 4 you
might as well use the existing dialogue.

Any danger I can persuade someone to take a stab at this?

Regards, Dave

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-18-2008, 09:53 AM
Guillaume Lelarge
 
Posts: n/a
Default Re: Easier sorting & searching in the edit grid?

Dave Page a écrit :
> Andreas wrote:
>> I'd like to propose a tiny addition to the edit grid that shows tables
>> and query results.
>> The sorting&filter dialog is most of the time overkill when I just want
>> to look something up.
>>
>> I'd be nice to have additional command buttons like you find e.g. in
>> MS-Office:
>> One clicks into a column and then
>>
>> 1) a) "A-->Z"
>> b) "Z-->A" to sort the grid by this column.
>>
>>
>> 2) a) A button that asks for a value to search within this column.
>> b) continue
>>
>>
>> Or set filters on this column:
>> 3) a) show just records that have the same value in this column as
>> the cell that has the focus right now.
>> b) NOT (1)
>>
>> 4) ask for an expression X and set a filter on the current column.
>> This might be more work so it isn't a priority but it'd be really helpful.
>> E.g. mouse click in column "some_number".
>> Then click button and enter : ">100 and <900 or null"
>> pgAdmin would expand this to: (some_number > 100) AND (some_number <
>> 900) OR (some_number IS NULL)
>>
>>
>> I think even just 1) - 3) would save a whole lot of typing and retyping
>> b/c of wrong spelling.

>
> 1 & 2 sound good. I'm on the fence on the usefulness of 3, and for 4 you
> might as well use the existing dialogue.
>


1 and 2 were something I wanted to do but don't have the time right now.
So, if Andreas wants to work on this, I completely agree

I also wanted to add a combobox for each column, showing unique values.
Choosing one of the unique values will filter by this value. It seems to
me more interesting than 3.

Moreover, I would be great to have this (1 and 2) for server status window.

Regards.


--
Guillaume.
http://www.postgresqlfr.org
http://dalibo.com

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:59 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com