Learn how to a build a cloud-first strategyRegister Now


unexplained error whole toggling visibility

Posted on 2011-05-02
Medium Priority
Last Modified: 2012-05-11

Using SSRS 2008.

This is odd. I'm trying to toggle the visibility of a single row based on a field property of another row in the same table.

Here is my Expression in the Row Visibility section:

Here is my Custom Function:
Public Function ShowRow(ByVal sAction As String) As Boolean
sAction = sAction.ToLower
If sAction = "update" Then
      Return False
      Return True
End If
Return Nothing
End Function

Here is the error:
"The Visibility.Hidden expression for the tablix 'Tablix1' contains an error: [BCS30451] Name 'ShowRow' is not declared.

Any ideas why?

Question by:kalittaair
  • 2
LVL 22

Accepted Solution

Nico Bontenbal earned 2000 total points
ID: 35505031
You need to use:

Author Comment

ID: 35506906
That worked. Strange though. I've got several custom functions in this report but have never had to do that before. Is it because I am referencing fields from another row?

LVL 22

Expert Comment

by:Nico Bontenbal
ID: 35507010
I think it is strange that it works without the Code. sometime. When you read the documentation at:
it clearly states:
Methods in embedded code are available through a globally defined Code member. You access these by referring to the Code member and the method name. The following example calls the method ToUSD, which converts the value in the StandardCost field to a dollar value:

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hi All, I am here to write a simple article to move SSRS (SQL Server Reporting Services) reports from one server to another. When I have faced the same issue to move reports those were developed by developer on development server and now need to …
Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Screencast - Getting to Know the Pipeline
Suggested Courses
Course of the Month21 days, 4 hours left to enroll

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question