Hi all,
I am writing a script to maintain historical data which I need to use in a dashboard (e.g. active users over a period of time). I've managed to build the code for generating the daily data and storing the data in an excel sheet in ADS. My issue now is to expand the script to (A) read the existing excel sheet from ADS, (B) append the new data to existing sheet (daily) and then (C) store the sheet again in ADS. Can anybody help please with steps A & B. I can't seem to find a way to do that.
Thanks.
Freddy Barkhuizen on
Hi Nicola,
Create a folder called "Test" in your ADS and import the attached spreadsheet called "test.xlsx".
Import the attached script and run it from any DB context.
The script will read the spreadsheet from ADS, insert a new row with incrementing number and write back the updated spreadsheet to ADS.
Regards,
Freddy
Attachments-
test.xlsx
-
Read-Update-Write Excel File from and to ADS.arx