Link to home
Start Free TrialLog in
Avatar of Dave Roger
Dave RogerFlag for United States of America

asked on

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.
Avatar of Mike McCracken
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
Avatar of 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.
I mention the afterevaluate because it's ok to have results after the sub report.  My Question is still open.
SOLUTION
Avatar of Mike McCracken
Mike McCracken

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.
Try unsuppressing the sub detail section.  Suppressing a section sometimes causes the formula to not evaluate

mlmcc
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.