Pocessing a BO in AfterSave event


Author
Message
Ger Cannoll
Ger Cannoll
Advanced StrataFrame User (630 reputation)Advanced StrataFrame User (630 reputation)Advanced StrataFrame User (630 reputation)Advanced StrataFrame User (630 reputation)Advanced StrataFrame User (630 reputation)Advanced StrataFrame User (630 reputation)Advanced StrataFrame User (630 reputation)Advanced StrataFrame User (630 reputation)Advanced StrataFrame User (630 reputation)
Group: StrataFrame Users
Posts: 430, Visits: 507
Afte I save a BO, I need to do additional processing of the BO, updating some other tables and logging before and after data.

It would apear that the 'AfterSave' event is probably the best place to do this, but I cannot access rows marked for deletion.

I can copy the BO in the BeforeSave event (and then process it in the AfterSave Event) , but am having difficulty processing Deleted Records , as I cannot see them in the BO ( I have the OnlymarkAsDeleted option set when Deleting rows so they are not removed from the Database until I save) . Also when this flag is set, the AfterDeleteEvent still fires , even though the row will not have been physically removed from the Database table yet.

Any ideas appreciated
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Ger Cannoll - 13 Years Ago
Ivan George Borges - 13 Years Ago
Ger Cannoll - 13 Years Ago
Ivan George Borges - 13 Years Ago
Ger Cannoll - 13 Years Ago
                         [quote]I cannot see anyway within the BusinessObject to trap a Delete...
Ivan George Borges - 13 Years Ago
                             Hi Ivan Even if I do this, because I have the OnlyMarkAsDeleted set,...
Ger Cannoll - 13 Years Ago
                                 Yeah, I haven't tried OnlyMarkAsDeleted on a maintenance form. I did...
Ivan George Borges - 13 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search