How can I write a download a blob in a client scri...
# suitescript
a
How can I write a download a blob in a client script?
b
best chance is to search for javascript solutions to download a blob
you will probably get variations of using URL.createObjectURL
a
I'm trying to use filesaver.js but its not including the library for some reason.
The variable filesaver is undefined.
b
that is some weird code going on in there
its not really a good amd module
it sets the saveAs function on the window global
so, either shim it using a require configuration
or just use the global saveAs it creates
a
Your last suggestion worked.