I have a report that contains a variable that accepts a value from the user. When the report runs the user is able to enter the value and submit to the report. The report is then updated and displays the value entered by the user, however, when they choose to print the report the user value is not on the printed report.
This worked in a previous version, 2024.4.3, but does not work in 2025.1.4.
Is there a known bug surrounding this feature or a change I need to make on my end to handle this?
Request from user variable on displaying on print
-
- Posts: 7333
- Joined: Tue Mar 20, 2018 5:34 am
Re: Request from user variable on displaying on print
Hello,
Please send us a sample report with test data that reproduces the issue for analysis.
Thank you.
Please send us a sample report with test data that reproduces the issue for analysis.
Thank you.
Re: Request from user variable on displaying on print
Hey, thanks for getting back with me. I don't think sending a sample report will help. This issue is not reproducible in the Designer - Preview, only when running the report and then attempting to print.
We are using a custom cache helper in our project and to resolve this issue I had to comment out the following lines in the GetReportInternal method in the StiCacheHelper class:
if (CacheMode == StiServerCacheMode.StringCache || CacheMode == StiServerCacheMode.StringSession)
{
cacheGuid = GetReportCacheGuid(requestParams, GUID_ReportTemplate);
report = GetReport(cacheGuid);
}
Once those lines are commented out the report is printed correctly. This doesn't seem to have any side effects.
We are using a custom cache helper in our project and to resolve this issue I had to comment out the following lines in the GetReportInternal method in the StiCacheHelper class:
if (CacheMode == StiServerCacheMode.StringCache || CacheMode == StiServerCacheMode.StringSession)
{
cacheGuid = GetReportCacheGuid(requestParams, GUID_ReportTemplate);
report = GetReport(cacheGuid);
}
Once those lines are commented out the report is printed correctly. This doesn't seem to have any side effects.
-
- Posts: 7333
- Joined: Tue Mar 20, 2018 5:34 am
Re: Request from user variable on displaying on print
Hello,
Without a sample it is difficult to say why it happens in your case. Sorry.
Thank you.
Without a sample it is difficult to say why it happens in your case. Sorry.
Thank you.