Hello,
Is there a way of using SuperCSV to have a conditional presence based on the previous field's value.
For instance I have csv file with the following fields:
Country, State, Zip, City
And State is only required if Country (which is matched to an enum) is equal to USA or Canada.
Does SuperCSV allow that ? I haven't been able to find a way to implement it.
Thanks,
Claire
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
Is there a way of using SuperCSV to have a conditional presence based on the previous field's value.
For instance I have csv file with the following fields:
Country, State, Zip, City
And State is only required if Country (which is matched to an enum) is equal to USA or Canada.
Does SuperCSV allow that ? I haven't been able to find a way to implement it.
Thanks,
Claire
Hi Claire,
Sorry for the delay. It's not supported out of the box, but should be achievable with a custom cell processor. See the following for more details:
http://sourceforge.net/p/supercsv/feature-requests/25/#30a5
Kind regards,
James