javascript - Automate the Import Function from Google Sheets -


is there way automate import function google sheets in javascript?

something like:

<!doctype html> <html>      <head>         <script type="text/javascript" src="https://www.google.com/jsapi"></script>         <script type="text/javascript">                 var datadestinationurl = 'https://docs.google.com/spreadsheets/d/1s3pu-sr4bwabtqkyx2bdlzicf8snko5d6v6o-ysot7g';                var datasource = 'c:\myexcel.xlsx'                  function importdata() {                     datadestinationurl.import (datasource)                }           </script>       </head>      <body>            <input type="button" onclick="importdata" value="submit" />      </body> </html> 

what i'm looking this:

https://www.dataeverywhere.com/use-excel-sheets

but because corporation restrictions cannot have adds-on. however, can program script in javascript , use script.

further explanation:

  • most reports done in excel because connected database in ibm cognos tm1 through plug-in or add-in, data sits in ibm cognos tm1 , through plug-in push excel.

  • however, google sheets doesn't have (as far know) way connect ibm cognos tm1.

  • reports extensive, several tabs, many rows , columns copying , pasting information many reports google sheets won't solution.

  • there import solution, not 1 file 1 time. there multiple files update daily, weekly, biweekly , monthly, import option not solution either. need human intervention won't solution. need find out how automatically synchronize google sheets excel files.

  • i trying think on way "import", transfer, synchronize or similar indicate location of excel file (c;\myexcel.xlsx) , automatically have information replicated google sheets.

can maybe google sheets api? if so, know how?

thank much

i'd script following steps:

  1. csv-download google sheets
  2. put csv shared directory
  3. write simple import script tm1 turbointegrator
  4. trigger import ti using tm1 chore or tm1 rest api call

link tm1 api: https://www.ibm.com/developerworks/community/wikis/home/wiki/w181f1083f3dd_455f_b2f8_f63c4a9c8010/page/tm1%20rest%20api%2010.2.2?lang=en


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -