Skip to main content

Hello!

I want to create a report with a dynamic title containing the date. I saw this post: Create report with dynamic file name | Thinkwise Community, and followed the steps proposed, but I get the following error: 

It seems like it does not just sets the filename to the value specified in the default, but the entire path. How can I keep the path the same (in user’s documents folder), while setting only the filename? 

Hello Sven,

It's been a while for me personally since I have attempted anything in a situation like this one.

I assume you have already implemented a default that creates the ‘testnaam.pdf’ file for the report, judging from your screenshot. Have you tried including the path in the default? I am not entirely sure whether this works or not, and I also don't have any working examples to inspire me, unfortunately. But it might be worth a shot. If not I can ask around to find out if there's someone who knows more about this than me 😅

@Erwin Ekkel Do you perhaps have some additional insights?

Kind regards,

Renée


@Renée Evertzen Hi Renée! The problem with hardcoding the path in the default is that the path is dependent on the user logging in, as it has the name of the user in it. So I'd prefer if there would be another option where you only have to specify the filename.

Kind regards,

Sven


Well technically you do know which user is currently logged in in the default procedure. Perhaps you can fix it through that?

Otherwise I am afraid I will have to tell you that the goal you're trying to achieve might not be possible, at least not currently.


Reply