Ssrs 2008 r2 display of url value

In an existing SSRS 2008 R2 application, the users will be clicking on url links to access help documents that are in a PDF
format. When the user hovers over the tab in the browser, the actual web url is listed. My company thinks this can be a secruity
problem.
Thus my question in an SSRS 2008 R2 report, is there a way to hide the real link of where the PDF document is located at? Basically is there a way to hide the real url and/or just display a url that does not really exist? If so, can you show me code on how
to accomplish this goal?

Hi Wendy,
Based on my test, if we are use below expression, it will not list the URL.
="javascript:void(window.open('http://test1.op.org/ReportServer/Pages/Resource.aspx?%2fboards%2fImages%2fHS.pdf'))"
I found a work around for your previous case, please refer to the expression below:
="javascript:void(window.open('” & Globals!ReportServerUrl & “/Pages/Resource.aspx?%2fboards%2fImages%2fHS.pdf'))"
If you have any questions, please feel free to let me know.
Regards,
Alisa Tang
If you have any feedback on our support, please click
here.
Alisa Tang
TechNet Community Support

Similar Messages

  • Ssrs 2008 r2 display only final total amount

    In an existing ssrs 2008 r2 report, I want the final grand total to appear as the last amount displayed in the SSRS report.
    In the 'main' matrix of the report, I have created an outside group row below the last line of the matrix.
    The expresion for this statement looks the the following:
    ="Grand Total: $"+str(sum(cdec(Fields!TransactionAmount.Value),"datasetname")).
    The total amount is correct, but this total amount line appears after every control break. Basically the amount appears every
    time the control break changes by date, teacher, or student number.
    The extra row I added does contain grouping references to date, teacher, and student number. Thus to solve my problem:
    1. Can you tell me how to remove the grouping references to date, teacher, and student number so that the last row will be the only place the total amount will be displayed?
    2. If the above is not an option, can you tell me how to add an extra row to the 'main' matrix so the report groupings do not appear on the final total line?
    3. If the above 2 choices are not an option, would you tell me how to add the final total line in the final report footer and/or any place you believe the final total amount will appear only one time?

    Hi Wendy,
    According to your description, you want to add a row into your matrix to get the total value of TransactionAmount. This can be final total value which appears only one time in your matrix. Right?
    In this scenario, the reason why the total amount line appears after each break change (data, teacher..) because this total amount line is still within the parent group. I guess you didn't add the outside group row on the top parent group. So we just need
    to right click on the textbox which is top parent group, insert a row outside of group. Then put your expression into the added row. Now the total amount will appear only one time in the matrix. It looks like below:
    Reference:
    Understanding Groups (Report Builder and SSRS)
    If you have any feedback on our support, please click
    here.
    Best Regards,
    Simon Hou 

  • Write PL/SQL query from SSRS 2008

    Hello,
    I've need of writing the following statement as query or procedure within SSRS 2008(SQL Server Reporting Services 2008) to query Oracle data.
    IF :PARAMETER1 = 1
    SELECT A1,B1,C1 FROM TABLE1
    INNER JOIN TABLE2 ON TABLE2.X = TABLE1.X
    INNER JOIN TABLE3 ON TABLE3.Y = TABLE1.Y
    WHERE TABLE1.FIELD1 = :PARAMETER1
    ELSE IF :PARAMETER1 = 0
    SELECT A1,B1,C1 FROM TABLE1
    INNER JOIN TABLE2 ON TABLE2.X = TABLE1.X
    WHERE TABLE1.FIELD1 = :PARAMETER1
    Can someone please help since I am trying to write query with IF ELSE statement or block from SSRS 2008?
    Brief scenario - I'm trying to query data from Oracle db by using Oracle data source connection(11g client) from SSRS 2008 to display on SSRS report.
    Thanks,
    JS.

    user1378136 wrote:
    Thank you for the tip and sample snippet as you mentioned it may not work, it did not work.
    Probable I did not ask the question right way. Let me ask you this. If I were to write SQL or PL/SQL (which ever is required because of IF condition) to query Oracle DB how do I do below mentioned statements,
    IF condition = true
    do something.....
    Else IF condition = false
    do something.....
    Thank you,
    JS.Typically i'd create a function that returns a ref cursor for something like this (on the Oracle database you need to query) and then call that from wherever it is required.
    create or replace function get_some_data
       p_PARAMETER1   number
    return sys_refcursor
    is
       some_ref_cursor   sys_refcursor;
    begin
       IF p_PARAMETER1 = 1
       then
          open some_ref_cursor for
             SELECT A1,B1,C1 FROM TABLE1
             INNER JOIN TABLE2 ON TABLE2.X = TABLE1.X
             INNER JOIN TABLE3 ON TABLE3.Y = TABLE1.Y
             WHERE TABLE1.FIELD1 = 1;
       ELSIF p_PARAMETER1 = 0
       then
          open some_ref_cursor for for
             SELECT A1,B1,C1 FROM TABLE1
             INNER JOIN TABLE2 ON TABLE2.X = TABLE1.X
             WHERE TABLE1.FIELD1 = 0;
       end if;
       return some_ref_cursor;
    end get_some_data;
    /So you'd return a pointer to 1 of 2 queries via this function, and the client would process it accordingly.

  • Ssrs 2008 want parameter default values to display

    In an ssrs 2008 report, I want to add a parameter called Processed and have default values set so the
    user does not have to select the parameters. The problem is the default parameters are not preselected
    when the report is executed.
    The following is the query for the dataset that is used for the parameter called Processed. This
    is used under available values.
    select DISTINCT IsNull(Processed,'') as Processed,
    CASE IsNull(Processed,'')
      WHEN 0 then 'Non Processed'
      WHEN 1 then 'Processed'
      END AS label
    FROM [Items]
    where Processed in (0,1)
    order by label
    The default values are set to 0 and 1.
    The column called Processed as defined as 'bit'.
    Thus can you tell me what you think could be wrong? Do I need to specify the bit values as
    something else? If so, how should I refer to the values for bit?

    Hi wendy,
    According to your description, this issue can be caused by the values returned by the query. We can try to execute the query in Query Designer to check which values will be returned. Maybe it only returns one value (0 or 1). Then the available values for
    the Processed parameter have only one value. So the default values will not be preselected when the report is initially run.
    Besides, we can also try to use the same query as the default values for the parameter to check the issue again.
    Hope this helps.
    Thanks,
    Katherine Xiong
    If you have any feedback on our support, please click
    here.
    Katherine Xiong
    TechNet Community Support

  • Ssrs 2008 r2 using parameter values

    In an existing ssrs 2008 r2 report, I have a requirement from a user where they want to add 2 more parameters to the report. Right now there is an option where the user can choice to generate report1, report2, report3, report4, report5, report6, report7,
    report8, and/or any combination of the reports I just listed.
    This is setup by using an expression in the visibility property for each of the 8 tablixes.
    For your information, the following is an example of how to display one of the reports or not:
    =iif(InStr(join(Parameters!report.Value,","),6)>0,false,true)
    Now the user wants to be able to add the parameters of customer and inventory_item based upon if report7 and/or or report8 is selected.
    Now can you tell me the following:
    1. Would you show me the code I can use in the dataset to select report7 and/or report8?   
     2. If the above is not possible to select specific reports, then would the dataset query need to look something like: where @report is null or where @report is not null? What would you suggest?

    Hi midnight_car,
    According to your description, you have specified visibility for each tablix in a report with IIF() function. When you select 7 or 8, you want to add an additional parameter to filter displayed tablixes, right?
    In Reporting Services, since we can’t specify the visibility of a parameter as an expression, we could add a cascading parameter. When the first value is 7 or 8, then selected values from the cascading parameter can filter the displayed tablixes. Please
    refer to steps below:
    1. Sample data.
    2. Create a new dataset with the query below:
    select distinct SalesTerritoryRegion as region from dbo.DimSalesTerritory
    where SalesTerritoryRegion=
    case when 3 in (@report)or 4 in (@report)
    then SalesTerritoryRegion
    else 'NA' end
    3. Specify the parameter @region using the new dataset.
    4. Query in main dataset like below:
    select SalesTerritoryRegion as region,SalesTerritoryCountry as country,SalesTerritoryGroup as [group] from dbo.DimSalesTerritory
    where SalesTerritoryRegion= case when 3 in (@report) or 4 in (@report)
    then @region
    else
    SalesTerritoryRegion end
    4. Preview the report.
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • Ssrs 2008 r2 use 'Globals!ReportServerUrl in url

    In a SSRS 2008 R2 report, I am able to have the users open a pdf document in a new window by using the following code in the action field of a textbox property:
    ="javascript:void(window.open('http://test1.op.org/ReportServer/Pages/Resource.aspx?%2fboards%2fImages%2fHS.pdf'))".
    My goal is not to hard code the url path. I would like the url path to be dynamic based upon which report server the ssrs report is running from.
    Basically I would like to replace the
    http://test1.op.org/ReportServer with the Globals!ReportServerUrl variable that report server has a available.
    I would like to replace the above expression with the following:
    ="javascript:void(window.open('Globals!ReportServerUrl/Pages/Resource.aspx?%2fboards%2fImages%2fHS.pdf'))". However this expression does not work.
    Thus can you tell me how to use the Globals!ReportServerUrl ssrs item with the javasctript window open statement so that the expression works correctly?

    Hi Wendy,
    If we are put Globals!ReportServerUrl expression in the “”, in Reporting Services, it will recognize it as a string data. So, it cannot display as report server URL.
    Please refer to the following expression:
    = Globals!ReportServerUrl & “/Pages/Resource.aspx?%2fboards%2fImages%2fHS.pdf”
    If you have any questions, please feel free to let me know.
    Regards,
    Alisa Tang
    If you have any feedback on our support, please click
    here.
    Alisa Tang
    TechNet Community Support

  • Ssrs 2008 r2 parameter values

    In a new ssrs 2008 r2 report, I need to display 2 of the parameter values in the heading of the report. One of the parameter values in the name and customer number. The second heading value is the city and state where the particular customer is located at.
    The customer table has the following values:
    a. cust_id int primary-id,
    b. customer_name varchar(50),
    c. cust_address1 varchar (50),
    d. cust_address2 varchar (50),
    e. cust_city_state varchar(40),
    f. cust_zip_providence varchar(30),
    g. cust_country varchar(30).
    Thus I need to place the  paramter values of customer_name and cust_city_state that are obtained from a dropdown list in the heading.
    when I try =first(customer_name) in the heading, the value is only good for the first customer name. After that, the wrong parameter value is displayed.
    Thus can you tell me and/or show me code of what I can do to place the parameter values
    of customer_name and cust_city_state in the heading of the report?

    Follow below steps,
    1. Create 3 Data set.
     DS1 = select * from customertable
     DS2 = select distinct customer_name from customertable
     DS3 = select distinct cust_id from customertable
    2. Add two parameter, customer name and customer number
     --------parameter 1
     - supply Name property for 1st parameter
     - datatype for the parameter is string
     - Available value property, Select dataset DS2, Select Field Value as "Customer_Name"
     --------parameter 2
     - supply Name property for 2st parameter
     - datatype for the parameter is string
     - Available value property, Select dataset DS3, Select Field Value as "Cust_id"
    3. Add a blank tablix/table.
     -- Select TableRow2 and right click to add new group i.e insert group.
     -- Group properties window will be openned,
     -- Select Group On Expression 1st.
     -- Select the parameter(Parameter1/customer name) by double clicking in the expression window
     -- Select Group On another Expression 2nd.
     -- Select the parameter(Parameter2/Cust Id) by double clicking in the expression window
     -- Now in the general tab you need to checked "Repeat Group Header"
     -- press ok to close the group properties window.
    4. Now from DS1 drag the field City and State in TableRow3 columns.
    5. Drag the Customer Name and Customer Id/Number in TableRow1.
    6. In case if First(Fields!CustomerName) appears then remove First function as simply "Fields!CustomerName". Similarly for Customer Number.
    7. Finally we need to set the filter condition of the table property. Open the table property by right clicking. On the "Filter" tab choose the expression as "Fields" items and double click "CustomerName" to add in the expression. Similarly add second
    field "CustomerNumber" in the expression. Check the operator "=" and choose the value as "Parameter" items respectively.
    Regards, RSingh

  • Ssrs 2008 r2 black line incorrectly being displayed

    In an existing SSRS 2008 r2 report, I just added a page header so that I can display global values in the page header like run date, run time, and page number. Within the report header, I placed all the report header data within a rectangle. Now when I run
    the report, there is a black line appearing after the report header but before the details of the report.
    I have changed all the border colors to be white and the borderstyle to none. The black solid line between last part of report header to before the detail data keeps appearing.
    Thus can you tell me how to keep this black line from end of pageheader or rectangle to before the detail data from appearing?

    Hi wendy,
    According to your description, I taken a simple test in my local environment (SSRS 2008R2). In my scenario, I insert a page header in the report, then use a rectangle to contain all the items (such as global values) within the page header after creating
    a table in the report body. While everything goes well, and there is no such a black line between page header and report body.
    As per my understanding, may be you have set the BorderColor property to Black and BorderStyle to Solid of Page header or Rectangle or Report Body. So we can double check those item properties in the report.
    If this issue still exists, could you please post the .rdl file and your dataset with sample datato us by the following E-mail address?  It is benefit for us to do further analysis.
    E-mail: [email protected]
    Thanks,
    Katherine Xiong
    If you have any feedback on our support, please click
    here.
    Katherine Xiong
    TechNet Community Support

  • Ssrs 2008 r2, select more or more or none of the above values

    In an an existing SSRS 2008 r2 report, I want to have a parameter called @hair where the user
    can see if the customer purchased one of the following items:
     1. hair spray,
     2. hair shampoo,
     3. Hair color,
     4. hair conditioner, or
     5. No hair product purchased.
    The table is called inventory and the values for the field called hairproduct are
     1. hair spray = 'HR',
     2. hair shampoo = 'HS',
     3. hair color = 'HC',
     4. Hair conditionier = 'HD',
     5. If hair product is not purchased hairproduct value is null. This is due to
        the inventory table contains columns like hairproduct, eyeproduct, faceproduct. If a
        particular product is purchased, the column will contain a value. If a customer purchases
        all 4 hair products and 3 eyeproducts, and 9 faceproducts, the inventory table will contain
        16 columns for a particualr customer. 
    In the parameter window, I can use the following to have the correct values be displayed in the
    selection window:
    SELECT DISTINCT IsNull(inventory.hairproduct,'') as hairid,
    CASE IsNull(inventory.hairproduct,'')
    WHEN 'HR' then 'hair spray'
    WHEN 'HS' then 'hair shampoo'
    WHEN 'HC' then 'Hair color'
    WHEN 'HC' then 'hair conditioner'
    WHEN '' then 'No hair product purchased'
    FROM Inventory
    **Note the @hairproduct parameter allows blank values and allows multiple values.
    However in the main query for the ssrs 2008 r2 report, I am not certain how I would change the following statement to select 'No hair product purchased'.
    The current select statement looks like the following:
    select customer_id,hairproduct
    from inventory where customer_id = @customerid
    hairproduct in (@hairproduct).
    Basically I need to change the main query, dataset that matches the parameter @hairproduct, or possibly add a new parameter that means 'No hair product purchased' to report on the customer that has one or more hair products purchased or none.
    Thus can you tell me and/or show me sql that will solve my problem?

    Hi there,
    Can you modify the no hair product purchased to a special code?  Eg. NP.
    Then something like this may work (though it may be a bit slow)
    select customer_id,hairproduct
    from inventory where customer_id = @customerid and
    (hairproduct
    in (@hairproduct)  and (patindex(@hairproduct,'%NP%') = 0) 
    OR ( (patindex(@hairproduct,'%NP%')
    > 0)  and customerid not in (select customerid from inventory where
    customer_id = @customerid where hairproduct is not null)
    cheers,
    Andrew
    Andrew Sears, T4G Limited, http://www.performancepointing.com

  • Ssrs 2008 export to csv file display issue

    In a new SSRS 2008 report, I would like to know if there is a way to automatically expand the width of some of the rows when the data is exported to a CSV file so the data is displayed correctly. Here are examples that I am referring to:
    1. In one column where there is suppose to be a date that looks like 12/11/2014, the value of ########## is displayed. The value of 12/11/2014 is what is setup in the SSRS formatting option.
    2. In a number field that is suppose to look like 6039267049 the value that is displayed is 6E+09.
    Basically if I manually expand the width of the columns that I am referring to above, the data is displayed correctly. Thus can you tell me what I can do so that the data is disaplayed correctly in the CSV file and ther user does not need to manually expand
    the column to see the data?

    Hi wendy,
    After testing the issue in my local environment, I can reproduce it when use Excel to open the csv file. As per my understanding, there is no width when we export the report to csv, Excel is just using the default cell sizes when we open the csv. So when
    a date value is wider than the default cell size, it would be displayed as ##########. When a number value is wider than the default cell size, it would use Scientific format.
    As to the date value, we can use the expression =cstr(Fields!Date.Value) to replace the former one =Fields!Date.Value. In this way, the width of the value is narrower than the default cell size, so that the date value can be displayed correctly. For the
    number value, it already narrow down the width with Scientific format. Or we can Select all the cells in the csv file, then click Format| AutoFit Column Width to change all the cells width to fit its corresponding values in Excel level.
    Besides, we can try to export to excel instead of csv. Excel format can inherit the column width in the report. So in this way, we can directly change the width to fit the values in Reporting Services level.
    Hope this helps.
    Thanks,
    Katherine Xiong
    If you have any feedback on our support, please click
    here.
    Katherine Xiong
    TechNet Community Support

  • Ssrs 2008 r2 tablix is displaying when visibility is set to hide

    In an SSRS 2008 r2 report, I have an existing report that if the grade level is from 01 to 03, one tablix is displayed. If the grade level > 03, the other tablix is displayed.
    Now in the tablix for grade levels 01 through 03, I have placed several rectangles onto the tablix for better control of some new textboxes. I have set the property of some of the new textboxes so can not grow and can not shrink. I have not yet placed rectangles
    onto the tablix for grade levels > 03.
    Currently when I run the report for grade level 04, the tablix for grade levels 01 to 03 does not display. However there is a blank space on the SSRS report where grade levels 01 to 03 would display.
    The tablix for grade level 04 does display.
    Thus can you tell me what what to check on so the blank space for where tablix for grades 01 to 03 does not display when I want to generate the report for grade 04?

    Hi wendy,
    Based on my research, if we directly hide a tablix, it would only hide the data but the tablix frame is remained. If we hide the tablix with expression, it would be hidden completely. This is by design. In your scenario, it seems that the tablix hide with
    expression. So I guess maybe you are using a rectangle contain the tablix, and there are other items in the rectangle. Or there are some space between the tablix and the later items, so there are some blank space on the report when run the report for grade
    level 04.
    If there are any misunderstanding, please elaborate the issue for further investigation.
    Thanks,
    Katherine Xiong
    If you have any feedback on our support, please click here. 
    Katherine Xiong
    TechNet Community Support

  • Ssrs 2008 r2 pass mutiple values to stored procedure that is being called

    In an SSRS 2008 r2 report, I am currently calling a stored procedure called spRoom. I obtain the results of the stored procedure by creating a  temptable called #roomReults
    The temp table that I am creating and using to obtain results looks like the following:
    CREATE TABLE #roomResults(
                     studentID VARCHAR(15),
       endYear SMALLINT,
                     calendarID INT) 
    INSERT  #roomResults
           EXEC [dbo].[spRoom] @endYear, @calendarID 
    Currently I am only passing in one value for both paramters called: @endYear and @calendarID. However now I want to pass
    in several values to each parameter.
    I want to change the sql to look like the following:
     EXEC [dbo].[spRoom] IN (@endYear), In (@calendarID)
    The above gives me syntax errors.
    Thus I am wondering if you can show me how to change the sql listed above so that that I can pass in more than one value from the SSRS report parameters called @endYear and  @calendarID to the stored procedure called [spRoom]?

    Wendy
    What version  are you using? Since SQL Server 2008 we  can use table valued parameter
    Create a user-defined data type with a single column.
    Develop a procedure with a table variable as an input parameter.
    Declare a table variable of the type of the user defined data type.
    Loading 10 records into the table variable and pass the table 
    variable to the stored procedure.
    create type tt_example AS TABLE
     (spid int)
    go
    create procedure usp_example
     @spids tt_example READONLY
    AS
     SELECT *
     FROM @spids
    GO
    declare @spids tt_example
    insert into @spids
    select top 10 spid
    from sys.sysprocesses
    exec usp_example @spids=@spids
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Ssrs 2008 r2 pass paramter value to a sort

    In a new SSRS 2008 r2 report, I am going to be using sql within a dataset and not a stored
    procedure since will I need to pass multiple values to each parameter.
    One of the parameters that I will be working with is allowing the user to be able to pick what items
    they want to sort on. The sort will have 3 items that will be always be sorted on first which are:
    year, and school_number.  The users will be able to pick additional items to sort on like grade, and teacher.
    The following is the sql that I have so far:
    select year,  school_number, grade,teacher,room,course_number, course_name
    from dbo.school
    order by  year,  school_number, several parameter values.
    Thus I am wondering if you would modify the sql above so that I can allow the user to sort on the additional parameters in any order like grade,teacher,room,course_number, course_name?
    If any part of my request is not possible, I am wondering if you would show me what is possible in the sql?

    Hi jazz_dog,
    According to your description, you want to sort the report by grade,teacher,room,course_number or course_name based on a parameter selection. If in this case, we can add an expression in sorting to achieve your requirement:
    Add a parameter named Sort with the available values below to the report:
    Label: grade                                       Value: grade
    Label: teacher                                     Value: teacher
    Label: room                                        Value: room
    Label: course_number                         Value: course_number
    Label: course_name                            Value: course_name
    Add a the expression below to the tablix Sorting:
    =switch(Parameters!Sort.Value="grade",Fields!grade.Value,Parameters!Sort.Value="teacher",Fields!teacher.Value,Parameters!Sort.Value="room",Fields!room.Value,Parameters!Sort.Value=" course_number",Fields!course_number.Value,Parameters!Sort.Value="course_name",Fields!course_name.Value)
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • SSRS 2008 R2 Report parameters have default values and report not to auto run

    Hi, I am using SSRS 2008 R2 one of my requirements for a Report is all the parameters have default value and I do not want this report to auto run when users open this report. I can create a dummy hidden parameter to break the auto run for this
    report. But I am looking for solutions other than that.
    Thanks in advance..........
    Ione

    Hi lone,
    According to your description, you have a report with parameters. Now you want you report not to run automatically with your parameters default values. Right?
    In Reporting Service, if you have parameters with default values in your report, your report will always auto run with these default values. We can say these default values are used for report running initially. So for your requirement, if you really need
    to see your default value before the report running, the best workaround is set one more parameter to break the auto run like you have done. If you just want your report not to auto run, your can achieve it by removing those default values.
    Reference:
    Report Parameters (Report Builder and SSRS)
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou (Pactera)

  • How to set the default selection to "Select All" in a Multi valued parameter in SSRS 2008?

    Hello Everyone,
    How to set the default selection  to "Select All" in a Multi valued parameter in SSRS 2008?
    Regards
    Gautam S
    Regards

    You need to specify "Default Values" in the report parameter property. Choose similar option used in the "Available Values" option, this will allow the parameter to check "Select All".
    Regards, RSingh

Maybe you are looking for