none
Localizing SharePoint 2013 report viewer web part RRS feed

  • Question

  • How can I change what is written on the Report viewer web part when it is waiting for the parameters to be set like :



    Also, how to change the text of the apply button in the parameters area:


    Tuesday, April 5, 2016 12:11 PM

Answers

  • Hi MSurkhi,

    You can use JavaScript to change the content or the text of a button on the page.

    Here is an example to change “Microsoft SQL Server Reporting Services” for your reference:

    1. Press F12 in browser and find the id of the div which contains the Report Viewer table.  And check where is the text in the table. In my test, “Microsoft SQL Server Reporting Services” is in the first tr and in the first td.

    2. Add a Script Editor web part, then add the following script.

    <script type="text/javascript">
    window.onload = function(){ 
        setTimeout(myfuction,2000); // set the time out for running this script after the page is done loading 
    }
    function myfuction(){
    var el =document.getElementById("ctl00_ctl40_g_fdb925b5_28a8_423e_8442_bcaf054dcf2a_ctl00_ViewerAreaUpdatePanel"); //change the id
    var rows = el.getElementsByTagName('tr'); 
    var cells = rows[0].getElementsByTagName('td'); // get the first tr
    cells[0].innerHTML = "hello"; //change the text
    }
    </script>
    

    Best regards,

    Linda Zhang


    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.

    Wednesday, April 6, 2016 11:27 AM
    Moderator