COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Active Reports => Topic started by: sujitgouda on 11 Jul 2014 09:04:53 AM

Title: Can we default a static tab control.
Post by: sujitgouda on 11 Jul 2014 09:04:53 AM
Is it possible to default a static tab control to a particular value.

I have 3 tabs namely; Advisor| Branches| Prior Day

I am using Cognos 10.1.1, right now it is getting defaulted to 1st tab. Can I make it defaulted to 3rd instead ?
Title: Re: Can we default a static tab control.
Post by: MFGF on 11 Jul 2014 10:35:35 AM
Quote from: newb2cog on 11 Jul 2014 09:04:53 AM
Is it possible to default a static tab control to a particular value.

I have 3 tabs namely; Advisor| Branches| Prior Day

I am using Cognos 10.1.1, right now it is getting defaulted to 1st tab. Can I make it defaulted to 3rd instead ?

Yes, you can do this.

If the tab control isn't already setting a variable, do the following:

Press the Interactive Behavior button next to the tabs
In the "Behavior on Select" section (Set Variable Values), press the Edit button
When the Set Variable Values dialog appears, use the Create a New Variable link. Define a variable name and set the default value to be Prior Day
Using the dropdown, set the Value of the variable to be Label, then press OK to the Set Variable Values dialog.
In the Reaction Behavior section (Container Select), press the Edit button
In the Condition Comparison dialog, make sure Label is selected on the left, the 'in' operator is selected in the middle, and your new variable is selected on the right.
Press OK then OK again then OK a third time.

Save the report and test...

Cheers!

MF.
Title: Re: Can we default a static tab control.
Post by: sujitgouda on 11 Jul 2014 10:51:41 AM
It worked. I had not assigned the default value, though did add the interactivity.

Thanks.