-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement column types to allow constraining input #7
Comments
Column type specification formats for CSV files in useSeparate
|
I am leaning towards either implementing the W3C-proposed schema, or towards The idea with adding a second header may be sub-optimal because it would be a pain to parse. Similarly the prefixes/suffixes. A lot can go wrong. As I need the tool now (now is better than never), I will proceed with the |
Maybe there could be a checkbox (off by default):
which would be only shown if the file was detected or if a type of any column was changed? |
Also, this would be useless if viewing an Excel spreadsheet, so should have a condition on the filename not ending with xls/xlsx (or on mimetype not being Excel) |
Maybe we should just allow any html (thus also allowing formating, things like bold and italic). Note: HTML can be easier to parse than Excel. |
Proof of concept implemented in eb3c879 (v0.3): The types are not stored yet and styling requires work - but it is just POC. |
Idea: implement a column-wise validation of the user input using the column types feature of jExcel.
I frequently find myself having to work with the spreadsheets having mistakes in data entry process (like dates being in UK and US format). Having the (optional) column types could alleviate at least some of the problem (i.e. decrease probability of myself and you from creating invalid files; cannot help about the other Excel users though).
The design idea is to have a bar above the column names with a drop-down allowing to choose column type. By default all would be "text", and the bar would be hidden. On pressing a toolbar button the bar with type drop-downs would show up and the user would be able to choose the column type.
Questions to the community/users/myself:
The text was updated successfully, but these errors were encountered: