Apache OpenOffice (AOO) Bugzilla – Issue 18904
OO spreadsheet multirow paste into data source table does not copy first row
Last modified: 2013-08-07 15:45:41 UTC
When I copy two rows from an OO spreadsheet containing name and age into a table with corresponding data columns only the last row is copied. To be more precise I copy the 4 cells (2 rows with 2 colums). In "Assign columns" only the first row shows up. After pasting the data source view is not automatically refreshed. After refreshing manually only the last row shows up. Using mysql-4.0.14b-win. The database definition looks like this: CREATE TABLE `nameage` ( `name` varchar(50) NOT NULL default '', `age` tinyint(4) default NULL, PRIMARY KEY (`name`) ) TYPE=MyISAM;
correcting sub component (http://www.openoffice.org/issues/describecomponents.cgi?component=database%20access) and default owner
Hi, It's not 'really' an issue, it's more an howto. The problem is that the first row you select use as header and the second row is used as your data. So as a solution for your topic select the row before the row you need also. However, we have to think about a more 'useable' solution. Bye Marc
Hi arnechaa, as Marc already mentioned, this isn't a bug. I'll send this one back as invalid. If you want to have an extra option (header line included) aka check box in the copy table dialog, please sumbit a RFE (Request for enhancement). Best regards, Ocke
I reopen this as a RFE. When copying data, and creating a new database table, from a spreadsheet it may be logical to include header to be the names of colum in new table. When copying into an existing database table it is not logical to include header (so this could still be considered to be a bug, but never mind). When creating a new table OO should: 1. If header included confirm (with possibility to change) that header should be used as column names. 2. If header not included ask for column names. When copying into existing table: 1. If header included: skip header or warn user that a probable header was stored. 2. if header not included: copy ALL rows to table. Alternate solution: Include option to tell if data includes header. The default value should be "included" when creating new table and "not included" when copying into existing table. Arne
change subcomponent to 'none'
Set new target
Cleaning up. *** This issue has been marked as a duplicate of 80917 ***
Closing.