Unix Technical Forum

Column Names while copying from EditGrid

This is a discussion on Column Names while copying from EditGrid within the pgsql Interfaces Pgadmin Hackers forums, part of the PostgreSQL category; --> Hi, While copying data from EditGrid, I see that the column names are not copied. This makes the data ...


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, 08:55 AM
Robins Tharakan
 
Posts: n/a
Default Column Names while copying from EditGrid

Hi,

While copying data from EditGrid, I see that the column names are not
copied. This makes the data extremely ambiguous to use when pasting directly
into excel or a similar spreadsheet application. Attached is a patch which
prepends the column names in select cases of data copy from the EditGrid.

Cases when the column names are prepended to the dataset:
1. Selection of the complete Grid
2. Selection of one (or more) columns
3. Selection of all the columns of one (or more rows)

Case when the column names are not prepended:
1. Selection of columns less than the max number of columns. i.e. any subset
of the data-set when a complete row / column is not selected, would have
only data and not the respective column names.

p.s.: I hope my fixation for EditGrid isn't becoming a problem

Regards,
*Robins Tharakan*


--
Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-18-2008, 08:55 AM
Dave Page
 
Posts: n/a
Default Re: Column Names while copying from EditGrid

Hi,

On Thu, Mar 13, 2008 at 6:30 PM, Robins Tharakan <tharakan@gmail.com> wrote:
> Hi,
>
> While copying data from EditGrid, I see that the column names are not
> copied. This makes the data extremely ambiguous to use when pasting directly
> into excel or a similar spreadsheet application. Attached is a patch which
> prepends the column names in select cases of data copy from the EditGrid.
>
> Cases when the column names are prepended to the dataset:
> 1. Selection of the complete Grid
> 2. Selection of one (or more) columns
> 3. Selection of all the columns of one (or more rows)
>
> Case when the column names are not prepended:
> 1. Selection of columns less than the max number of columns. i.e. any subset
> of the data-set when a complete row / column is not selected, would have
> only data and not the respective column names.


I'm not happy with the 'rules' that govern this - it seems a prime
case for user confusion.

I would suggest that we add options (to frmOptions) to include column
(and row?) headers when data is copied from either the Edit Grid or
the Query Tool. That way the user can choose whether or not they get
headers.

> p.s.: I hope my fixation for EditGrid isn't becoming a problem


Not at all - please keep it up :-)


--
Dave Page
EnterpriseDB UK Ltd: http://www.enterprisedb.com
PostgreSQL UK 2008 Conference: http://www.postgresql.org.uk

--
Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers

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 01:55 AM.


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