Hi All,
The following script:
sku=event.source.parent.getComponent('Dropdown').selectedStringValue
report = event.source.parent.getComponent ('Report Viewer')
bytes = report.getBytesPDF()
filename = "c:\\test\\report.pdf"
system.file.writeFile (filename, bytes)
successfully writes the file “c:\test\report.pdf” to the disk without additional user intervention, but what I need is to write to a network location in the format: “\x.x.x.x\share<filename.pdf>” where the file name is the contents of the “sku” variable above, with the extension “.pdf” tacked on to the end.
Hoping someone can assist with the custom file name portion of the script - setting the file name to the sku variable with a .pdf extension.
Thanks!