﻿<?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?)  » Can't change RequiredFields in the BO dropped on a Form</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 08 Sep 2026 20:26:21 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Can't change RequiredFields in the BO dropped on a Form</title><link>http://forum.strataframe.net/FindPost8419.aspx</link><description>Yes, this is by design... the business objects don't allow the RequiredFields to be set on a per-instance basis because then they could be serialized on a by instance basis, and if you changed the fields in the BO's component designer, the changes wouldn't always get inherited by the instances on the forms.&amp;nbsp; That and the BO class is the central place for the business logic, and the RequiredFields are business logic so...&lt;/P&gt;&lt;P&gt;However, you can certainly modify the RequiredFields collection programmatically for testing purposes (or to make them different on a per-form basis if necessary).&amp;nbsp; I would recommend copying the code from the InitializeComponent() of the BO because there are a few caveats to the RequireFields collection; namely, you have to use SqlDbType.Text for all System.String properties (at that point, the SqlType doesn't matter, just that it's a string).</description><pubDate>Mon, 23 Apr 2007 09:11:03 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>Can't change RequiredFields in the BO dropped on a Form</title><link>http://forum.strataframe.net/FindPost8393.aspx</link><description>Hi,&lt;/P&gt;&lt;P&gt;I made a mistake with the RequiredFields property and wanted to change the 'on form' version just for testing purposes before I changed the actual BO itself. However, it doesn't show in the Properties list when the on form version of the BO is selected.&lt;/P&gt;&lt;P&gt;Is this by design?&lt;/P&gt;&lt;P&gt;Cheers, Peter</description><pubDate>Mon, 23 Apr 2007 09:11:03 GMT</pubDate><dc:creator>Peter Jones</dc:creator></item></channel></rss>