Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ShowDescriptionOnly

Status
Not open for further replies.

nareshreporter

Programmer
Mar 3, 2005
13
US
Hi,
I have a report that a paramter of number type. Default values for this paramter are numerica values where as each value has been set to description. Now im trying to display the description instead of values. I tried using ShowDescriptionOnly property but it is not working.

var param = reportInterface.ReportParameters.Item(i);
var paramName = param.ParameterName;

if(param.EnableShowDescriptionOnly)
{
Response.Write(param.ShowDescriptionOnly);
}

This code didnt work. I tried using paramName.ShowDescriptionOnly. Still no luck. Can anyone help me out.

Thanks in advance
 
First question: Is EnableShowDescriptionOnly a True/False boolean? If it returns Yes/No, your IF will not return success.
Second: Is ShowDescriptionOnly a string property? If it's a True/False boolean, you may not see anything.

The SDK says ShowDescriptionOnly "Determines whether or not only the description of the value is shown when the user must choose a value, or both the value and the value's description."

It also shows a Description property as "Sets the description of the parameter value." This doesn't sound like what you want, but it might work. The SDK is the most obfuscated documentation I have ever worked with, so these suggestion may be of no help at all.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top