Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4002158
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T07:59:31+00:00 2026-05-20T07:59:31+00:00

Within SQL Server 2005 Reporting Services I am attempting to evaluate an expression which

  • 0

Within SQL Server 2005 Reporting Services I am attempting to evaluate an expression which outputs an array which I attempt to pass to my VBScript code with my report.
My parameter values are
BU
MC
CD
DU

The join function correctly outputs the string BU-MC-CD-DU
I then use the split function within an expression to split the values and output as an array as such

 =Split(join(Parameters!ReportType.Value,"-"),"-",-1,1)

After which I then pass the array to my VBScript code within the report using the expression below within a textbox :

=Code.debugReportVisible(Split(join(Parameters!ReportType.Value,"-"),"-",-1,1))

My VBScript function is as follows

function debugReportVisible(pSelectedReports() ) as String
  dim debug as String
  debug = CStr(pSelectedReports(0))
end function

The code does not error but no value is displayed in the textbox.. Can someone tell me why this is?

Many Thanks,

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T07:59:31+00:00Added an answer on May 20, 2026 at 7:59 am

    So I ended up just passing the the hypen (-) seperated string to the ‘isReportVisible function’ from my join expression defined for the hidden property of each subreport (for e.g the BU sub report visibility hidden expression is as below)

    =Code.isReportVisible(join(Parameters!ReportType.Value,"-"),"BU")  
    
    function isReportVisible(pSelectedReports as String, pSubReport as String) as Boolean
          dim hidden as Boolean
          dim reportArray
          dim counter
          hidden = true
          counter = 0
          reportArray= Split(pSelectedReports,"-")
          for counter = 0 to UBound(reportArray)
          If reportArray(counter) = pSubReport Then
          hidden = false
          End If
        Next
          return hidden 
        end function
    

    Hope this helps someone….

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Within our Active Directory domain, we have a MS SQL 2005 server, and a
Within SQL Server Integration Services (SSIS) there is the ability to setup a connection
I have stored procedures in SQL Server T-SQL that are called from .NET within
If have created a custom role within SqlServer which I added to the db__denydatareader
My stored procedure is called as below from an SQL instegartion package within SQL
For Asp.net web applications, is it best to: trap errors within sql stored procedures
I have a result set in MS-SQL within a stored procedure, and lets say
SQL to find duplicate entries (within a group) I have a small problem and
What SQL can be used to list the tables, and the rows within those
I was wondering if there was a way to use find_by_sql within a named_scope.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.