﻿<?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 / WinForms (How do I?)  / Using a ChildFormDialog with same BO / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>forum@strataframe.net</webMaster><lastBuildDate>Mon, 13 Oct 2008 07:59:05 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Using a ChildFormDialog with same BO</title><link>http://forum.strataframe.net/Topic15942-7-1.aspx</link><description>The row level stuff that I menteioned is the OLDVAL and CURVAL route in ADO.NET. :)</description><pubDate>Mon, 28 Apr 2008 11:39:14 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Using a ChildFormDialog with same BO</title><link>http://forum.strataframe.net/Topic15942-7-1.aspx</link><description>[quote][b]Trent L. Taylor (04/28/2008)[/b][hr][codesnippet]MyBo.CurrentRow.Item("MyFieldname") = MyBo.CurrentRow.Item("MyFieldName",DataRowVersion.Original)[/codesnippet][/quote] &lt;P&gt;Hi trent, using the DataRowVersion.Original give me what I wanted, also I found that the TextBoxBase control has an Undo() method which will also provide this need. &lt;P&gt;Even though you have not have this need, in VFP I have make a lot of use of the functions CURVAL() &amp;amp; OLVAL() for this type of scenarios and I think it would be a good idea to have a more direct access to the DataRowVersion.Original and maybe it could be an enhancement to add a property to the BO which will return this value for easy use by the developer.   Again, this is just a though :P &lt;P&gt;Thanks for the recommendations!</description><pubDate>Mon, 28 Apr 2008 10:17:26 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: Using a ChildFormDialog with same BO</title><link>http://forum.strataframe.net/Topic15942-7-1.aspx</link><description>I have never actually had this need...nor have I heard of this need.  You can undo 3 different ways:&lt;/P&gt;&lt;P&gt;[codesnippet]MyBo.Undo(AllRows)&lt;BR&gt;MyBo.Undo(CurrentRowOnly)[/codesnippet]&lt;/P&gt;&lt;P&gt;In the 1.6.6 beta there is a new option to undo by a filter:&lt;/P&gt;&lt;P&gt;[codesnippet]MyBo.UndoByFilter("FilterExpression ")[/codesnippet]&lt;/P&gt;&lt;P&gt;If you want to "Undo" certain fields, then you will need to cycle through the current row and replace the Current value with the OriginalValue:&lt;/P&gt;&lt;P&gt;[codesnippet]MyBo.CurrentRow.Item("MyFieldname") = MyBo.CurrentRow.Item("MyFieldName",DataRowVersion.Original)[/codesnippet]</description><pubDate>Mon, 28 Apr 2008 09:56:24 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>Using a ChildFormDialog with same BO</title><link>http://forum.strataframe.net/Topic15942-7-1.aspx</link><description>Hi,&lt;/P&gt;&lt;P&gt;I am trying to do the following:&lt;/P&gt;&lt;BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"&gt;&lt;P&gt;I have a form with some fields I would like to modify using a ChildFormDialog.  I have setup all properties and it is working just fine when adding, editing this record, the information is translated back to the parent form, but when I try to Undo it will perform an Undo in the whole record including data in the parent form.  &lt;/P&gt;&lt;P&gt;Is there a way to control what fields to Undo in the translated BO in the ChildFormDialog?&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P dir=ltr&gt;So far, I have not find a way to just undo specifics fields in the BO.  Since this ChildFormDialog will only modify 5 fields of this BO, I may need to create these properties in the form so I can have control of Undoing any changes in the ChildFormDialog.</description><pubDate>Mon, 28 Apr 2008 09:23:31 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item></channel></rss>