StrataFrame Forum

CRM Example Question

http://forum.strataframe.net/Topic4809.aspx

By Derrick Bell - 11/28/2006

In terms of undoing the changes to a current row

Where is BusinessUndoType.CurrentRowOnly Set?

By StrataFrame Team - 11/28/2006

It's passed as a parameter to the Undo() method of the business object.  If you call Undo() on the form, it automatically undoes all rows, not just the current one.
By Derrick Bell - 11/28/2006

sorry I wasnt clear enough, where do I initalize BusinessUndoType?
By StrataFrame Team - 11/28/2006

You don't initialize it anywhere... BusinessUndoType is an enumeration, and CurrentRowOnly is one of the enum members.  The only place where that enumeration is used is as a parameter passed to the Undo() method of a business object.
By Derrick Bell - 11/28/2006

hmmm interesting...if they are enums then I have to define them somewhere, don't I?

When I'm setting the undo method on my object, I'm receiving the error:

BusinessUndoType not declared.

By StrataFrame Team - 11/28/2006

Ah, you're missing the namespace imports...

Imports MicroFour.StrataFrame.Business

at the top of the file Smile

By Derrick Bell - 11/28/2006

That was it on that.. It's always the simple stuff.

Derrick