Events (BeforeSave/BeforeDelete - AfterSave/AfterDelete)


Author
Message
Rogerio Mauri
Rogerio Mauri
StrataFrame User (303 reputation)StrataFrame User (303 reputation)StrataFrame User (303 reputation)StrataFrame User (303 reputation)StrataFrame User (303 reputation)StrataFrame User (303 reputation)StrataFrame User (303 reputation)StrataFrame User (303 reputation)StrataFrame User (303 reputation)
Group: StrataFrame Users
Posts: 205, Visits: 629
Trent... Bom Dia !!!

(*) I wait that the Portuguese translated with Babel Fish has been intelligible. Smile

I am with doubts in the events: Before(Save, Delete) / After(Save, Delete).

I think that the calls of acceptance of the modifications are not running in the certain order or I am not understanding logical the proposal.

I would like that you evaluated the attached project observing if the statuses of the rows in some phases correspond to the waited result.

It makes tests adding and excluding registers in table two that it is in the list of table one.

It confers the status of rows in the events of the BO. Special attention for the status of rows when the register is excluded in table two.

I make this questioning because I intend to implement processes that affect registers in other tables from launchings in the main table, using for this the control of status of rows with modification. Also, if you will have some example for this, you would be been thankful.

Code area:

        #region SAVE
        private void TbLevelTwoBO_BeforeSave(MicroFour.StrataFrame.Data.BeforeSaveUndoEventArgs e)
        {
            foreach (DataRow row in this.CurrentDataTable.Rows)
            {
                string a = row.RowState.ToString();
            }
        }
        private void TbLevelTwoBO_AfterSave(MicroFour.StrataFrame.Data.AfterSaveUndoEventArgs e)
        {
            foreach (DataRow row in this.CurrentDataTable.Rows)
            {
                string a = row.RowState.ToString();
            }
        }
        #endregion

        #region DELETE
        private void TbLevelTwoBO_BeforeDelete(BeforeDeleteEventArgs e)
        {
            foreach (DataRow row in this.CurrentDataTable.Rows)
            {
                string a = row.RowState.ToString();
            }
        }
        private void TbLevelTwoBO_AfterDelete(AfterDeleteEventArgs e)
        {
            foreach (DataRow row in this.CurrentDataTable.Rows)
            {
                string a = row.RowState.ToString();
            }
        }
        #endregion

Rogério Mauri Smile



Attachments
TesteStrataFrame.zip (102 views, 904.00 KB)
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search