Does anybody know how to give a dynamic name to the attachment when using setHeaderValAndParams method?? I store the to-be name of the attachment in a variable (say AttachName=Date). If I write call header.SetHeaderValandParams({attachment;filename=AttachName})the name of the attach is going to be “AttachName” and not the value stored in the variable!Thanks in advanced
Miguel.-
Subject: Problem to set the attach name in setHeaderValandParams method
I’ve never used this particular method, and you don’t state if you’re using LS or Java, but when you’re passing a variable into a function like that, you need to escape the string.
header.SetHeaderValandParams(attachment;“filename=” & AttachName& “”)
Subject: RE: Problem to set the attach name in setHeaderValandParams method
Hi,Thanks for your response. Finally this sentence worked!:
call header.setHeadervalandParams(“attachment;filename=” & attachName)
Thanks a lot