Hi again,
I am looking at this scenario:
Want to run two or more reports using radio buttons.
This is what I am thinking (to test it out)
Create 2 reports, each placed in a separate Report Page.
Create a Value Prompt on the prompt page, with values 'Run Report 1' and 'Run Report 2'
Reference the selected report by referencing the Report Page in the Prompt(?)
Then convert the UI to a Radio Button Group.
The alternative, is to use JavaScript.
Does this sound doable?
Thanks again for any suggestions.
Hi,
I'd be tempted to use a single-page report with a conditional block, displaying either one "report" (list, crosstab, chart etc) or the other. The conditional block could then be driven by a boolean variable based on the selection from the value prompt on the prompt page (with two static choices).
MF.
Thanks MF,
I didn't think of that angle (using conditional block). But, what if (which is what I will wind up with in the end), I have 4 reports?
Will a conditional block be able to handle 4 report alternatives? And can this be converted to a radio button group?
Hi,
No - a conditional block will handle only two outcomes.
What about creating a report with four separate report pages and adding a Table of Contents on an introductory page to allow the user to navigate straight to the desired report page?
MF.
Thanks again MF,
I had actually thought of that. But a TOC seems like an overkill in this case, and the requirement is a radio button group (not even a dropdown).
QuoteNo - a conditional block will handle only two outcomes.
Is this true? Coz' I have used Conditional blocks to display upto 6 various report types. The only thing, you have to use a String variable to drive the Conditional block. Please correct me if I am wrong.
no, a conditional block can handle several states of a report variable. It depends on the report variable definition.
If a report variable (type of string) has n possible results then the conditional block based on this variable can handle max. n+1 conditions.
Yes - I stand corrected. Mental note to self - check your facts before posting, MF! :-[
You can create Render variable and assign the values to selected Radio Button values which takes you to the report you want based on the selection.
Thank You
Bloom.
I actually prefer the solution of multiple pages over conditional blocks because with conditional blocks it's not always apparent when you open a report that there are hidden objects (the conditions that aren't the default).