﻿<?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?)  » Child Object in Maintenance Form is not editable</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 04:00:29 GMT</lastBuildDate><ttl>20</ttl><item><title>Child Object in Maintenance Form is not editable</title><link>http://forum.strataframe.net/FindPost20068.aspx</link><description>Hello,&lt;br&gt;
&lt;br&gt;
I added a child object to the primary object on the SF maintenance form. But it looks like the child object doesn't participates in form's edit. When user clicks "Edit" button in the maintenance form's toolstrip, Child object's text boxes don't become editable. I checked and set all the relevant BO properties (e.g. IncludeInFormEdit).&lt;br&gt;
What else do I need to do?&lt;br&gt;
&lt;br&gt;
Thank you.</description><pubDate>Tue, 14 Oct 2008 16:01:59 GMT</pubDate><dc:creator>Leonard P.</dc:creator></item><item><title>RE: Child Object in Maintenance Form is not editable</title><link>http://forum.strataframe.net/FindPost20095.aspx</link><description>[quote][b]Trent L. Taylor (10/14/2008)[/b][hr]&lt;OL&gt;&lt;LI&gt;Ignore the edit mode altogether by setting the ManageUiReadonlyState to False on the BO&lt;/LI&gt;&lt;LI&gt;Do what Ivan is telling you and use the IncludeInForm properties (or manually call Edit) on the child BO.[/quote]&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Leonard, I think that option 2 may be the one you need in which you will code less than setting the toolbar button state yourself.</description><pubDate>Tue, 14 Oct 2008 16:01:59 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: Child Object in Maintenance Form is not editable</title><link>http://forum.strataframe.net/FindPost20092.aspx</link><description>No.&amp;nbsp; If you are using the MaintenanceFormToolstrip, they will not automatically change states.&amp;nbsp; If you look at the StrataFlix sample, you can see that in this case they do automatically show up (Save and Undo) but the MaintenanceFormToolstrip is not used.&amp;nbsp; So in this case, you will have to manualy set the states by handling the IsDirtyChanged event of the BO if you are going to take this route.</description><pubDate>Tue, 14 Oct 2008 11:21:12 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Child Object in Maintenance Form is not editable</title><link>http://forum.strataframe.net/FindPost20090.aspx</link><description>Thank you all, After all I went with option 1, and got rid off Edit button all together.&lt;br&gt;
It works best for our app in terms of design and usability.&lt;br&gt;
&lt;br&gt;
[quote]&lt;OL&gt;&lt;LI&gt;Ignore the edit mode altogether by setting the ManageUiReadonlyState to False on the BO&lt;/LI&gt;&lt;/OL&gt;&lt;br&gt;
[/quote]&lt;br&gt;
&lt;br&gt;
Thanks Trent!&lt;br&gt;
&lt;br&gt;
One last question (on this topic at least :) ), when user changes any field which causes IsDirty state to change, "Save" and "Undo" buttons don't get enabled automatically on the Maintenance toolstrip. So, I am handling it programmatically in IsDirty_Changed event of BO. Is this the right approach? Can I make maintenance form handle it for me?&lt;br&gt;
&lt;br&gt;
Thanks.&lt;br&gt;
&lt;br&gt;</description><pubDate>Tue, 14 Oct 2008 10:07:59 GMT</pubDate><dc:creator>Leonard P.</dc:creator></item><item><title>RE: Child Object in Maintenance Form is not editable</title><link>http://forum.strataframe.net/FindPost20085.aspx</link><description>Yeah, Ivan is going down the right road here.&amp;nbsp; The problem is that the child BO is not in an Edit mode...you have two options here:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Ignore the edit mode altogether by setting the ManageUiReadonlyState to False on the BO&lt;/LI&gt;&lt;LI&gt;Do what Ivan is telling you and use the IncludeInForm properties (or manually call Edit) on the child BO.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Any of these options would work.</description><pubDate>Tue, 14 Oct 2008 09:07:11 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Child Object in Maintenance Form is not editable</title><link>http://forum.strataframe.net/FindPost20078.aspx</link><description>Well, I think it might help you a lot. Did you check the IncludeInForm properties in the &lt;STRONG&gt;form?&lt;/STRONG&gt; Besides the BO ones, you will find the properties you could see on that text from the help file. By default, it is only PrimaryBusinessObject, so you could try setting to AllBusinessObjects.</description><pubDate>Tue, 14 Oct 2008 06:59:33 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: Child Object in Maintenance Form is not editable</title><link>http://forum.strataframe.net/FindPost20074.aspx</link><description>Thank you. So, IncludeInFormEdit property does not help me here. How do I make child object editable in the mainenance form?</description><pubDate>Mon, 13 Oct 2008 20:01:24 GMT</pubDate><dc:creator>Leonard P.</dc:creator></item><item><title>RE: Child Object in Maintenance Form is not editable</title><link>http://forum.strataframe.net/FindPost20071.aspx</link><description>Hi Leonardo.&lt;/P&gt;&lt;P&gt;Have a look at the Form Include settings. Here is an explanation from the help file:&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forum.strataframe.net/Uploads/Images/cf62b326-38c8-4f59-8cee-4e46.jpg"&gt;</description><pubDate>Mon, 13 Oct 2008 16:53:40 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item></channel></rss>