If you are unable to create a new account, please email support@bspsoftware.com

 

News:

MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now    Learn More

Main Menu

Active Report - Deselect All for Radio Buttons

Started by chewza, 07 Jun 2019 10:01:52 AM

Previous topic - Next topic

chewza

Hi there

I have a radio button control group controlling a combination chart. All works fine, however:
I have set the default variables to "none" - nothing gets selected, but filters still apply to chart when report first opens
I want a way to "clear" all radio button selections, so that the chart in unfiltered.

I am using the Great Outdoors (Query) package. Attached is the xml of the report spec.

Many thanks!!

Regards
Chris


MFGF

Quote from: chewza on 07 Jun 2019 10:01:52 AM
Hi there

I have a radio button control group controlling a combination chart. All works fine, however:
I have set the default variables to "none" - nothing gets selected, but filters still apply to chart when report first opens
I want a way to "clear" all radio button selections, so that the chart in unfiltered.

I am using the Great Outdoors (Query) package. Attached is the xml of the report spec.

Many thanks!!

Regards
Chris

Hi,

It looks like you are using the radio button group to control a data deck with the chart master/detailed within that? To explain what you are seeing, let's use an analogy. When you use a deck or a data deck, imagine you have a deck of playing cards stacked neatly, face up, in front of you. When you look at the deck, what do you see? The answer is... the top card - whichever happens to be first in the pile. Now let's assume your radio button group is an assistant, who can pick up the deck, shuffle the cards to find the one you ask for then place the deck in front of you once more with the requested card on top. You ask for the three of diamonds, and the assistant moves that card to the top of the pile - so that is what you end up seeing.

With decks/data decks, you will always only see one card at a time. If you haven't asked specifically for a card via your controls, you see whichever card is first in the deck. The trick, then, is to add an extra card the deck which appears at the top of the pile by default when no specific card has been requested. This card can contain whatever you wish it to - for example another combination chart that displays all values.

If you select the data deck object, then open the Properties pane, you will see a "Default Card" property. Enable this, and you will then see an extra tab in your data deck for the default card. You can navigate to this, then drag in a new combination chart and populate it with the values you want to see when no controls are selected.

Cheers!

MF.
Meep!

pacificbeavs

Quote from: MFGF on 11 Jun 2019 07:29:14 AM
Hi,

It looks like you are using the radio button group to control a data deck with the chart master/detailed within that? To explain what you are seeing, let's use an analogy. When you use a deck or a data deck, imagine you have a deck of playing cards stacked neatly, face up, in front of you. When you look at the deck, what do you see? The answer is... the top card - whichever happens to be first in the pile. Now let's assume your radio button group is an assistant, who can pick up the deck, shuffle the cards to find the one you ask for then place the deck in front of you once more with the requested card on top. You ask for the three of diamonds, and the assistant moves that card to the top of the pile - so that is what you end up seeing.

With decks/data decks, you will always only see one card at a time. If you haven't asked specifically for a card via your controls, you see whichever card is first in the deck. The trick, then, is to add an extra card the deck which appears at the top of the pile by default when no specific card has been requested. This card can contain whatever you wish it to - for example another combination chart that displays all values.

If you select the data deck object, then open the Properties pane, you will see a "Default Card" property. Enable this, and you will then see an extra tab in your data deck for the default card. You can navigate to this, then drag in a new combination chart and populate it with the values you want to see when no controls are selected.

Cheers!

MF.

I was just reading through this, and wanted to ask another question.  Would you then add another radio button for this default card, or will it only show up upon first running the report?  My assumption is that once you click a radio button value, then the default card would never show up again... correct?

MFGF

Quote from: pacificbeavs on 11 Jun 2019 10:42:26 AM
I was just reading through this, and wanted to ask another question.  Would you then add another radio button for this default card, or will it only show up upon first running the report?  My assumption is that once you click a radio button value, then the default card would never show up again... correct?

Hi,

The default card will display when all the active report variables controlling the data deck (or deck) are empty. Once you set a value into a variable, the data deck will then display the corresponding card. You can add another control to the report to unset the variable or variables, and using this would then force the default card to re-appear. Something along the lines of an "All Values" button :) Also be aware that a single control can do multiple things - in the past I have had a control that works to set values for a higher-level deck, and using this control also unset the variable for my data deck (eg a deck with two cards - Sales and Marketing, each card containing a data deck for sales-related and marketing-related data. When switching from the Sales to the Marketing card, my report unset the variable controlling the data decks).

Cheers!

MF.
Meep!