Context
When wanting to import back a table I have exported, the newly created table keeps the default name Table
if I forget to fill the textarea in the dialog that opened.
Solution
Since importing a table means a user will certainly rename it with a similar name as the exported one, we could either :
- Rename the table with the same name as the imported one, ie. if the imported one was named
customers
, the new table is namedcustomers
- Rename it with a addendum to differenciate it from the original one, ie. if the imported one was named
customers
, the new table is namedcustomers (import)
orcustomers (copy)
These two first solutions implies using the name of the imported file to determined how to rename the new table.
- Table is created and name of the table is automatically erased, waiting for the user to immediately fill it.
This third solution looks not the best option in my opinion since it’s against the POLA, in which the normal behavior is to return to main screen, not to rewrite a table name.