Hello Allan,
Thanks for your reply.
> I'm curious what purpose you all are finding for CSV exports.
My thinking wasn't driven directly by my own need for CSV: two people
asked about CSV in this thread, and others offered hints coming either
from their own experience or from memory of past messages. Conclusion:
some users apparently need this. Question: why let them kludge around or
ask for help, why not let the software do it cleanly, at the user's
responsibility?
I don't imagine people wanting to export complex dictionaries to CSV,
but there are lots of simple-but-useful glossaries floating around, so
I'm guessing that may be part of it. Kevin Penner gave another example:
CSV is pretty popular in statistics, hence a natural format to ask for
for statistical purposes (his is potentially a different case, involving
selective export from possibly complex databases rather than just simple
glossaries). In other words, there is a range of software packages
accepting CSV as input (rather than MDF or LIFT), so allowing FLEx to
export into CSV might make a few people happy.
Now, I spoke up in this thread not exactly in order to start waving
flags with "go CSV!" on them, I merely suggested that CSV export might
be an inexpensive way of giving some users what they need, and admitted
to a degree of curiosity wrt what the dev team think of this kind of
enhancements. I'd normally sit quietly and watch, but had 5 minutes too
many at the wrong moment, perhaps ;-)
As far as losing data, part of it might be intended (you only export
FLEx->CSV, for a specific purpose, no round-trips intended), and part of
it might be in column headers: the serializer would have to look for the
most complex entries and then use empty fields (",,,,") for entries
lacking the complexity. Nesting is yet another problem for CSV, but
that's why I mentioned the user's responsibility: "If you really want
CSV, I'll give you CSV, just be aware of the limitations of the format
and better make sure your database is uniform or that you select some
sensible fields for the export", FLEx might say.
Kind regards,
Piotr
Allan Johnson writes: