Question
· Jan 6, 2020

Export data from caché (v 2012) to Excel, used validation data like dropdown list

I use the 2012 version of the caché, and I need to export data in an Excel file, the point that seems to complicate is to use the dropdown list in the cell and then trigger a validation if I exceed an interval of two values.

Help me, by your seggestions, solutions
Thank you

Discussion (5)0
Log in or sign up to continue

Hi Youness,

how are you exporting the data to excel : as a .csv file ?

I am not sure if this is your problem, but when exporting data (numbers) to excel,  you need to be careful on the decimal character you are using : if i export numbers with a decimal point, and my locale is set on comma as a decimal , the numbers are treated as strings, and no validation works.

Hi Youness,

There is no direct way from within Caché to modify excel sheets.

I use .csv files, or generate a .txt file, and call an excel file that runs a macro to read the data, and set all the stuff using VB code in the macro.

You can look at this article that talks about different options :

https://community.intersystems.com/post/use-cache-write-excel-files