﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » Business Objects and Data Access (How do I?)  » Undo functionality with custom data properties</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 22:54:04 GMT</lastBuildDate><ttl>20</ttl><item><title>Undo functionality with custom data properties</title><link>http://forum.strataframe.net/FindPost5119.aspx</link><description>How would I implement undo functionality in a BO for custom data properties? They are read/write and bindable. Specifically, I want my custom properties to undo when BO.undo is called.</description><pubDate>Fri, 08 Dec 2006 13:17:24 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: Undo functionality with custom data properties</title><link>http://forum.strataframe.net/FindPost5141.aspx</link><description>OK.  That's what I needed to known. Thanks!</description><pubDate>Fri, 08 Dec 2006 13:17:24 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: Undo functionality with custom data properties</title><link>http://forum.strataframe.net/FindPost5140.aspx</link><description>If you are updating a table other than the internal data table (CurrentDataTable, CurrentRow, CurrentView...take your pick :D ) then you will have to handle this in the AfterUndo method yourself.&amp;nbsp; If you have an ADO.NET data table just reject the changes:&lt;/P&gt;&lt;P&gt;[codesnippet]MyDataTable.RejectChanges()[/codesnippet]</description><pubDate>Fri, 08 Dec 2006 13:04:47 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Undo functionality with custom data properties</title><link>http://forum.strataframe.net/FindPost5137.aspx</link><description>I'm talking custom properties, defined in the main BO file (not the BO Mapper generated designer file), with the reflectionpropertydescriptor thingy to get binding to work.  I'm reading and writing to another table (not sure its a good idea, but sure is easy :D )  Anyway to get undo (SF undo) to work with these?</description><pubDate>Fri, 08 Dec 2006 11:56:34 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: Undo functionality with custom data properties</title><link>http://forum.strataframe.net/FindPost5123.aspx</link><description>Well, this would depend on what your custom properties are doing.&amp;nbsp; Are they talking to properties that were created through the BO Mapper?&amp;nbsp; What are they reading froma nd writing to?&amp;nbsp; If they are talking to an already built property, the you don't have to do anything because those values will be automatically handled.&amp;nbsp; If you are talking to another column un the CurrentDataTable, this too will be automatically handled.&amp;nbsp; If you are talking to a variable or some other value unassociated with the CurrentDataTable, then you will need to handle this yourself in the AfterUndo event.</description><pubDate>Fri, 08 Dec 2006 07:41:59 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>