Question
· May 18, 2023

Streamcontainer to operation original filename won't be set

Trying to pass pdf to save to custom file  using default Trying to pass pdf to save to custom file  and %f. but oriignal filename didn't send (it does in terminal). What is missing from setting filename from stream? can the file passthrough not out of box use outputfilename or has wrong default one been sent. 

set fname="ThisHasBeenChanged.pdf"
Set test = ##class(File.EpacsPDF).%OpenId(1)
set tempStream=##Class(%Stream.FileCharacter).%New()
Set sendstream = ##Class(Ens.StreamContainer).%New()
 
set sendstream.OriginalFilename=fname
set sendstream.OutputFilename=fname
Set tempStream= test.document
//Set the stream of the StreamContainer
set tSC= sendstream.StreamSet(tempStream)
set tsc =..SendRequestAsync(..ForwardComponentName,sendstream,0)

Product version: IRIS 2022.1
Discussion (5)2
Log in or sign up to continue