Forum Discussion

sevenhills's avatar
sevenhills
Super User
5 years ago
Solved

Display Disclaimer Message

  • HashamNiaz's avatar
    HashamNiaz
    5 years ago

    Hi sevenhills !

    Please do not delete this post as this will be helpful for other community users in the future.

     

    Also it would be great if you could share the code you have added in [ReportViewer.aspx]

    Is the code similar to one which is available on the website you mentioned;

     

    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
    <script src="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.9/jquery-ui.js" type="text/javascript"></script>
    <link href="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.9/themes/start/jquery-ui.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
    
        $(function() {
    
            $("#dialog").dialog({
    
            title: "jQuery Dialog Popup",
            height: "200",
            modal: true ,
    
            buttons: {
            "Agree": {
                    text: "Agree",
                    id: "my-button-id1",
                    click: function() {
                    $(this).dialog('close');
                    document.getElementById("bg").style.display = "none";
                    }
                },
                "Disagree": {
                    text: "Disagree",
                    id: "my-button-id2",
                    click: function() {
                    location.href = '/Reports'
                    }
                }
            }
    
            });
    
        });
    
       
    </script>
    <div id="bg" style="width:100%; height:100%;z-index:20000;background-color:silver" >
    <div id="dialog" style="display: none;z-index:20001">
     Please make sure you have read this information and understand clearly before enter the report.
    </div>
    </div>

     

    Regards,

    Hasham

3 Replies

  • Report.aspx is replaced with ReportViewer.aspx (since SSRS 2016, I believe)

    I am able to find "ReportViewer.aspx" under the folder "\PBIRS\ReportServer\Pages"

     

    I am able to achieve the add disclaimer message.

     

    Should I delete this thread?

     

    Thanks

    S

    • HashamNiaz's avatar
      HashamNiaz
      Solution Sage

      Hi sevenhills !

      Please do not delete this post as this will be helpful for other community users in the future.

       

      Also it would be great if you could share the code you have added in [ReportViewer.aspx]

      Is the code similar to one which is available on the website you mentioned;

       

      <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
      <script src="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.9/jquery-ui.js" type="text/javascript"></script>
      <link href="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.9/themes/start/jquery-ui.css" rel="stylesheet" type="text/css" />
      <script type="text/javascript">
      
          $(function() {
      
              $("#dialog").dialog({
      
              title: "jQuery Dialog Popup",
              height: "200",
              modal: true ,
      
              buttons: {
              "Agree": {
                      text: "Agree",
                      id: "my-button-id1",
                      click: function() {
                      $(this).dialog('close');
                      document.getElementById("bg").style.display = "none";
                      }
                  },
                  "Disagree": {
                      text: "Disagree",
                      id: "my-button-id2",
                      click: function() {
                      location.href = '/Reports'
                      }
                  }
              }
      
              });
      
          });
      
         
      </script>
      <div id="bg" style="width:100%; height:100%;z-index:20000;background-color:silver" >
      <div id="dialog" style="display: none;z-index:20001">
       Please make sure you have read this information and understand clearly before enter the report.
      </div>
      </div>

       

      Regards,

      Hasham

      • sevenhills's avatar
        sevenhills
        Super User

        Yes, it is the same. I made modifications to my needs in ReportViewer.aspx