Hi,
I’m trying to export Table content in CAF to a custom format. That’s why I don’t want to use the CSV-format from the “Export Table Button”-functionality.
I found SimpleFileExportBean which seems to be exactly what I need, so I put following code in my action which I bound to an Async command button:
SimpleFileExportBean sfeb = new SimpleFileExportBean("hallo.txt", "text/plain", "abc".getBytes().length, true, "abc".getBytes());
streamFileDataToResponse(sfeb);
However several tests failed with a CAF error message:
[POP.012.0001.wm_cafshared/hidden] Es ist ein Serverfehler aufgetreten. Möglicherweise ist der Status dieser Seite nicht mit dem Server synchron.
Is it the wrong approach? Hope somebody can give advice
Regards,
Deniz