﻿<?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?)  » StandardForm and BO IncludeInFormEdit</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 06:47:31 GMT</lastBuildDate><ttl>20</ttl><item><title>StandardForm and BO IncludeInFormEdit</title><link>http://forum.strataframe.net/FindPost2160.aspx</link><description>I have two BOs on a form,&amp;nbsp; B1 and B2.&amp;nbsp; B1 is the primary BO of the form, I have set the IncludeInFormEdit to TRUE on B2.&amp;nbsp; When I call this.Edit() only the fields that are bound to B1 go into edit mode, B2 fields only go into edit mode if I directly call the Edit method of B2.&amp;nbsp; Am I missing something here?&lt;/P&gt;&lt;P&gt;Also if I change the data in one of the field and then use the BrowseDialog to select a new record there is no message to save the changes before switching records.&amp;nbsp; What method must I call so that the user will be prompted to save any changed data?&amp;nbsp; If you close the form without saving any changes the user is automatically prompted, I want to duplicate this beheavior.&amp;nbsp; Should I just check the isDirty property of the BO and prompt with my own message?</description><pubDate>Fri, 11 Aug 2006 16:42:08 GMT</pubDate><dc:creator>Scott</dc:creator></item><item><title>RE: StandardForm and BO IncludeInFormEdit</title><link>http://forum.strataframe.net/FindPost2172.aspx</link><description>No problem :)</description><pubDate>Fri, 11 Aug 2006 16:42:08 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: StandardForm and BO IncludeInFormEdit</title><link>http://forum.strataframe.net/FindPost2171.aspx</link><description>I knew I had to be missing something.&amp;nbsp; Thanks</description><pubDate>Fri, 11 Aug 2006 16:33:28 GMT</pubDate><dc:creator>Scott</dc:creator></item><item><title>RE: StandardForm and BO IncludeInFormEdit</title><link>http://forum.strataframe.net/FindPost2169.aspx</link><description>As for the second question, you'll need to do wht you said, and test the IsDirty() property of the business object before you show the BrowseDialog.&lt;/P&gt;&lt;P&gt;The best thing would probably be to go through the business objects in the Form.GetListOfSaveBOs(), which will return an array of the business objects that will be included in the save. If any of them are dirty, then show the message and handle the logic accordingly.</description><pubDate>Fri, 11 Aug 2006 16:14:35 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: StandardForm and BO IncludeInFormEdit</title><link>http://forum.strataframe.net/FindPost2168.aspx</link><description>As for your first question, Scott, there is a corresponding property on the form called IncludeInFormEdit that accepts an enum value.&amp;nbsp; By default, it is&amp;nbsp;set to PrimaryBusinessObject which is why only your B1 is editing.&amp;nbsp; There are two other values that you can set that property to: DeterminedByBusinessObject and AllBusinessObjects.&amp;nbsp; If you set it to AllBusinessObjects, then all business objects on the form, will be edited when you call Edit() on the form.&amp;nbsp; The DeterminedByBusinessObject property is the one that will use the individual IncludeInForm properties on the business objects to determine whether the business objects will be included in the edit.&amp;nbsp; So, you'll need to set the property on the form to DeterminedByBusiness object for it to test that Boolean property on the business objects.</description><pubDate>Fri, 11 Aug 2006 16:11:58 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>