https://bugs.freedesktop.org/show_bug.cgi?id=49554
Bug #: 49554
Summary: Misleading error message about primary key on first
page of table import wizard
Classification: Unclassified
Product: LibreOffice
Version: LibO 3.3.0 Beta2
Platform: Other
OS/Version: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Database
AssignedTo: [email protected]
ReportedBy: [email protected]
When you import a Calc table to a database, for example with drag&drop to the
table container, then the Wizard "Copy Table" starts.
On the first page you can check "Create Primary Key" and enter an identifier in
the field 'Name'. If you enter a column name (for example 'Ident') of the Calc
table, you get the error message "The following fields have already been set as
primary keys: Ident"
This error message is misleading, because it says, that the column 'Ident' has
already been set as primary key. But that is not the case. If you will use an
existing column as primary key, you have to set it on the third page of that
wizard.
The source code in dbaccess/source/ui/misc/WCPage.cxx has a correct commend "//
now we have to check if the name of the primary key already exists" but uses
the unsuitable string STR_WIZ_PKEY_ALREADY_DEFINED.
I think, that two improvements are possible and needed
(1)
Define a new string for the error message.
For example, "Enter a unique name for the new primary key data field. The
following name is already in use: ..."
(2)
Change the description in the wizard, so that the user does no longer thinks,
he can make an existing columns to a primary key with this check box. For
example, "Create new data field for primary key." instead of "Create primary
key"
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs