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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Toggle Item appearance help needed

Status
Not open for further replies.

Catadmin

Programmer
Oct 26, 2001
3,097
US
Has anyone tried to change the appearance of the toggle image yet?

The little +/- sign that shows up when something is expanded or collapsed is what I'm talking about. I have the drilldown functionality and the hidden feature and the InitialToggle<whatever> property down pat. What I'd like to do is change the "Initial appearance of the toggle image for this report item" property.

There are, on the bottom of the visibility tab, three choices for this appearance. Expanded (-), Collapsed (+) and Expression. I have a parameter which asks the user if they want the report to initially render as Open (expanded) or Closed (collapsed). The problem I run into is, no matter which way the report opens, the little toggle image looks like a Plus sign (+).

So if the report opens as collapsed, all is good and well, because everyone knows a + sign means you can expand something. But if it opens as expanded, it still has a plus sign. Click the plus sign and it changes to a minus sign while collapsing the detail....

I tried putting an IIF(Param = Open, Expanded, Collapsed) in the expression, but it didn't change the toggle image even though the code appeared to compile fine. I tried it with an IIF(Param = Open, "-", "+"), both with and without the quotes. RS didn't like it without the quotes.

Any ideas?



Catadmin - MCDBA, MCSA
"If a person is Microsoft Certified, does that mean that Microsoft pays the bills for the funny white jackets that tie in the back???
 
Nevermind. Finally figured it out. The IIF() statement requires a True/False value, not an Expanded / Collapsed value.



Catadmin - MCDBA, MCSA
"If a person is Microsoft Certified, does that mean that Microsoft pays the bills for the funny white jackets that tie in the back???
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top