Menu

Conditional presence based on previous field's value ?

Help
Claire
2014-10-15
2014-10-17
  • Claire

    Claire - 2014-10-15

    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

     
  • James Bassett

    James Bassett - 2014-10-17

    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