Hi lbass, great feedback. Up for helping another?
We are trying to keep our report running efficiently by putting all the logic in stored procedure (all filtering). Trying not avoid putting the global filtering in the report itself.
Linking an EventID subreport parm to a formula field in main report (that is set to a constant), to force EventID value for subreport WITHOUT prompting user. We definitely don't want to prompt user because each subreport has a different forced EventID value, and can't just set a single value in main report.
When you link subreports using regular parm (subreport) to parm (main report) linkage, the subreport shows up just fine. I also need to display a Shared Variable that I set up in subreport in the main report. I have it working when I link subreport using regular parm-to-parm linkage.
But, as soon as I change linkage to parm-to-formula (parm in subrpt, formula field/constant in main)... which was Crystal's actual suggestion on how to force parm values without prompting users in their Knowledge Base... the subreport shows nothing. It appears blank, and you have to double click on the blank box to get into the subreport. Therefore, it also does NOT RETURN any useful information, including the shared variable back to main report.
Do you know how to utilize this PARM-TO-FORMULA technique (parm in subreport, formula in main) or another method of forcing parm values, AND make the subreport APPEAR to the main report so it recognizes shared variables, etc?
Please help. THANKS SO MUCH!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PARM/FORMULA INFORMATION:
Subreport: EventID parm = number type
Main report: Event ID formula = ToNumber(5004)
The formula should have worked with just the 5004 constant, but wanted to ensure that crystal used it as number, not string.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
We are trying to keep our report running efficiently by putting all the logic in stored procedure (all filtering). Trying not avoid putting the global filtering in the report itself.
Linking an EventID subreport parm to a formula field in main report (that is set to a constant), to force EventID value for subreport WITHOUT prompting user. We definitely don't want to prompt user because each subreport has a different forced EventID value, and can't just set a single value in main report.
When you link subreports using regular parm (subreport) to parm (main report) linkage, the subreport shows up just fine. I also need to display a Shared Variable that I set up in subreport in the main report. I have it working when I link subreport using regular parm-to-parm linkage.
But, as soon as I change linkage to parm-to-formula (parm in subrpt, formula field/constant in main)... which was Crystal's actual suggestion on how to force parm values without prompting users in their Knowledge Base... the subreport shows nothing. It appears blank, and you have to double click on the blank box to get into the subreport. Therefore, it also does NOT RETURN any useful information, including the shared variable back to main report.
Do you know how to utilize this PARM-TO-FORMULA technique (parm in subreport, formula in main) or another method of forcing parm values, AND make the subreport APPEAR to the main report so it recognizes shared variables, etc?
Please help. THANKS SO MUCH!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PARM/FORMULA INFORMATION:
Subreport: EventID parm = number type
Main report: Event ID formula = ToNumber(5004)
The formula should have worked with just the 5004 constant, but wanted to ensure that crystal used it as number, not string.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~