Google Sheets Web App downloadAsFile Stopped Working -


we have series of google sheets contain data our application, , have written scripts behind each 1 output data in json format (as download) use. done publishing each script web app, , linking url html dialog. web apps looks this:

function doget() {     var exportjson = getexportjson();     var output = contentservice.createtextoutput(exportjson);     output.downloadasfile("filename.json");     return output; }  function getexportjson() {     var exportarray = [];     fillinexportarray(exportarray);     return json.stringify(exportarray, null, 4); } 

this has worked while, on wednesday (5th april 2017) stopped working. happens download dialog comes up, used put filename (filename.json in example) has word "echo" (without quotes). if choose location download file, , click ok download appears in download bar in chrome, says "failed - network error" underneath it.

as said have number of sheets use same pattern, separate scripts , web apps. problem appeared on sheets @ time, without them being changed, i'm assuming it's not we've done.

update: forgot if go script editor, , select publish -> deploy web app, , click "latest code" link download works fine.

update 2: i've realised problem happening of in office, not others.

the problem activating link webapp html modal dialog google sheet, , causing error appear:

refused display 'https://...' in frame because set 'x-frame-options' 'sameorigin'.

so tried fix detailed in thread: app script htmlservice app in iframe, didn't work, in end added target="_blank" link html , opens in new window , works fine.


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -