﻿<?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?)  » IncludeInFormEditType- MFTS</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 05:01:59 GMT</lastBuildDate><ttl>20</ttl><item><title>IncludeInFormEditType- MFTS</title><link>http://forum.strataframe.net/FindPost8894.aspx</link><description>I have a SF Maintenance Form with 3 business objects.&amp;nbsp;&amp;nbsp;Two business objects&amp;nbsp;are editable and the third, a BO based on a view, which&amp;nbsp;is not (The third BO is used on a panel control to display information on a grid).&amp;nbsp;&amp;nbsp;I set the IncludeInFormEditType = DeterminedByBusinessObject.&amp;nbsp; I then set the IncludeInFormEdit on the PrimaryBO and ChildBO = True, and&amp;nbsp;False on the third BO.&lt;/P&gt;&lt;P&gt;The 'Edit' button on the MFTS is disabled...Did I mess a setting somewhere?&amp;nbsp; &lt;/P&gt;&lt;P&gt;I have tried various combinations but can't seem to get it working unless I change the IncludeInFormEditType setting to AllBusinessOjects or PrimaryBusinessObjects, which then causes problems on&amp;nbsp;my third&amp;nbsp;BO.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;&lt;P&gt;&amp;nbsp;</description><pubDate>Fri, 06 Jul 2007 14:41:03 GMT</pubDate><dc:creator>Tim Dol</dc:creator></item><item><title>RE: IncludeInFormEditType- MFTS</title><link>http://forum.strataframe.net/FindPost10038.aspx</link><description>Tim,&lt;/P&gt;&lt;P&gt;OK....this actually was not a bug.&amp;nbsp; Sorry it took so long to figure out what was going on.&amp;nbsp; Here is your problem.&amp;nbsp; You are setting the IncludeInFormEdit property to True on the Child form, but the parent forms Customers BO IncludeInFormEdit is set to False.&amp;nbsp; Since you are using the ChildFormDialog and translating the BOs,&amp;nbsp; the entire BO from the parent gets translated to the child.&amp;nbsp; So it does not matter what properties you set on the child since the parents BO will be the actual object that you are talking to on the child form.&amp;nbsp; Make sense?&amp;nbsp; To see what I am talking about, set the parent forms IncludeInFormEdit to true and then run your sample.&amp;nbsp; You will see that the Edit button becomes enabled.&amp;nbsp; The reason the PrimaryBusiness object option worked the way you expected is because both the parent and child forms had the Customers BO set as the primary BO and it did not need to look at the IncludeInForm... properties to determine the BOs inclusions.</description><pubDate>Fri, 06 Jul 2007 14:41:03 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: IncludeInFormEditType- MFTS</title><link>http://forum.strataframe.net/FindPost9335.aspx</link><description>Hi Ben,&lt;/P&gt;&lt;P&gt;Just following up to see if you had a chance to look at the project I sent you.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Tim</description><pubDate>Tue, 05 Jun 2007 18:05:03 GMT</pubDate><dc:creator>Tim Dol</dc:creator></item><item><title>RE: IncludeInFormEditType- MFTS</title><link>http://forum.strataframe.net/FindPost9203.aspx</link><description>Ben, I emailed you a sample project that replicates my problem.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tim</description><pubDate>Wed, 30 May 2007 10:42:35 GMT</pubDate><dc:creator>Tim Dol</dc:creator></item><item><title>RE: IncludeInFormEditType- MFTS</title><link>http://forum.strataframe.net/FindPost9195.aspx</link><description>Ben, okay I have additional information.&lt;/P&gt;&lt;P&gt;On main forms it does work fine, but the form I'm having problems with is a child form.&amp;nbsp; As soon as I change the IncludeInFormEditType = DeterminedByBusinessObject, the event doesn't fire.&amp;nbsp; Hope this helps.&lt;/P&gt;&lt;P&gt;Tim</description><pubDate>Wed, 30 May 2007 09:40:24 GMT</pubDate><dc:creator>Tim Dol</dc:creator></item><item><title>RE: IncludeInFormEditType- MFTS</title><link>http://forum.strataframe.net/FindPost9192.aspx</link><description>Thanks, tell me what objects are in the GetListOfEditBOs().&amp;nbsp; And, if any of them are idle, then it should enable the edit button, so if the correct business objects are in that collection, then check to see if all of them are not Idle (in their EditingState).</description><pubDate>Wed, 30 May 2007 09:23:39 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: IncludeInFormEditType- MFTS</title><link>http://forum.strataframe.net/FindPost9190.aspx</link><description>I am pretty sure I did this but I will try again right now and let you know.&amp;nbsp; I will let you know the results shorty.&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR&gt;Tim</description><pubDate>Wed, 30 May 2007 09:10:45 GMT</pubDate><dc:creator>Tim Dol</dc:creator></item><item><title>RE: IncludeInFormEditType- MFTS</title><link>http://forum.strataframe.net/FindPost9188.aspx</link><description>Nope, it's working here as expected... Do you by chance have the SF source code built in debug?&amp;nbsp; If you do, then you can put a breakpoint in the MaintenanceFormToolstrip.vb file in the _ParentForm_FormEditingStateChanged() method (line 1066) and step through the code where it sets the enabled state of the edit button.</description><pubDate>Wed, 30 May 2007 09:06:36 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: IncludeInFormEditType- MFTS</title><link>http://forum.strataframe.net/FindPost9156.aspx</link><description>just following up to see if you were able to find a problem with this yet.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tim</description><pubDate>Tue, 29 May 2007 10:44:50 GMT</pubDate><dc:creator>Tim Dol</dc:creator></item><item><title>RE: IncludeInFormEditType- MFTS</title><link>http://forum.strataframe.net/FindPost9009.aspx</link><description>Perfect. It will be nice to get this resolved.&lt;/P&gt;&lt;P&gt;Tim</description><pubDate>Wed, 23 May 2007 14:35:21 GMT</pubDate><dc:creator>Tim Dol</dc:creator></item><item><title>RE: IncludeInFormEditType- MFTS</title><link>http://forum.strataframe.net/FindPost9005.aspx</link><description>Yes, that helps, Tim, let me check this out.&amp;nbsp; I'll let you know...</description><pubDate>Wed, 23 May 2007 14:20:20 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: IncludeInFormEditType- MFTS</title><link>http://forum.strataframe.net/FindPost8988.aspx</link><description>No, I can't get it to work properly, but I may have stumbled across something trying out your example.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I set the IncludeINFormEditType = DetermineByBusinessObject on the form, the FormEditingStateChanged event doesn't seem to fire, therefore the code to enable the button isn't executed. When I change the value to AllBusinessObjects or PrimaryBusinessObject, it does fire and the edit button is enabled, so my problem seems to be related to the DetermineByBusinessObject setting. &lt;/P&gt;&lt;P&gt;Does this help? &lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Tim</description><pubDate>Wed, 23 May 2007 13:27:01 GMT</pubDate><dc:creator>Tim Dol</dc:creator></item><item><title>RE: IncludeInFormEditType- MFTS</title><link>http://forum.strataframe.net/FindPost8950.aspx</link><description>Did you get it working?&amp;nbsp;:)</description><pubDate>Tue, 22 May 2007 09:10:47 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: IncludeInFormEditType- MFTS</title><link>http://forum.strataframe.net/FindPost8938.aspx</link><description>Thanks Ben.</description><pubDate>Tue, 22 May 2007 08:38:52 GMT</pubDate><dc:creator>Tim Dol</dc:creator></item><item><title>RE: IncludeInFormEditType- MFTS</title><link>http://forum.strataframe.net/FindPost8908.aspx</link><description>This is the code that enables the edit button.&amp;nbsp; When the EditingStateChanged event of a business object is raised, this code is called.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '-- Determine the edit button's visibility&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; For Each loBO In Me.ParentForm.GetListOfEditBOs()&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If (loBO.Count &amp;gt; 0) AndAlso _&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (loBO.EditingState = BusinessEditingState.Idle) Then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '-- Only enable the edit button if the business object has records and it's idle.&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; llEdit = True&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '-- Bail after we find the first business object that needs the button&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Exit For&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Next&lt;/P&gt;&lt;P&gt;So, try calling the GetListOfEditBOs() on the form and make sure that at least one of the objects in the list has a count of &amp;gt; 0 and is in the Idle mode.</description><pubDate>Mon, 21 May 2007 09:25:43 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>