Issue 80917 - copying data from calc and writer to base is omitting the first line/record
Summary: copying data from calc and writer to base is omitting the first line/record
Status: CLOSED FIXED
Alias: None
Product: Base
Classification: Application
Component: code (show other issues)
Version: OOo 2.2
Hardware: All All
: P3 Trivial (vote)
Target Milestone: OOo 3.2
Assignee: marc.neumann
QA Contact: issues@dba
URL:
Keywords:
: 18904 (view as issue list)
Depends on:
Blocks: 20748
  Show dependency tree
 
Reported: 2007-08-22 01:49 UTC by ms2
Modified: 2011-02-02 08:18 UTC (History)
5 users (show)

See Also:
Issue Type: ENHANCEMENT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
spreadsheet containing data to copy (7.39 KB, application/vnd.oasis.opendocument.spreadsheet)
2007-08-22 01:50 UTC, ms2
no flags Details
writer doc containing data to copy (7.86 KB, application/vnd.oasis.opendocument.text)
2007-08-22 01:52 UTC, ms2
no flags Details
database file for reproduction (3.90 KB, text/plain)
2007-08-22 01:53 UTC, ms2
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description ms2 2007-08-22 01:49:55 UTC
Task:
Copy data from writer/calc to an existing base table appending data.

Error:
The first line of data is not inserted into the target table.

Database:
Internal HSQLDB
registered Data Source

Tested with:
2.2.0
680m2

OS:
Win98se

Reproduce:
- open attached .odb file plus one of the .ods/.odt files
- goto writere/clac doc
- writer: select complete table with the mouse / calc: select the used range
- click the "copy" button in the toolbar
- activate the base window
- select the tables container
- click the "paste" button in the toolbar
- the import assistant window pops up
  - type in "Artikel" as table name
  - select "append data"
  - click next (not sure if necessary)
  - click finish
- open the table "Artikel"

You'll see: the data has been imported without any proton.

(In case of copying from writer there are spaces inserted into the first field
of each row, this is a separate issue 80916)
Comment 1 ms2 2007-08-22 01:50:59 UTC
Created attachment 47701 [details]
spreadsheet containing data to copy
Comment 2 ms2 2007-08-22 01:52:16 UTC
Created attachment 47702 [details]
writer doc containing data to copy
Comment 3 ms2 2007-08-22 01:53:04 UTC
Created attachment 47703 [details]
database file for reproduction
Comment 4 Frank Schönheit 2007-08-22 10:12:42 UTC
confirming, targeting, assigning
Comment 5 ocke.janssen 2007-08-22 10:31:08 UTC
At the moment it is not possible to say that the first row isn't the row which
defines the columns. Change target to enhancement.

As a workaround you could insert table row which defines the names of the columns.
Comment 6 ms2 2007-08-23 01:41:33 UTC
Hey, so it's a feature well known from CSV and the like. :)

I'd like to suggest two actions then:

1. The import wizard could have one more checkbox labeled "use first line as
field names" as usual.

2. There should be some information in the online help that are easy to find in
the context of c&p to base.
Comment 7 ocke.janssen 2007-10-12 13:27:28 UTC
Fixed in cws dba24c
Comment 8 ocke.janssen 2007-10-15 13:09:38 UTC
.
Comment 9 ocke.janssen 2007-11-05 06:38:13 UTC
Please verify. Thanks.
Comment 10 marc.neumann 2007-11-12 14:37:16 UTC
back to oj.
The new check box is missing
Comment 11 marc.neumann 2007-11-12 14:37:43 UTC
reassign back to oj
Comment 12 ocke.janssen 2007-11-12 15:42:07 UTC
Has to be clarified with UX how to handle it. First shot was not that promising. :-(
Comment 13 ocke.janssen 2008-03-31 06:30:25 UTC
Change target to 3.1. No new UI changes can be done for 3.0.
Comment 14 kpalagin 2008-04-30 18:15:05 UTC
Ocke,
did you manage to contact UX for their feedback?
Comment 15 ocke.janssen 2008-05-02 06:18:35 UTC
I'm sorry. No. May be the best way is to assign this issue directly to ux.
Comment 16 bettina.haberer 2008-10-30 16:35:05 UTC
Target moved.
Comment 17 kpalagin 2008-10-30 18:51:44 UTC
Betina, Ocke,
could you, please, involve UX or just decide on UI and get this issue resolved?
The code is ready for a year and users are not benefiting from the effort made.

Thank you for your prompt action.
Regards,
Kirill Palagin.
Comment 18 Frank Schönheit 2008-10-30 23:36:54 UTC
@kpalagin: I agree to you, this issue is to severe to be postponed to 3.x, which
could be mean anything up to 3 years.
@bh: Sorry, back to 3.1. We need to decide on this.
Comment 19 kpalagin 2008-11-02 18:43:09 UTC
Blocks meta-issue 95768.
Comment 20 kpalagin 2008-11-12 21:20:14 UTC
FS, OJ,
please comment on
"When a range of cells are copied and then pasted into Base there are two 
scenarios, either the creation of a new table or the appending of the data 
into an existing table. Issue 80917 deals specifically with the second 
scenario, appending data. However the behavior of treating the first row in 
the input data as column designators is the same in either scenario. So I 
would assume that the fix, the addition of an option to treat the first row as 
data, is available in both also.

Question 1 then, is this the case?

Question 2, if so then given the situation where a user selects to create a 
new table from the data and selects the option to not use the first row as 
column names how will the column names be entered?
Thanks
Drew" by Drew Jensen.
Comment 21 Frank Schönheit 2008-11-17 08:26:31 UTC
Not sure where you have this from (I think I already read it, but I don't know
anymore in which list, so I'm not sure about the context here).

'bout your questions:
Yes, I think a check box would apply to both scenarios. Basically, this option
affects how the source data is interpreted, so changing target parameters (like
"append or create") has no effect on its availability.

Second, on one of the wizard pages is a field to change column names, isn't it?
The default would probably be something like "Column_1", ... "Column_25".
Comment 22 kpalagin 2008-11-17 21:46:21 UTC
Here is the context http://ux.openoffice.org/servlets/ReadMsg?
listName=discuss&msgNo=2427
Comment 23 Frank Schönheit 2008-11-18 12:46:05 UTC
thanks, copied my answer to the list.
Comment 24 Frank Schönheit 2008-12-12 12:43:55 UTC
Sigh. Lost this from the radar, and now we effectively missed feature freeze.
Comment 25 kpalagin 2009-01-27 15:03:45 UTC
Any news with this one?

Regards.
Comment 26 ocke.janssen 2009-02-04 08:03:16 UTC
Grabbing. We need to discuss this enhancement in the I-Team. Any help how to
redesign the table copy wizard is welcome.
Comment 27 kpalagin 2009-05-22 15:15:09 UTC
Any chance to finally get this going before code freeze for 3.2?
Comment 28 ocke.janssen 2009-05-27 10:00:57 UTC
Yes. I'll wait for a new cws to put my changes in.
Comment 29 ocke.janssen 2009-05-28 11:57:39 UTC
Fixed in cws dba32d

Now the user can select if the first row should only be used to describe columns
or if the row should also be inserted. This only applies for RTF and HTML
formats. When copying from another database columns are already defined.
Comment 30 ocke.janssen 2009-06-17 13:10:48 UTC
Please verify. Thanks.
Comment 31 Frank Schönheit 2009-07-01 10:11:58 UTC
fs->msc: please verify in CWS dba32d
Comment 32 marc.neumann 2009-07-03 09:07:01 UTC
verified in CWS dba32d

find more information about this CWS, like when it is available in the master
builds, in EIS, the Environment Information System:
http://eis.services.openoffice.org/EIS2/cws.ShowCWS?Path=DEV300%2Fdba32d
Comment 33 thorsten.ziehm 2009-07-20 14:53:43 UTC
This issue is closed automatically and wasn't rechecked in a current version of
OOo. The fixed issue should be integrated in OOo since more than half a year. If
you think this issue isn't fixed in a current version (OOo 3.1), please reopen
it and change the field 'Target Milestone' accordingly.

If you want to download a current version of OOo =>
http://download.openoffice.org/index.html
If you want to know more about the handling of fixed/verified issues =>
http://wiki.services.openoffice.org/wiki/Handle_fixed_verified_issues
Comment 34 thorsten.ziehm 2009-07-20 15:36:37 UTC
Sorry this issue was wrongly closed. This issue will be reopened automatically.
And will be set after that back to fixed/verified.
Comment 35 thorsten.ziehm 2009-07-20 15:40:55 UTC
Set to state 'fixed'.
Comment 36 thorsten.ziehm 2009-07-20 15:44:55 UTC
Set back to state 'verified/fixed'.

Again. Sorry for the mass of mails.
Comment 37 kpalagin 2009-07-20 20:26:24 UTC
Verified in m52 - checkbox "Use first line as column name" is there and works.
Thanks a lot!
Closing.
Comment 38 ocke.janssen 2011-02-02 08:18:03 UTC
*** Issue 18904 has been marked as a duplicate of this issue. ***