﻿<?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 » WinForms (How do I?)  » Maint Form Undo Button</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 02 Jun 2026 18:39:28 GMT</lastBuildDate><ttl>20</ttl><item><title>Maint Form Undo Button</title><link>http://forum.strataframe.net/FindPost454.aspx</link><description>&lt;P style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: medium none; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; PADDING-TOP: 0in; BORDER-BOTTOM: medium none; mso-border-alt: solid #7F9DB9 .5pt; mso-border-left-alt: solid #7F9DB9 .25pt; mso-padding-alt: 5.0pt 5.0pt 5.0pt 5.0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: #1f5080; FONT-FAMILY: Verdana"&gt;On a SF Maint Form, does clicking the Undo button call the Maint form’s undo method or the primary business object’s undo method? I have a Maint form with two business objects that have a parent-child relationship. Undo is working on the parent but not the child and I believe it’s because the Undo button only calls the parent’s (primary object) undo method. If so I know how to get the behavior I want, I just want to make sure I understand what is going on.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: medium none; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; PADDING-TOP: 0in; BORDER-BOTTOM: medium none; mso-border-alt: solid #7F9DB9 .5pt; mso-border-left-alt: solid #7F9DB9 .25pt; mso-padding-alt: 5.0pt 5.0pt 5.0pt 5.0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: #1f5080; FONT-FAMILY: Verdana"&gt;-Larry&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;</description><pubDate>Wed, 12 Oct 2011 09:19:15 GMT</pubDate><dc:creator>Larry Caylor</dc:creator></item><item><title>RE: Maint Form Undo Button</title><link>http://forum.strataframe.net/FindPost30423.aspx</link><description>Hi Michael.&lt;br/&gt;&lt;br/&gt;Choose&amp;nbsp;the Combo-Enum tab in the Search Field Criteria dialog and set&amp;nbsp;it to an enum that you will create with&amp;nbsp;your False/True statements.</description><pubDate>Wed, 12 Oct 2011 09:19:15 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: Maint Form Undo Button</title><link>http://forum.strataframe.net/FindPost30412.aspx</link><description>I would like to put a check box on the SF browse dialogue to allow the filter of only records with a true or false in a bit type field.&amp;nbsp; Can't seem to make it work.</description><pubDate>Tue, 11 Oct 2011 12:49:07 GMT</pubDate><dc:creator>Michael R Poirier</dc:creator></item><item><title>RE: Maint Form Undo Button</title><link>http://forum.strataframe.net/FindPost460.aspx</link><description>&lt;TABLE cellSpacing=0 cellPadding=0 width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class=smalltxt vAlign=top&gt;&lt;SPAN id=_ctl1__ctl0_ctlTopic__ctl0_ctlPanelBar_ctlTopicsRepeater__ctl5_lblFullMessage&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080; FONT-FAMILY: Verdana"&gt;Hi Larry,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080; FONT-FAMILY: Verdana"&gt;&amp;nbsp;&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080; FONT-FAMILY: Verdana"&gt;&amp;gt;Thanks for the info. &lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080; FONT-FAMILY: Verdana"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080; FONT-FAMILY: Verdana"&gt;No problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080; FONT-FAMILY: Verdana"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080; FONT-FAMILY: Verdana"&gt;&amp;gt;I was aware of the BO property “IncludeInFormUndo” but missed its counterpart&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;‘IncludeInFormUndoType” at the form level. I gave this combination a try but it didn’t produce the exact result I was looking for. &lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080; FONT-FAMILY: Verdana"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080; FONT-FAMILY: Verdana"&gt;Well, it should allow the Undo to occur on the child BO. As to the list not reflecting the changes, it needs refreshing, as you have established.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080; FONT-FAMILY: Verdana"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080; FONT-FAMILY: Verdana"&gt;&amp;gt;or refreshing the ListView in the “EditingStateChaged” event handler of child object. &lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080; FONT-FAMILY: Verdana"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080; FONT-FAMILY: Verdana"&gt;I would have thought that the logical place to refresh the List is in the AfterUndo event handler (for either the BO in question or the form). Refreshing in the "EditingStateChanged" event will mean some kind of conditional testing to ensure that you only refresh the list when you can detect an Undo action has occured. If you use AfterUndo, particularly using a BO specific handler, you can safely Refresh the list and know that you are doing it at exactly the right time/place/right BO.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080; FONT-FAMILY: Verdana"&gt;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080; FONT-FAMILY: Verdana"&gt;&amp;gt;StrataFrame provides a lot of options and therefore presents a definite learning curve, &lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080; FONT-FAMILY: Verdana"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080; FONT-FAMILY: Verdana"&gt;There is a learning curve with most tools but its fun learning :)&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080; FONT-FAMILY: Verdana"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080; FONT-FAMILY: Verdana"&gt;&amp;gt;but I’m finding the more I work with it the more I like it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080; FONT-FAMILY: Verdana"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080; FONT-FAMILY: Verdana"&gt;That's all that matters. I find SF intuitive and very productive.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080; FONT-FAMILY: Verdana"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080; FONT-FAMILY: Verdana"&gt;HTH&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080; FONT-FAMILY: Verdana"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080; FONT-FAMILY: Verdana"&gt;Best&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080; FONT-FAMILY: Verdana"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080; FONT-FAMILY: Verdana"&gt;-=Gary&lt;/SPAN&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description><pubDate>Thu, 19 Jan 2006 14:59:27 GMT</pubDate><dc:creator>Gary C Wynne</dc:creator></item><item><title>RE: Maint Form Undo Button</title><link>http://forum.strataframe.net/FindPost459.aspx</link><description>&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080; FONT-FAMILY: Verdana"&gt;Gary,&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080; FONT-FAMILY: Verdana"&gt;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080; FONT-FAMILY: Verdana"&gt;Thanks for the info. I was aware of the BO property “IncludeInFormUndo” but missed its counterpart&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;‘IncludeInFormUndoType” at the form level. I gave this combination a try but it didn’t produce the exact result I was looking for. My child object is being displayed in a ListView on the maint form and is being refreshed in the ‘EditingStateChanged” event handler for the form. When I click Undo on the form the old values are not being reflected in the ListView and I’m assuming that is due to the order in which events are raised. “EditingStateChanged” is probably being raised before “Undo” on the child object.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;I can get the desired result by calling Undo on the child object in the “BeforeUndo” event handler on the form or refreshing the ListView in the “EditingStateChaged” event handler of child object. &lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080; FONT-FAMILY: Verdana"&gt;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080; FONT-FAMILY: Verdana"&gt;StrataFrame provides a lot of options and therefore presents a definite learning curve, but I’m finding the more I work with it the more I like it.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080; FONT-FAMILY: Verdana"&gt;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080; FONT-FAMILY: Verdana"&gt;-Larry&lt;/SPAN&gt;</description><pubDate>Thu, 19 Jan 2006 14:01:58 GMT</pubDate><dc:creator>Larry Caylor</dc:creator></item><item><title>RE: Maint Form Undo Button</title><link>http://forum.strataframe.net/FindPost458.aspx</link><description>Hey Ben&lt;P&gt;The "states" enhancement sure is resolving quite a few issues ;)&lt;/P&gt;&lt;P&gt;What a great idea ! :cool:</description><pubDate>Thu, 19 Jan 2006 10:49:43 GMT</pubDate><dc:creator>Gary C Wynne</dc:creator></item><item><title>RE: Maint Form Undo Button</title><link>http://forum.strataframe.net/FindPost456.aspx</link><description>Larry,&lt;br&gt;
&lt;br&gt;
Once again, Gary is correct :)&lt;br&gt;
&lt;br&gt;
If your form doesn't have the IncludeInFormType options, you'll have to download the latest version.</description><pubDate>Thu, 19 Jan 2006 08:32:13 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Maint Form Undo Button</title><link>http://forum.strataframe.net/FindPost455.aspx</link><description>Hi Larry&lt;/P&gt;&lt;P&gt;Take a look at the "IncludeInFormUndoType" property on the form. This can be combined with a counterpart property on the BO called "IncludeInFormUndo". Basically, you can have the "Undo" action applied to the PrimaryBO, AllBOs or determined by BOs that have their IncludeInFormUndo property set true. &lt;/P&gt;&lt;P&gt;This logic can be applied to all other "actions" like Save, Edit, Delete, New, Navigate etc.,&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;-=Gary&lt;/P&gt;&lt;P&gt;&lt;TABLE cellSpacing=0 cellPadding=0 width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class=smalltxt vAlign=top&gt;&lt;SPAN id=_ctl1__ctl0_ctlTopic__ctl0_ctlPanelBar_ctlTopicsRepeater__ctl1_lblFullMessage&gt;&lt;P style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: medium none; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; PADDING-TOP: 0in; BORDER-BOTTOM: medium none; mso-border-alt: solid #7F9DB9 .5pt; mso-border-left-alt: solid #7F9DB9 .25pt; mso-padding-alt: 5.0pt 5.0pt 5.0pt 5.0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: #1f5080; FONT-FAMILY: Verdana"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/P&gt;&lt;P&gt;&lt;TABLE cellSpacing=0 cellPadding=0 width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class=smalltxt vAlign=top&gt;&lt;SPAN id=_ctl1__ctl0_ctlTopic__ctl0_ctlPanelBar_ctlTopicsRepeater__ctl1_lblFullMessage&gt;&lt;P style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: medium none; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; PADDING-TOP: 0in; BORDER-BOTTOM: medium none; mso-border-alt: solid #7F9DB9 .5pt; mso-border-left-alt: solid #7F9DB9 .25pt; mso-padding-alt: 5.0pt 5.0pt 5.0pt 5.0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: #1f5080; FONT-FAMILY: Verdana"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description><pubDate>Thu, 19 Jan 2006 07:30:53 GMT</pubDate><dc:creator>Gary C Wynne</dc:creator></item></channel></rss>