COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: Prakash Bhai on 22 Apr 2010 05:11:21 AM

Title: Selection Criteria
Post by: Prakash Bhai on 22 Apr 2010 05:11:21 AM
Hi,
In the main Report page i have 2 radio buttons and 2 cross tabs.
1st radio button has (Day,week,month)
And 2nd Radio button i have ( Emp & Dept)
And 1st cross tab is having Emp related data
And 2nd cross tab is having  Dept related data.

          My question is, Based on 1st radio button selection and 2nd radio button selection,desired cross tab has to appear (For eg: If i click day and emp. Emp cross tab has to come or day and dept, dept cross tab has to appear.
If u know any ans pls reply
Title: Re: Selection Criteria
Post by: Sreeni P on 23 Apr 2010 03:00:56 AM
gimme some more clarification in brief
Title: Re: Selection Criteria
Post by: Prakash Bhai on 23 Apr 2010 03:12:48 AM
Based on 1st and 2nd radio button prompt selection..

I need a cross tab which has day/week/month in rows and emp or dept in cols
Title: Re: Selection Criteria
Post by: MFGF on 23 Apr 2010 03:30:17 AM
Hi,

as I see it, your two main options are:

a) Create one large crosstab with Day, Week and Month stacked below each other in the rows area and Emp and Dept stacked next to each other in the columns area, then conditionally hide the parts you do not wish to be visible, or
b) Create 6 crosstabs to cover each combination of Day/Week/Month and Emp/Dept, and conditionally render the appropriate one using a conditional block.

Regards,

MF.
Title: Re: Selection Criteria
Post by: Prakash Bhai on 23 Apr 2010 05:20:59 AM
Hi MF,
As per ur guidelines i am getting desired results for 1 radio button. With 2nd radio button, No change in the crosstab
Title: Re: Selection Criteria
Post by: MFGF on 23 Apr 2010 05:31:18 AM
How have you coded your expression to drive the conditional rendering?
Title: Re: Selection Criteria
Post by: Prakash Bhai on 23 Apr 2010 06:05:18 AM
Hi MF,
I have used a string variable and have mentioned paramdisplayvalue('Selection criteria')
And based on this, I have created static variables...
Title: Re: Selection Criteria
Post by: MFGF on 23 Apr 2010 06:23:11 AM
Sorry - that doesn't really tell me what you have done.

Your expression will need to take account of the values set by the parameters from both radio button prompts, and set the outcome appropriately.  You can then use this outcome to drive the conditional block (or conditional hiding).

MF.