public ActionGrid()
        {
            _parameterValues = new List <IFilterValues>();
            _isSelectingRow  = false;

            SPSInit("DD434B08-2854-4f29-81A7-44FC86E56886",
                    "ActionDataBase.1.0",
                    "WebParts ActionDataBase",
                    "http://www.spsprofessional.com/");

            EditorParts.Add(new ActionGridEditorPart());

            _actionGridError = new SPSErrorBoxControl();
        }
Beispiel #2
0
        protected override void CreateChildControls()
        {
            _errorBox = new SPSErrorBoxControl
            {
                ShowExtendedErrors = true
            };

            Controls.Add(_errorBox);

            try
            {
                CreateChildControlsInternal();
            }
            catch (Exception ex)
            {
                _errorBox.AddError(new SPSErrorArgs(ex));
            }
        }
Beispiel #3
0
        public RollUpCalendar()
        {
            SPSInit("9DA7AF31-81EB-4dbe-AF29-026FABB97223",
                    "SPSRollUp.2.0",
                    "RollUp WebPart",
                    "http://www.spsprofessional.com/page/SPSRollUp-WebPart.aspx");

            ExportMode = WebPartExportMode.All;
            EditorParts.Add(new RollUpCalendarEditorPart());

            _topSite     = string.Empty;
            _lists       = string.Empty;
            _fields      = string.Empty;
            _camlQuery   = string.Empty;
            _xsl         = string.Empty;
            _dateTimeISO = false;
            _fixLookUp   = false;
            XslPage      = 1;
            _errorBox    = new SPSErrorBoxControl();
        }
Beispiel #4
0
        protected override void CreateChildControls()
        {
            Debug.WriteLine("TEST: CreateChildControls - ReadConfig + ToolBar " + Title);

            try
            {
                _button      = new LinkButton();
                _button.Text = "TEST";
                _button.ID   = "button";

                //_button.Attributes.Add("onclick", "javascript:" + Page.ClientScript.GetPostBackEventReference(this, "TEST$TEST"));
                _button.OnClientClick = Page.ClientScript.GetPostBackEventReference(this, "TEST$TEST");
                _button.Attributes.Add("href", "#");
                Controls.Add(_button);

                // Is only necesary for Edit and New but send it always
                if (Page != null)
                {
                    Page.RegisterRequiresPostBack(this);
                }

                // The errorbox control
                _actionEditorError = new SPSErrorBoxControl
                {
                    ShowExtendedErrors = _showExtendedErrors
                                         //ConfigErrors = Config.Errors
                };
                Controls.Add(_actionEditorError);

                // Create the form
                //_actionEditorControl = new ActionEditorControl(Config);
                //_actionEditorControl.OnError += TrapSubsystemError;
                //Controls.Add(_actionEditorControl);
            }
            catch (Exception ex)
            {
                TrapSubsystemError(this, new SPSErrorArgs("TEST", "CreateChildControls", ex));
                DumpException("CreateChildControls", ex);
            }
        }
Beispiel #5
0
        protected override void CreateChildControls()
        {
            Debug.WriteLine("ActionEdior: CreateChildControls - ReadConfig + ToolBar " + Title);

            try
            {
                // The errorbox control
                _actionEditorError = new SPSErrorBoxControl
                {
                    ShowExtendedErrors = _showExtendedErrors,
                    ConfigErrors       = Config.Errors
                };
                Controls.Add(_actionEditorError);

                // Create the form
                _actionEditorControl          = new ActionEditorControl(Config);
                _actionEditorControl.OnError += TrapSubsystemError;
                Controls.Add(_actionEditorControl);
            }
            catch (Exception ex)
            {
                TrapSubsystemError(this, new SPSErrorArgs("ActionEditor", "CreateChildControls", ex));
            }
        }