Exemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            SetAccessToken();
            string spUri = base.GetSharepointUri();
            string accessToken = base.accessToken;

            var reportsAppVM = new ReportsAppVM(accessToken, spUri);
            ClientContext clientContext = reportsAppVM.clientContext;
        }
Exemplo n.º 2
0
        protected void btn_SaveSettings_Click(object sender, EventArgs e)
        {
            Dictionary<string, string> formVariables = new Dictionary<string, string>()
            {
                { Constants.REPORTSERVER_URL_LABEL, rptServerUrl.Text },
                { Constants.REPORTSERVER_USERNAME_LABEL, TxtUsername.Text },
                { Constants.REPORTSERVER_PASSWORD_LABEL, TxtPassword.Text }
            };

            string spUri = base.GetSharepointUri();
            string accessToken = this.btn_SaveSettings.CommandArgument;

            var reportsAppVM = new ReportsAppVM(accessToken, spUri);
            reportsAppVM.setReportProperties(formVariables);
        }
Exemplo n.º 3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (IsPostBack)
            {
                //When the report loads, it triggers a re-load of the page, so this catches that.
                return;
            }

            string spUri = base.GetSharepointUri();
            string accessToken = base.accessToken;

            var reportsAppVM = new ReportsAppVM(accessToken, spUri);
            ClientContext clientContext = reportsAppVM.clientContext;

            SetupReport(clientContext);
        }