Crystal Report list parameters in main header that is fed into sub report
I have a sub report that user feeds in region, skills and certifications. Skills and Certification parameter are set to multi value to a sub report. Main report uses two views that join to the skills and certification multi value parameters. Those two parameter values are numeric ID but it has description names. I'm trying to set up a global variable that is created in sub report that captures the skills the user selected and / or certification user has selected and in the main report have those selections outputted to the top of the main report. Any assistance would be appreciated.
Crystal Reports
Last Comment
Dave Roger
8/22/2022 - Mon
Mike McCracken
If I understand what you want to do, you would have to put the subreport into the report header.
Subreports are run v ery late in the report creation process so the only way to get the subreport results into another section is if the section appears after the subreport.
mlmcc
Dave Roger
ASKER
After discussion with Business Analyst, it's ok to have skills listed at the bottom of report. After some research, I need to create a global variable and then another formula variable that captures unique skills the user has selected and then create another variable that outputs the latest variable. I believe there is an afterevaluate function.
Dave Roger
ASKER
I mention the afterevaluate because it's ok to have results after the sub report. My Question is still open.
I tried your suggestion and no values came back on report. I created three formulas and 1st on main report with your code and then I went to sub report and created another formula and placed it in details which is suppressed and then back to main report and created third formula to place it in page footer on main report.
Mike McCracken
Try unsuppressing the sub detail section. Suppressing a section sometimes causes the formula to not evaluate
Thanks again guys. It looks like your solutions would have worked too.. We ended up using the SQL stored procedure to do the heavy lifting and have it return the values we need as a single, simpler variable.
Subreports are run v ery late in the report creation process so the only way to get the subreport results into another section is if the section appears after the subreport.
mlmcc