cancel
Showing results for 
Search instead for 
Did you mean: 

Setting the 'Show on (viewer) Panel' property for a parameter

ido_millet
Active Contributor
0 Kudos

In Crystal 2008 designer, the 'Show on (viewer) Panel' property (in the edit parameter dialog) controls whether or not the parameter is shown in the parameter panel.

However, I can't seem to find a way to control that behavior in code from the Crystal 2008 .Net SDK. Can anyone confirm this as a known limitation or point to a relevant method/property?

Thanks,

- Ido

Accepted Solutions (1)

Accepted Solutions (1)

Adam_Stone
Active Contributor
0 Kudos

Hi Ido,

It appears that the property that has this information is read only, so we are limited to only checking to see if it will show up but not able to set it. The ParameterFieldUsage2 property is part of the ParameterFieldDefinition Class. One of the enumerated values will be if it is shown on the panel.

Thanks,

Adam

ido_millet
Active Contributor
0 Kudos

Hi Adam,

That's what I feared. Thanks for confirming it.

Let's hope the development team decides to expose that property in the next release.

Thanks,

- Ido

Former Member
0 Kudos

+1

it would be really nice to set this in code.

on our reports we have a lot parameters we want the user to be able to change. but there is one (account#) that we don't want the to change.

we can (and will) hide this in the design, but it makes it harder to design when you need to change the value for the hidden parameter

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi, Ido;

There is the HasToggleParameterPanelButton option, does that not give what you are looking for?

Cheers,

Jonathan

ido_millet
Active Contributor
0 Kudos

Hi Jonathan,

No, the option you are referring to relates to the GUI of the viewer control.

The option I'm looking for relates to each parameter (whether it shows on that panel).

- Ido