Passing content of document into javascript action

2
Hi, I’m trying to convert the contents of a document to string format in a javascript action. However when I pass in the docment object to my javascipt code the content attribute is null therefore not able to use it. Any help on this please?
asked
1 answers
0

Use the StringFromFile function of the community commons. Then pass this string to the Javascript instead of the document.

Regards,

Ronald

[EDIT]

For nanoflow you probably need to think outside of the box. So either generate the string beforehand and save it to the data you sync offline or try to solve it in Javascript. See for instance https://stackoverflow.com/questions/21354235/converting-binary-to-text-using-javascript

answered