Skip to content
Advertisement

How to isolate an instance of a class with SuperCsv?

Actually I have a class ArticleModele where I store the content of the columns of the .csv, but I don’t know how to access to a particular instance of the class which corresponds to a particular row in the .csv. Here is my code:

JavaScript

And here is the class:

JavaScript

Advertisement

Answer

The code returns with last result, as it overwrites articleModele.

JavaScript

So collect a list.

JavaScript

If this works you can get the ith article. And walk the articles:

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement