Skip to content
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

ID by row in Csv store #2

Closed
cjolif opened this issue Sep 13, 2013 · 1 comment
Closed

ID by row in Csv store #2

cjolif opened this issue Sep 13, 2013 · 1 comment

Comments

@cjolif
Copy link

cjolif commented Sep 13, 2013

This quite common in CSV data to not have a field that can represent an ID. In which case this is quite nice to be able to ID by row. This is a feature that dojox/data/CsvStore used to provide and that would be nice to get in dojo-smore/Csv.

@kfranqueiro
Copy link
Owner

I've added code to support auto-generating IDs if you set idProperty to a falsy value (such as ""). The default is still "id" since it inherits from dojo/store/Memory.

Note that the auto-generated IDs start at 1. As far as I could tell dojox/data/CsvStore starts them at 0, so this is a bit different, but I think starting at 1 makes more sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants